diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 3900fb16a57c..95688d2dce72 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -829,6 +829,13 @@ pom import + + com.google.cloud + google-cloud-oracledatabase-bom + 0.0.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-orchestration-airflow-bom diff --git a/generation_config.yaml b/generation_config.yaml index 2626c5b70b4f..38eee766d72a 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1513,6 +1513,22 @@ libraries: GAPICs: - proto_path: google/cloud/optimization/v1 +- api_shortname: oracledatabase + name_pretty: Oracle Database@Google Cloud API + product_documentation: https://cloud.google.com/oracle/database/docs + api_description: The Oracle Database@Google Cloud API provides a set of APIs to + manage Oracle database services, such as Exadata and Autonomous Databases. + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-oracledatabase + api_id: oracledatabase.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/cloud/oracledatabase/v1 + requires_billing: true - api_shortname: orchestration-airflow name_pretty: Cloud Composer product_documentation: https://cloud.google.com/composer/docs diff --git a/java-oracledatabase/.OwlBot-hermetic.yaml b/java-oracledatabase/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..2f4c13082edf --- /dev/null +++ b/java-oracledatabase/.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-oracledatabase/grpc-google-.*/src" +- "/java-oracledatabase/proto-google-.*/src" +- "/java-oracledatabase/google-.*/src" +- "/java-oracledatabase/samples/snippets/generated" + +deep-preserve-regex: +- "/java-oracledatabase/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/oracledatabase/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-oracledatabase/$1/proto-google-cloud-oracledatabase-$1/src" +- source: "/google/cloud/oracledatabase/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-oracledatabase/$1/grpc-google-cloud-oracledatabase-$1/src" +- source: "/google/cloud/oracledatabase/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-oracledatabase/$1/google-cloud-oracledatabase/src" +- source: "/google/cloud/oracledatabase/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-oracledatabase/$1/samples/snippets/generated" + +api-name: oracledatabase \ No newline at end of file diff --git a/java-oracledatabase/.repo-metadata.json b/java-oracledatabase/.repo-metadata.json new file mode 100644 index 000000000000..ee13b1254752 --- /dev/null +++ b/java-oracledatabase/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "oracledatabase", + "name_pretty": "Oracle Database@Google Cloud API", + "product_documentation": "https://cloud.google.com/oracle/database/docs", + "api_description": "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview", + "release_level": "preview", + "transport": "http", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-oracledatabase", + "distribution_name": "com.google.cloud:google-cloud-oracledatabase", + "api_id": "oracledatabase.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md new file mode 100644 index 000000000000..f00d46841f52 --- /dev/null +++ b/java-oracledatabase/README.md @@ -0,0 +1,226 @@ +# Google Oracle Database@Google Cloud API Client for Java + +Java idiomatic client for [Oracle Database@Google Cloud 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.47.0 + pom + import + + + + + + + com.google.cloud + google-cloud-oracledatabase + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + + +```xml + + com.google.cloud + google-cloud-oracledatabase + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-oracledatabase:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "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 Oracle Database@Google Cloud API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Oracle Database@Google Cloud API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Oracle Database@Google Cloud API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Oracle Database@Google Cloud 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-oracledatabase` library. See the [Quickstart](#quickstart) section +to add `google-cloud-oracledatabase` as a dependency in your code. + +## About Oracle Database@Google Cloud API + + +[Oracle Database@Google Cloud API][product-docs] The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. + +See the [Oracle Database@Google Cloud API client library docs][javadocs] to learn how to +use this Oracle Database@Google Cloud API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Oracle Database@Google Cloud API uses 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/oracle/database/docs +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/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-oracledatabase.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/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=oracledatabase.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-oracledatabase/google-cloud-oracledatabase-bom/pom.xml b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml new file mode 100644 index 000000000000..5015ae63d0d1 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml @@ -0,0 +1,38 @@ + + + 4.0.0 + com.google.cloud + google-cloud-oracledatabase-bom + 0.0.1-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.46.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google Oracle Database@Google Cloud API BOM + + BOM for Oracle Database@Google Cloud API + + + + true + + + + + + com.google.cloud + google-cloud-oracledatabase + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-oracledatabase-v1 + 0.0.1-SNAPSHOT + + + + diff --git a/java-oracledatabase/google-cloud-oracledatabase/pom.xml b/java-oracledatabase/google-cloud-oracledatabase/pom.xml new file mode 100644 index 000000000000..3cc44da25e48 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/pom.xml @@ -0,0 +1,110 @@ + + + 4.0.0 + com.google.cloud + google-cloud-oracledatabase + 0.0.1-SNAPSHOT + jar + Google Oracle Database@Google Cloud API + Oracle Database@Google Cloud API The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. + + com.google.cloud + google-cloud-oracledatabase-parent + 0.0.1-SNAPSHOT + + + google-cloud-oracledatabase + + + + 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-oracledatabase-v1 + + + 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 + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java new file mode 100644 index 000000000000..a18416b35ae0 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -0,0 +1,5495 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.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.oracledatabase.v1.stub.OracleDatabaseStub; +import com.google.cloud.oracledatabase.v1.stub.OracleDatabaseStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ *   CloudExadataInfrastructureName name =
+ *       CloudExadataInfrastructureName.of(
+ *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ *   CloudExadataInfrastructure response =
+ *       oracleDatabaseClient.getCloudExadataInfrastructure(name);
+ * }
+ * }
+ * + *

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

ListCloudExadataInfrastructures

Lists Exadata Infrastructures in a given project and location.

+ *

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

+ *
    + *
  • listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request) + *

+ *

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

+ *
    + *
  • listCloudExadataInfrastructures(LocationName parent) + *

  • listCloudExadataInfrastructures(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.

+ *
    + *
  • listCloudExadataInfrastructuresPagedCallable() + *

  • listCloudExadataInfrastructuresCallable() + *

+ *

GetCloudExadataInfrastructure

Gets details of a single Exadata Infrastructure.

+ *

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

+ *
    + *
  • getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest request) + *

+ *

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

+ *
    + *
  • getCloudExadataInfrastructure(CloudExadataInfrastructureName name) + *

  • getCloudExadataInfrastructure(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.

+ *
    + *
  • getCloudExadataInfrastructureCallable() + *

+ *

CreateCloudExadataInfrastructure

Creates a new Exadata Infrastructure in a given project and location.

+ *

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

+ *
    + *
  • createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId) + *

  • createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId) + *

+ *

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

+ *
    + *
  • createCloudExadataInfrastructureOperationCallable() + *

  • createCloudExadataInfrastructureCallable() + *

+ *

DeleteCloudExadataInfrastructure

Deletes a single Exadata Infrastructure.

+ *

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

+ *
    + *
  • deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name) + *

  • deleteCloudExadataInfrastructureAsync(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.

+ *
    + *
  • deleteCloudExadataInfrastructureOperationCallable() + *

  • deleteCloudExadataInfrastructureCallable() + *

+ *

ListCloudVmClusters

Lists the VM Clusters in a given project and location.

+ *

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

+ *
    + *
  • listCloudVmClusters(ListCloudVmClustersRequest request) + *

+ *

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

+ *
    + *
  • listCloudVmClusters(LocationName parent) + *

  • listCloudVmClusters(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.

+ *
    + *
  • listCloudVmClustersPagedCallable() + *

  • listCloudVmClustersCallable() + *

+ *

GetCloudVmCluster

Gets details of a single VM Cluster.

+ *

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

+ *
    + *
  • getCloudVmCluster(GetCloudVmClusterRequest request) + *

+ *

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

+ *
    + *
  • getCloudVmCluster(CloudVmClusterName name) + *

  • getCloudVmCluster(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.

+ *
    + *
  • getCloudVmClusterCallable() + *

+ *

CreateCloudVmCluster

Creates a new VM Cluster in a given project and location.

+ *

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

+ *
    + *
  • createCloudVmClusterAsync(CreateCloudVmClusterRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) + *

  • createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) + *

+ *

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

+ *
    + *
  • createCloudVmClusterOperationCallable() + *

  • createCloudVmClusterCallable() + *

+ *

DeleteCloudVmCluster

Deletes a single VM Cluster.

+ *

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

+ *
    + *
  • deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteCloudVmClusterAsync(CloudVmClusterName name) + *

  • deleteCloudVmClusterAsync(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.

+ *
    + *
  • deleteCloudVmClusterOperationCallable() + *

  • deleteCloudVmClusterCallable() + *

+ *

ListEntitlements

Lists the entitlements in a given project.

+ *

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

+ *
    + *
  • listEntitlements(ListEntitlementsRequest request) + *

+ *

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

+ *
    + *
  • listEntitlements(LocationName parent) + *

  • listEntitlements(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.

+ *
    + *
  • listEntitlementsPagedCallable() + *

  • listEntitlementsCallable() + *

+ *

ListDbServers

Lists the database servers of an Exadata Infrastructure instance.

+ *

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

+ *
    + *
  • listDbServers(ListDbServersRequest request) + *

+ *

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

+ *
    + *
  • listDbServers(CloudExadataInfrastructureName parent) + *

  • listDbServers(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.

+ *
    + *
  • listDbServersPagedCallable() + *

  • listDbServersCallable() + *

+ *

ListDbNodes

Lists the database nodes of a VM Cluster.

+ *

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

+ *
    + *
  • listDbNodes(ListDbNodesRequest request) + *

+ *

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

+ *
    + *
  • listDbNodes(CloudVmClusterName parent) + *

  • listDbNodes(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.

+ *
    + *
  • listDbNodesPagedCallable() + *

  • listDbNodesCallable() + *

+ *

ListGiVersions

Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.

+ *

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

+ *
    + *
  • listGiVersions(ListGiVersionsRequest request) + *

+ *

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

+ *
    + *
  • listGiVersions(LocationName parent) + *

  • listGiVersions(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.

+ *
    + *
  • listGiVersionsPagedCallable() + *

  • listGiVersionsCallable() + *

+ *

ListDbSystemShapes

Lists the database system shapes available for the project and location.

+ *

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

+ *
    + *
  • listDbSystemShapes(ListDbSystemShapesRequest request) + *

+ *

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

+ *
    + *
  • listDbSystemShapes(LocationName parent) + *

  • listDbSystemShapes(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.

+ *
    + *
  • listDbSystemShapesPagedCallable() + *

  • listDbSystemShapesCallable() + *

+ *

ListAutonomousDatabases

Lists the Autonomous Databases in a given project and location.

+ *

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

+ *
    + *
  • listAutonomousDatabases(ListAutonomousDatabasesRequest request) + *

+ *

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

+ *
    + *
  • listAutonomousDatabases(LocationName parent) + *

  • listAutonomousDatabases(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.

+ *
    + *
  • listAutonomousDatabasesPagedCallable() + *

  • listAutonomousDatabasesCallable() + *

+ *

GetAutonomousDatabase

Gets the details of a single Autonomous Database.

+ *

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

+ *
    + *
  • getAutonomousDatabase(GetAutonomousDatabaseRequest request) + *

+ *

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

+ *
    + *
  • getAutonomousDatabase(AutonomousDatabaseName name) + *

  • getAutonomousDatabase(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.

+ *
    + *
  • getAutonomousDatabaseCallable() + *

+ *

CreateAutonomousDatabase

Creates a new Autonomous Database in a given project and location.

+ *

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

+ *
    + *
  • createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) + *

  • createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) + *

+ *

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

+ *
    + *
  • createAutonomousDatabaseOperationCallable() + *

  • createAutonomousDatabaseCallable() + *

+ *

DeleteAutonomousDatabase

Deletes a single Autonomous Database.

+ *

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

+ *
    + *
  • deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteAutonomousDatabaseAsync(AutonomousDatabaseName name) + *

  • deleteAutonomousDatabaseAsync(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.

+ *
    + *
  • deleteAutonomousDatabaseOperationCallable() + *

  • deleteAutonomousDatabaseCallable() + *

+ *

RestoreAutonomousDatabase

Restores a single Autonomous Database.

+ *

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

+ *
    + *
  • restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime) + *

  • restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime) + *

+ *

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

+ *
    + *
  • restoreAutonomousDatabaseOperationCallable() + *

  • restoreAutonomousDatabaseCallable() + *

+ *

GenerateAutonomousDatabaseWallet

Generates a wallet for an Autonomous Database.

+ *

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

+ *
    + *
  • generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest request) + *

+ *

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

+ *
    + *
  • generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) + *

  • generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password) + *

+ *

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

+ *
    + *
  • generateAutonomousDatabaseWalletCallable() + *

+ *

ListAutonomousDbVersions

Lists all the available Autonomous Database versions for a project and location.

+ *

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

+ *
    + *
  • listAutonomousDbVersions(ListAutonomousDbVersionsRequest request) + *

+ *

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

+ *
    + *
  • listAutonomousDbVersions(LocationName parent) + *

  • listAutonomousDbVersions(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.

+ *
    + *
  • listAutonomousDbVersionsPagedCallable() + *

  • listAutonomousDbVersionsCallable() + *

+ *

ListAutonomousDatabaseCharacterSets

Lists Autonomous Database Character Sets in a given project and location.

+ *

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

+ *
    + *
  • listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request) + *

+ *

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

+ *
    + *
  • listAutonomousDatabaseCharacterSets(LocationName parent) + *

  • listAutonomousDatabaseCharacterSets(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.

+ *
    + *
  • listAutonomousDatabaseCharacterSetsPagedCallable() + *

  • listAutonomousDatabaseCharacterSetsCallable() + *

+ *

ListAutonomousDatabaseBackups

Lists the long-term and automatic backups of an Autonomous Database.

+ *

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

+ *
    + *
  • listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request) + *

+ *

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

+ *
    + *
  • listAutonomousDatabaseBackups(LocationName parent) + *

  • listAutonomousDatabaseBackups(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.

+ *
    + *
  • listAutonomousDatabaseBackupsPagedCallable() + *

  • listAutonomousDatabaseBackupsCallable() + *

+ *

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 OracleDatabaseSettings 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
+ * OracleDatabaseSettings oracleDatabaseSettings =
+ *     OracleDatabaseSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
+ * }
+ * + *

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
+ * OracleDatabaseSettings oracleDatabaseSettings =
+ *     OracleDatabaseSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OracleDatabaseClient implements BackgroundResource { + private final OracleDatabaseSettings settings; + private final OracleDatabaseStub stub; + private final OperationsClient httpJsonOperationsClient; + + /** Constructs an instance of OracleDatabaseClient with default settings. */ + public static final OracleDatabaseClient create() throws IOException { + return create(OracleDatabaseSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OracleDatabaseClient, 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 OracleDatabaseClient create(OracleDatabaseSettings settings) + throws IOException { + return new OracleDatabaseClient(settings); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(OracleDatabaseSettings). + */ + public static final OracleDatabaseClient create(OracleDatabaseStub stub) { + return new OracleDatabaseClient(stub); + } + + /** + * Constructs an instance of OracleDatabaseClient, 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 OracleDatabaseClient(OracleDatabaseSettings settings) throws IOException { + this.settings = settings; + this.stub = ((OracleDatabaseStubSettings) settings.getStubSettings()).createStub(); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected OracleDatabaseClient(OracleDatabaseStub stub) { + this.settings = null; + this.stub = stub; + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final OracleDatabaseSettings getSettings() { + return settings; + } + + public OracleDatabaseStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (CloudExadataInfrastructure element :
+   *       oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( + LocationName parent) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCloudExadataInfrastructures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (CloudExadataInfrastructure element :
+   *       oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( + String parent) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder().setParent(parent).build(); + return listCloudExadataInfrastructures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListCloudExadataInfrastructuresRequest request =
+   *       ListCloudExadataInfrastructuresRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (CloudExadataInfrastructure element :
+   *       oracleDatabaseClient.listCloudExadataInfrastructures(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 ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( + ListCloudExadataInfrastructuresRequest request) { + return listCloudExadataInfrastructuresPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListCloudExadataInfrastructuresRequest request =
+   *       ListCloudExadataInfrastructuresRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CloudExadataInfrastructure element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresPagedCallable() { + return stub.listCloudExadataInfrastructuresPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListCloudExadataInfrastructuresRequest request =
+   *       ListCloudExadataInfrastructuresRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListCloudExadataInfrastructuresResponse response =
+   *         oracleDatabaseClient.listCloudExadataInfrastructuresCallable().call(request);
+   *     for (CloudExadataInfrastructure element : response.getCloudExadataInfrastructuresList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresCallable() { + return stub.listCloudExadataInfrastructuresCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudExadataInfrastructureName name =
+   *       CloudExadataInfrastructureName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient.getCloudExadataInfrastructure(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudExadataInfrastructure getCloudExadataInfrastructure( + CloudExadataInfrastructureName name) { + GetCloudExadataInfrastructureRequest request = + GetCloudExadataInfrastructureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCloudExadataInfrastructure(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       CloudExadataInfrastructureName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *           .toString();
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient.getCloudExadataInfrastructure(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudExadataInfrastructure getCloudExadataInfrastructure(String name) { + GetCloudExadataInfrastructureRequest request = + GetCloudExadataInfrastructureRequest.newBuilder().setName(name).build(); + return getCloudExadataInfrastructure(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetCloudExadataInfrastructureRequest request =
+   *       GetCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .build();
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient.getCloudExadataInfrastructure(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 CloudExadataInfrastructure getCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request) { + return getCloudExadataInfrastructureCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetCloudExadataInfrastructureRequest request =
+   *       GetCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request);
+   *   // Do something.
+   *   CloudExadataInfrastructure response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCloudExadataInfrastructureCallable() { + return stub.getCloudExadataInfrastructureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   CloudExadataInfrastructure cloudExadataInfrastructure =
+   *       CloudExadataInfrastructure.newBuilder().build();
+   *   String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient
+   *           .createCloudExadataInfrastructureAsync(
+   *               parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to + * create. + * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create. + * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + * characters in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCloudExadataInfrastructureAsync( + LocationName parent, + CloudExadataInfrastructure cloudExadataInfrastructure, + String cloudExadataInfrastructureId) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .setCloudExadataInfrastructureId(cloudExadataInfrastructureId) + .build(); + return createCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   CloudExadataInfrastructure cloudExadataInfrastructure =
+   *       CloudExadataInfrastructure.newBuilder().build();
+   *   String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient
+   *           .createCloudExadataInfrastructureAsync(
+   *               parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to + * create. + * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create. + * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + * characters in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCloudExadataInfrastructureAsync( + String parent, + CloudExadataInfrastructure cloudExadataInfrastructure, + String cloudExadataInfrastructureId) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(parent) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .setCloudExadataInfrastructureId(cloudExadataInfrastructureId) + .build(); + return createCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateCloudExadataInfrastructureRequest request =
+   *       CreateCloudExadataInfrastructureRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
+   *           .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient.createCloudExadataInfrastructureAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request) { + return createCloudExadataInfrastructureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateCloudExadataInfrastructureRequest request =
+   *       CreateCloudExadataInfrastructureRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
+   *           .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient
+   *           .createCloudExadataInfrastructureOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   CloudExadataInfrastructure response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationCallable() { + return stub.createCloudExadataInfrastructureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateCloudExadataInfrastructureRequest request =
+   *       CreateCloudExadataInfrastructureRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
+   *           .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCloudExadataInfrastructureCallable() { + return stub.createCloudExadataInfrastructureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudExadataInfrastructureName name =
+   *       CloudExadataInfrastructureName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+   *   oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudExadataInfrastructureAsync( + CloudExadataInfrastructureName name) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       CloudExadataInfrastructureName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *           .toString();
+   *   oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudExadataInfrastructureAsync( + String name) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder().setName(name).build(); + return deleteCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteCloudExadataInfrastructureRequest request =
+   *       DeleteCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudExadataInfrastructureAsync( + DeleteCloudExadataInfrastructureRequest request) { + return deleteCloudExadataInfrastructureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteCloudExadataInfrastructureRequest request =
+   *       DeleteCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient
+   *           .deleteCloudExadataInfrastructureOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCloudExadataInfrastructureOperationCallable() { + return stub.deleteCloudExadataInfrastructureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteCloudExadataInfrastructureRequest request =
+   *       DeleteCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCloudExadataInfrastructureCallable() { + return stub.deleteCloudExadataInfrastructureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCloudVmClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudVmClustersPagedResponse listCloudVmClusters(String parent) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder().setParent(parent).build(); + return listCloudVmClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListCloudVmClustersRequest request =
+   *       ListCloudVmClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (CloudVmCluster element :
+   *       oracleDatabaseClient.listCloudVmClusters(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 ListCloudVmClustersPagedResponse listCloudVmClusters( + ListCloudVmClustersRequest request) { + return listCloudVmClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListCloudVmClustersRequest request =
+   *       ListCloudVmClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CloudVmCluster element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCloudVmClustersPagedCallable() { + return stub.listCloudVmClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListCloudVmClustersRequest request =
+   *       ListCloudVmClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListCloudVmClustersResponse response =
+   *         oracleDatabaseClient.listCloudVmClustersCallable().call(request);
+   *     for (CloudVmCluster element : response.getCloudVmClustersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCloudVmClustersCallable() { + return stub.listCloudVmClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudVmClusterName name =
+   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
+   *   CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name) { + GetCloudVmClusterRequest request = + GetCloudVmClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCloudVmCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
+   *   CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudVmCluster getCloudVmCluster(String name) { + GetCloudVmClusterRequest request = GetCloudVmClusterRequest.newBuilder().setName(name).build(); + return getCloudVmCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetCloudVmClusterRequest request =
+   *       GetCloudVmClusterRequest.newBuilder()
+   *           .setName(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .build();
+   *   CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(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 CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest request) { + return getCloudVmClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetCloudVmClusterRequest request =
+   *       GetCloudVmClusterRequest.newBuilder()
+   *           .setName(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request);
+   *   // Do something.
+   *   CloudVmCluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCloudVmClusterCallable() { + return stub.getCloudVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
+   *   String cloudVmClusterId = "cloudVmClusterId-1217103287";
+   *   CloudVmCluster response =
+   *       oracleDatabaseClient
+   *           .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param cloudVmCluster Required. The resource being created + * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted + * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. + * The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCloudVmClusterAsync( + LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCloudVmCluster(cloudVmCluster) + .setCloudVmClusterId(cloudVmClusterId) + .build(); + return createCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
+   *   String cloudVmClusterId = "cloudVmClusterId-1217103287";
+   *   CloudVmCluster response =
+   *       oracleDatabaseClient
+   *           .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param cloudVmCluster Required. The resource being created + * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted + * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. + * The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCloudVmClusterAsync( + String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(parent) + .setCloudVmCluster(cloudVmCluster) + .setCloudVmClusterId(cloudVmClusterId) + .build(); + return createCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateCloudVmClusterRequest request =
+   *       CreateCloudVmClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCloudVmClusterId("cloudVmClusterId-1217103287")
+   *           .setCloudVmCluster(CloudVmCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   CloudVmCluster response = oracleDatabaseClient.createCloudVmClusterAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCloudVmClusterAsync( + CreateCloudVmClusterRequest request) { + return createCloudVmClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateCloudVmClusterRequest request =
+   *       CreateCloudVmClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCloudVmClusterId("cloudVmClusterId-1217103287")
+   *           .setCloudVmCluster(CloudVmCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CloudVmCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createCloudVmClusterOperationCallable() { + return stub.createCloudVmClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateCloudVmClusterRequest request =
+   *       CreateCloudVmClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCloudVmClusterId("cloudVmClusterId-1217103287")
+   *           .setCloudVmCluster(CloudVmCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCloudVmClusterCallable() { + return stub.createCloudVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudVmClusterName name =
+   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
+   *   oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudVmClusterAsync( + CloudVmClusterName name) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
+   *   oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudVmClusterAsync(String name) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder().setName(name).build(); + return deleteCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteCloudVmClusterRequest request =
+   *       DeleteCloudVmClusterRequest.newBuilder()
+   *           .setName(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   oracleDatabaseClient.deleteCloudVmClusterAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudVmClusterAsync( + DeleteCloudVmClusterRequest request) { + return deleteCloudVmClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteCloudVmClusterRequest request =
+   *       DeleteCloudVmClusterRequest.newBuilder()
+   *           .setName(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCloudVmClusterOperationCallable() { + return stub.deleteCloudVmClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteCloudVmClusterRequest request =
+   *       DeleteCloudVmClusterRequest.newBuilder()
+   *           .setName(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCloudVmClusterCallable() { + return stub.deleteCloudVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEntitlements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEntitlementsPagedResponse listEntitlements(String parent) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder().setParent(parent).build(); + return listEntitlements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListEntitlementsRequest request =
+   *       ListEntitlementsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Entitlement element : oracleDatabaseClient.listEntitlements(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 ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request) { + return listEntitlementsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListEntitlementsRequest request =
+   *       ListEntitlementsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Entitlement element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEntitlementsPagedCallable() { + return stub.listEntitlementsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListEntitlementsRequest request =
+   *       ListEntitlementsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListEntitlementsResponse response =
+   *         oracleDatabaseClient.listEntitlementsCallable().call(request);
+   *     for (Entitlement element : response.getEntitlementsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEntitlementsCallable() { + return stub.listEntitlementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudExadataInfrastructureName parent =
+   *       CloudExadataInfrastructureName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+   *   for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent) { + ListDbServersRequest request = + ListDbServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent =
+   *       CloudExadataInfrastructureName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *           .toString();
+   *   for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbServersPagedResponse listDbServers(String parent) { + ListDbServersRequest request = ListDbServersRequest.newBuilder().setParent(parent).build(); + return listDbServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbServersRequest request =
+   *       ListDbServersRequest.newBuilder()
+   *           .setParent(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DbServer element : oracleDatabaseClient.listDbServers(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 ListDbServersPagedResponse listDbServers(ListDbServersRequest request) { + return listDbServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbServersRequest request =
+   *       ListDbServersRequest.newBuilder()
+   *           .setParent(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listDbServersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DbServer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDbServersPagedCallable() { + return stub.listDbServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbServersRequest request =
+   *       ListDbServersRequest.newBuilder()
+   *           .setParent(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDbServersResponse response = oracleDatabaseClient.listDbServersCallable().call(request);
+   *     for (DbServer element : response.getDbServersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listDbServersCallable() { + return stub.listDbServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudVmClusterName parent =
+   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
+   *   for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) { + ListDbNodesRequest request = + ListDbNodesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent =
+   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
+   *   for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbNodesPagedResponse listDbNodes(String parent) { + ListDbNodesRequest request = ListDbNodesRequest.newBuilder().setParent(parent).build(); + return listDbNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbNodesRequest request =
+   *       ListDbNodesRequest.newBuilder()
+   *           .setParent(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DbNode element : oracleDatabaseClient.listDbNodes(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 ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request) { + return listDbNodesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbNodesRequest request =
+   *       ListDbNodesRequest.newBuilder()
+   *           .setParent(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DbNode element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDbNodesPagedCallable() { + return stub.listDbNodesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbNodesRequest request =
+   *       ListDbNodesRequest.newBuilder()
+   *           .setParent(
+   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDbNodesResponse response = oracleDatabaseClient.listDbNodesCallable().call(request);
+   *     for (DbNode element : response.getDbNodesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listDbNodesCallable() { + return stub.listDbNodesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and + * 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGiVersionsPagedResponse listGiVersions(LocationName parent) { + ListGiVersionsRequest request = + ListGiVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGiVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and + * 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGiVersionsPagedResponse listGiVersions(String parent) { + ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder().setParent(parent).build(); + return listGiVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and + * 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListGiVersionsRequest request =
+   *       ListGiVersionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (GiVersion element : oracleDatabaseClient.listGiVersions(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 ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request) { + return listGiVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and + * 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListGiVersionsRequest request =
+   *       ListGiVersionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (GiVersion element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGiVersionsPagedCallable() { + return stub.listGiVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and + * 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListGiVersionsRequest request =
+   *       ListGiVersionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListGiVersionsResponse response =
+   *         oracleDatabaseClient.listGiVersionsCallable().call(request);
+   *     for (GiVersion element : response.getGiVersionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGiVersionsCallable() { + return stub.listGiVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for Database System Shapes in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbSystemShapes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for Database System Shapes in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbSystemShapesPagedResponse listDbSystemShapes(String parent) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder().setParent(parent).build(); + return listDbSystemShapes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbSystemShapesRequest request =
+   *       ListDbSystemShapesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(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 ListDbSystemShapesPagedResponse listDbSystemShapes( + ListDbSystemShapesRequest request) { + return listDbSystemShapesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbSystemShapesRequest request =
+   *       ListDbSystemShapesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DbSystemShape element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDbSystemShapesPagedCallable() { + return stub.listDbSystemShapesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListDbSystemShapesRequest request =
+   *       ListDbSystemShapesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDbSystemShapesResponse response =
+   *         oracleDatabaseClient.listDbSystemShapesCallable().call(request);
+   *     for (DbSystemShape element : response.getDbSystemShapesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDbSystemShapesCallable() { + return stub.listDbSystemShapesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AutonomousDatabase element :
+   *       oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AutonomousDatabase element :
+   *       oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String parent) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder().setParent(parent).build(); + return listAutonomousDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabasesRequest request =
+   *       ListAutonomousDatabasesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (AutonomousDatabase element :
+   *       oracleDatabaseClient.listAutonomousDatabases(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 ListAutonomousDatabasesPagedResponse listAutonomousDatabases( + ListAutonomousDatabasesRequest request) { + return listAutonomousDatabasesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabasesRequest request =
+   *       ListAutonomousDatabasesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AutonomousDatabase element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAutonomousDatabasesPagedCallable() { + return stub.listAutonomousDatabasesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabasesRequest request =
+   *       ListAutonomousDatabasesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAutonomousDatabasesResponse response =
+   *         oracleDatabaseClient.listAutonomousDatabasesCallable().call(request);
+   *     for (AutonomousDatabase element : response.getAutonomousDatabasesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAutonomousDatabasesCallable() { + return stub.listAutonomousDatabasesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   AutonomousDatabaseName name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name) { + GetAutonomousDatabaseRequest request = + GetAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAutonomousDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutonomousDatabase getAutonomousDatabase(String name) { + GetAutonomousDatabaseRequest request = + GetAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return getAutonomousDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetAutonomousDatabaseRequest request =
+   *       GetAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .build();
+   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(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 AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseRequest request) { + return getAutonomousDatabaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetAutonomousDatabaseRequest request =
+   *       GetAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request);
+   *   // Do something.
+   *   AutonomousDatabase response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAutonomousDatabaseCallable() { + return stub.getAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
+   *   String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
+   *   AutonomousDatabase response =
+   *       oracleDatabaseClient
+   *           .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param autonomousDatabase Required. The Autonomous Database being created. + * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value + * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters + * in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAutonomousDatabaseAsync( + LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAutonomousDatabase(autonomousDatabase) + .setAutonomousDatabaseId(autonomousDatabaseId) + .build(); + return createAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
+   *   String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
+   *   AutonomousDatabase response =
+   *       oracleDatabaseClient
+   *           .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param autonomousDatabase Required. The Autonomous Database being created. + * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value + * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters + * in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAutonomousDatabaseAsync( + String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(parent) + .setAutonomousDatabase(autonomousDatabase) + .setAutonomousDatabaseId(autonomousDatabaseId) + .build(); + return createAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateAutonomousDatabaseRequest request =
+   *       CreateAutonomousDatabaseRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
+   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AutonomousDatabase response =
+   *       oracleDatabaseClient.createAutonomousDatabaseAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAutonomousDatabaseAsync( + CreateAutonomousDatabaseRequest request) { + return createAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateAutonomousDatabaseRequest request =
+   *       CreateAutonomousDatabaseRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
+   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AutonomousDatabase response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationCallable() { + return stub.createAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CreateAutonomousDatabaseRequest request =
+   *       CreateAutonomousDatabaseRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
+   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createAutonomousDatabaseCallable() { + return stub.createAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   AutonomousDatabaseName name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+   *   oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutonomousDatabaseAsync( + AutonomousDatabaseName name) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+   *   oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutonomousDatabaseAsync( + String name) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return deleteAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteAutonomousDatabaseRequest request =
+   *       DeleteAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   oracleDatabaseClient.deleteAutonomousDatabaseAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutonomousDatabaseAsync( + DeleteAutonomousDatabaseRequest request) { + return deleteAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteAutonomousDatabaseRequest request =
+   *       DeleteAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteAutonomousDatabaseOperationCallable() { + return stub.deleteAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   DeleteAutonomousDatabaseRequest request =
+   *       DeleteAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteAutonomousDatabaseCallable() { + return stub.deleteAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   AutonomousDatabaseName name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+   *   Timestamp restoreTime = Timestamp.newBuilder().build();
+   *   AutonomousDatabase response =
+   *       oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param restoreTime Required. The time and date to restore the database to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRestoreTime(restoreTime) + .build(); + return restoreAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+   *   Timestamp restoreTime = Timestamp.newBuilder().build();
+   *   AutonomousDatabase response =
+   *       oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param restoreTime Required. The time and date to restore the database to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName(name) + .setRestoreTime(restoreTime) + .build(); + return restoreAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   RestoreAutonomousDatabaseRequest request =
+   *       RestoreAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setRestoreTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   AutonomousDatabase response =
+   *       oracleDatabaseClient.restoreAutonomousDatabaseAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request) { + return restoreAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   RestoreAutonomousDatabaseRequest request =
+   *       RestoreAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setRestoreTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AutonomousDatabase response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationCallable() { + return stub.restoreAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   RestoreAutonomousDatabaseRequest request =
+   *       RestoreAutonomousDatabaseRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setRestoreTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + restoreAutonomousDatabaseCallable() { + return stub.restoreAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   AutonomousDatabaseName name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+   *   GenerateType type = GenerateType.forNumber(0);
+   *   boolean isRegional = true;
+   *   String password = "password1216985755";
+   *   GenerateAutonomousDatabaseWalletResponse response =
+   *       oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
+   * }
+   * }
+ * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param type Optional. The type of wallet generation for the Autonomous Database. The default + * value is SINGLE. + * @param isRegional Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * @param password Required. The password used to encrypt the keys inside the wallet. The password + * must be a minimum of 8 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( + AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) { + GenerateAutonomousDatabaseWalletRequest request = + GenerateAutonomousDatabaseWalletRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setType(type) + .setIsRegional(isRegional) + .setPassword(password) + .build(); + return generateAutonomousDatabaseWallet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+   *   GenerateType type = GenerateType.forNumber(0);
+   *   boolean isRegional = true;
+   *   String password = "password1216985755";
+   *   GenerateAutonomousDatabaseWalletResponse response =
+   *       oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
+   * }
+   * }
+ * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param type Optional. The type of wallet generation for the Autonomous Database. The default + * value is SINGLE. + * @param isRegional Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * @param password Required. The password used to encrypt the keys inside the wallet. The password + * must be a minimum of 8 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( + String name, GenerateType type, boolean isRegional, String password) { + GenerateAutonomousDatabaseWalletRequest request = + GenerateAutonomousDatabaseWalletRequest.newBuilder() + .setName(name) + .setType(type) + .setIsRegional(isRegional) + .setPassword(password) + .build(); + return generateAutonomousDatabaseWallet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GenerateAutonomousDatabaseWalletRequest request =
+   *       GenerateAutonomousDatabaseWalletRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setType(GenerateType.forNumber(0))
+   *           .setIsRegional(true)
+   *           .setPassword("password1216985755")
+   *           .build();
+   *   GenerateAutonomousDatabaseWalletResponse response =
+   *       oracleDatabaseClient.generateAutonomousDatabaseWallet(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 GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( + GenerateAutonomousDatabaseWalletRequest request) { + return generateAutonomousDatabaseWalletCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GenerateAutonomousDatabaseWalletRequest request =
+   *       GenerateAutonomousDatabaseWalletRequest.newBuilder()
+   *           .setName(
+   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+   *                   .toString())
+   *           .setType(GenerateType.forNumber(0))
+   *           .setIsRegional(true)
+   *           .setPassword("password1216985755")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateAutonomousDatabaseWalletResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletCallable() { + return stub.generateAutonomousDatabaseWalletCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AutonomousDbVersion element :
+   *       oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDbVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AutonomousDbVersion element :
+   *       oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(String parent) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder().setParent(parent).build(); + return listAutonomousDbVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDbVersionsRequest request =
+   *       ListAutonomousDbVersionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (AutonomousDbVersion element :
+   *       oracleDatabaseClient.listAutonomousDbVersions(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 ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( + ListAutonomousDbVersionsRequest request) { + return listAutonomousDbVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDbVersionsRequest request =
+   *       ListAutonomousDbVersionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AutonomousDbVersion element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAutonomousDbVersionsPagedCallable() { + return stub.listAutonomousDbVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDbVersionsRequest request =
+   *       ListAutonomousDbVersionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAutonomousDbVersionsResponse response =
+   *         oracleDatabaseClient.listAutonomousDbVersionsCallable().call(request);
+   *     for (AutonomousDbVersion element : response.getAutonomousDbVersionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAutonomousDbVersionsCallable() { + return stub.listAutonomousDbVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AutonomousDatabaseCharacterSet element :
+   *       oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( + LocationName parent) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDatabaseCharacterSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AutonomousDatabaseCharacterSet element :
+   *       oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( + String parent) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build(); + return listAutonomousDatabaseCharacterSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabaseCharacterSetsRequest request =
+   *       ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (AutonomousDatabaseCharacterSet element :
+   *       oracleDatabaseClient.listAutonomousDatabaseCharacterSets(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 ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( + ListAutonomousDatabaseCharacterSetsRequest request) { + return listAutonomousDatabaseCharacterSetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabaseCharacterSetsRequest request =
+   *       ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient
+   *           .listAutonomousDatabaseCharacterSetsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsPagedCallable() { + return stub.listAutonomousDatabaseCharacterSetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets in a given project and 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabaseCharacterSetsRequest request =
+   *       ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListAutonomousDatabaseCharacterSetsResponse response =
+   *         oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request);
+   *     for (AutonomousDatabaseCharacterSet element :
+   *         response.getAutonomousDatabaseCharacterSetsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsCallable() { + return stub.listAutonomousDatabaseCharacterSetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AutonomousDatabaseBackup element :
+   *       oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( + LocationName parent) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDatabaseBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AutonomousDatabaseBackup element :
+   *       oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( + String parent) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder().setParent(parent).build(); + return listAutonomousDatabaseBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabaseBackupsRequest request =
+   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (AutonomousDatabaseBackup element :
+   *       oracleDatabaseClient.listAutonomousDatabaseBackups(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 ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( + ListAutonomousDatabaseBackupsRequest request) { + return listAutonomousDatabaseBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabaseBackupsRequest request =
+   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AutonomousDatabaseBackup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsPagedCallable() { + return stub.listAutonomousDatabaseBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListAutonomousDatabaseBackupsRequest request =
+   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAutonomousDatabaseBackupsResponse response =
+   *         oracleDatabaseClient.listAutonomousDatabaseBackupsCallable().call(request);
+   *     for (AutonomousDatabaseBackup element : response.getAutonomousDatabaseBackupsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsCallable() { + return stub.listAutonomousDatabaseBackupsCallable(); + } + + // 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : oracleDatabaseClient.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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = oracleDatabaseClient.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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = oracleDatabaseClient.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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = oracleDatabaseClient.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 ListCloudExadataInfrastructuresPagedResponse + extends AbstractPagedListResponse< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure, + ListCloudExadataInfrastructuresPage, + ListCloudExadataInfrastructuresFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCloudExadataInfrastructuresPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCloudExadataInfrastructuresPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCloudExadataInfrastructuresPagedResponse(ListCloudExadataInfrastructuresPage page) { + super(page, ListCloudExadataInfrastructuresFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCloudExadataInfrastructuresPage + extends AbstractPage< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure, + ListCloudExadataInfrastructuresPage> { + + private ListCloudExadataInfrastructuresPage( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ListCloudExadataInfrastructuresResponse response) { + super(context, response); + } + + private static ListCloudExadataInfrastructuresPage createEmptyPage() { + return new ListCloudExadataInfrastructuresPage(null, null); + } + + @Override + protected ListCloudExadataInfrastructuresPage createPage( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ListCloudExadataInfrastructuresResponse response) { + return new ListCloudExadataInfrastructuresPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCloudExadataInfrastructuresFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure, + ListCloudExadataInfrastructuresPage, + ListCloudExadataInfrastructuresFixedSizeCollection> { + + private ListCloudExadataInfrastructuresFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCloudExadataInfrastructuresFixedSizeCollection createEmptyCollection() { + return new ListCloudExadataInfrastructuresFixedSizeCollection(null, 0); + } + + @Override + protected ListCloudExadataInfrastructuresFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCloudExadataInfrastructuresFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCloudVmClustersPagedResponse + extends AbstractPagedListResponse< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + CloudVmCluster, + ListCloudVmClustersPage, + ListCloudVmClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCloudVmClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCloudVmClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCloudVmClustersPagedResponse(ListCloudVmClustersPage page) { + super(page, ListCloudVmClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCloudVmClustersPage + extends AbstractPage< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + CloudVmCluster, + ListCloudVmClustersPage> { + + private ListCloudVmClustersPage( + PageContext + context, + ListCloudVmClustersResponse response) { + super(context, response); + } + + private static ListCloudVmClustersPage createEmptyPage() { + return new ListCloudVmClustersPage(null, null); + } + + @Override + protected ListCloudVmClustersPage createPage( + PageContext + context, + ListCloudVmClustersResponse response) { + return new ListCloudVmClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCloudVmClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + CloudVmCluster, + ListCloudVmClustersPage, + ListCloudVmClustersFixedSizeCollection> { + + private ListCloudVmClustersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCloudVmClustersFixedSizeCollection createEmptyCollection() { + return new ListCloudVmClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListCloudVmClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCloudVmClustersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEntitlementsPagedResponse + extends AbstractPagedListResponse< + ListEntitlementsRequest, + ListEntitlementsResponse, + Entitlement, + ListEntitlementsPage, + ListEntitlementsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEntitlementsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEntitlementsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEntitlementsPagedResponse(ListEntitlementsPage page) { + super(page, ListEntitlementsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEntitlementsPage + extends AbstractPage< + ListEntitlementsRequest, ListEntitlementsResponse, Entitlement, ListEntitlementsPage> { + + private ListEntitlementsPage( + PageContext context, + ListEntitlementsResponse response) { + super(context, response); + } + + private static ListEntitlementsPage createEmptyPage() { + return new ListEntitlementsPage(null, null); + } + + @Override + protected ListEntitlementsPage createPage( + PageContext context, + ListEntitlementsResponse response) { + return new ListEntitlementsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEntitlementsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEntitlementsRequest, + ListEntitlementsResponse, + Entitlement, + ListEntitlementsPage, + ListEntitlementsFixedSizeCollection> { + + private ListEntitlementsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEntitlementsFixedSizeCollection createEmptyCollection() { + return new ListEntitlementsFixedSizeCollection(null, 0); + } + + @Override + protected ListEntitlementsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEntitlementsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDbServersPagedResponse + extends AbstractPagedListResponse< + ListDbServersRequest, + ListDbServersResponse, + DbServer, + ListDbServersPage, + ListDbServersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDbServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDbServersPagedResponse(ListDbServersPage page) { + super(page, ListDbServersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDbServersPage + extends AbstractPage< + ListDbServersRequest, ListDbServersResponse, DbServer, ListDbServersPage> { + + private ListDbServersPage( + PageContext context, + ListDbServersResponse response) { + super(context, response); + } + + private static ListDbServersPage createEmptyPage() { + return new ListDbServersPage(null, null); + } + + @Override + protected ListDbServersPage createPage( + PageContext context, + ListDbServersResponse response) { + return new ListDbServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDbServersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDbServersRequest, + ListDbServersResponse, + DbServer, + ListDbServersPage, + ListDbServersFixedSizeCollection> { + + private ListDbServersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDbServersFixedSizeCollection createEmptyCollection() { + return new ListDbServersFixedSizeCollection(null, 0); + } + + @Override + protected ListDbServersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbServersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDbNodesPagedResponse + extends AbstractPagedListResponse< + ListDbNodesRequest, + ListDbNodesResponse, + DbNode, + ListDbNodesPage, + ListDbNodesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbNodesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListDbNodesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListDbNodesPagedResponse(ListDbNodesPage page) { + super(page, ListDbNodesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDbNodesPage + extends AbstractPage { + + private ListDbNodesPage( + PageContext context, + ListDbNodesResponse response) { + super(context, response); + } + + private static ListDbNodesPage createEmptyPage() { + return new ListDbNodesPage(null, null); + } + + @Override + protected ListDbNodesPage createPage( + PageContext context, + ListDbNodesResponse response) { + return new ListDbNodesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDbNodesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDbNodesRequest, + ListDbNodesResponse, + DbNode, + ListDbNodesPage, + ListDbNodesFixedSizeCollection> { + + private ListDbNodesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDbNodesFixedSizeCollection createEmptyCollection() { + return new ListDbNodesFixedSizeCollection(null, 0); + } + + @Override + protected ListDbNodesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbNodesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListGiVersionsPagedResponse + extends AbstractPagedListResponse< + ListGiVersionsRequest, + ListGiVersionsResponse, + GiVersion, + ListGiVersionsPage, + ListGiVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGiVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGiVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGiVersionsPagedResponse(ListGiVersionsPage page) { + super(page, ListGiVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGiVersionsPage + extends AbstractPage< + ListGiVersionsRequest, ListGiVersionsResponse, GiVersion, ListGiVersionsPage> { + + private ListGiVersionsPage( + PageContext context, + ListGiVersionsResponse response) { + super(context, response); + } + + private static ListGiVersionsPage createEmptyPage() { + return new ListGiVersionsPage(null, null); + } + + @Override + protected ListGiVersionsPage createPage( + PageContext context, + ListGiVersionsResponse response) { + return new ListGiVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGiVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGiVersionsRequest, + ListGiVersionsResponse, + GiVersion, + ListGiVersionsPage, + ListGiVersionsFixedSizeCollection> { + + private ListGiVersionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGiVersionsFixedSizeCollection createEmptyCollection() { + return new ListGiVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListGiVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGiVersionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDbSystemShapesPagedResponse + extends AbstractPagedListResponse< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + DbSystemShape, + ListDbSystemShapesPage, + ListDbSystemShapesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbSystemShapesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDbSystemShapesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDbSystemShapesPagedResponse(ListDbSystemShapesPage page) { + super(page, ListDbSystemShapesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDbSystemShapesPage + extends AbstractPage< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + DbSystemShape, + ListDbSystemShapesPage> { + + private ListDbSystemShapesPage( + PageContext context, + ListDbSystemShapesResponse response) { + super(context, response); + } + + private static ListDbSystemShapesPage createEmptyPage() { + return new ListDbSystemShapesPage(null, null); + } + + @Override + protected ListDbSystemShapesPage createPage( + PageContext context, + ListDbSystemShapesResponse response) { + return new ListDbSystemShapesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDbSystemShapesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + DbSystemShape, + ListDbSystemShapesPage, + ListDbSystemShapesFixedSizeCollection> { + + private ListDbSystemShapesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDbSystemShapesFixedSizeCollection createEmptyCollection() { + return new ListDbSystemShapesFixedSizeCollection(null, 0); + } + + @Override + protected ListDbSystemShapesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbSystemShapesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAutonomousDatabasesPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase, + ListAutonomousDatabasesPage, + ListAutonomousDatabasesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDatabasesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDatabasesPagedResponse(ListAutonomousDatabasesPage page) { + super(page, ListAutonomousDatabasesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAutonomousDatabasesPage + extends AbstractPage< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase, + ListAutonomousDatabasesPage> { + + private ListAutonomousDatabasesPage( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ListAutonomousDatabasesResponse response) { + super(context, response); + } + + private static ListAutonomousDatabasesPage createEmptyPage() { + return new ListAutonomousDatabasesPage(null, null); + } + + @Override + protected ListAutonomousDatabasesPage createPage( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ListAutonomousDatabasesResponse response) { + return new ListAutonomousDatabasesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAutonomousDatabasesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase, + ListAutonomousDatabasesPage, + ListAutonomousDatabasesFixedSizeCollection> { + + private ListAutonomousDatabasesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutonomousDatabasesFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDatabasesFixedSizeCollection(null, 0); + } + + @Override + protected ListAutonomousDatabasesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDatabasesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAutonomousDbVersionsPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion, + ListAutonomousDbVersionsPage, + ListAutonomousDbVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDbVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDbVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDbVersionsPagedResponse(ListAutonomousDbVersionsPage page) { + super(page, ListAutonomousDbVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAutonomousDbVersionsPage + extends AbstractPage< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion, + ListAutonomousDbVersionsPage> { + + private ListAutonomousDbVersionsPage( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ListAutonomousDbVersionsResponse response) { + super(context, response); + } + + private static ListAutonomousDbVersionsPage createEmptyPage() { + return new ListAutonomousDbVersionsPage(null, null); + } + + @Override + protected ListAutonomousDbVersionsPage createPage( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ListAutonomousDbVersionsResponse response) { + return new ListAutonomousDbVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAutonomousDbVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion, + ListAutonomousDbVersionsPage, + ListAutonomousDbVersionsFixedSizeCollection> { + + private ListAutonomousDbVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutonomousDbVersionsFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDbVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAutonomousDbVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDbVersionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAutonomousDatabaseCharacterSetsPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet, + ListAutonomousDatabaseCharacterSetsPage, + ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDatabaseCharacterSetsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDatabaseCharacterSetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDatabaseCharacterSetsPagedResponse( + ListAutonomousDatabaseCharacterSetsPage page) { + super(page, ListAutonomousDatabaseCharacterSetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAutonomousDatabaseCharacterSetsPage + extends AbstractPage< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet, + ListAutonomousDatabaseCharacterSetsPage> { + + private ListAutonomousDatabaseCharacterSetsPage( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ListAutonomousDatabaseCharacterSetsResponse response) { + super(context, response); + } + + private static ListAutonomousDatabaseCharacterSetsPage createEmptyPage() { + return new ListAutonomousDatabaseCharacterSetsPage(null, null); + } + + @Override + protected ListAutonomousDatabaseCharacterSetsPage createPage( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ListAutonomousDatabaseCharacterSetsResponse response) { + return new ListAutonomousDatabaseCharacterSetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAutonomousDatabaseCharacterSetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet, + ListAutonomousDatabaseCharacterSetsPage, + ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { + + private ListAutonomousDatabaseCharacterSetsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutonomousDatabaseCharacterSetsFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(null, 0); + } + + @Override + protected ListAutonomousDatabaseCharacterSetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAutonomousDatabaseBackupsPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup, + ListAutonomousDatabaseBackupsPage, + ListAutonomousDatabaseBackupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDatabaseBackupsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDatabaseBackupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDatabaseBackupsPagedResponse(ListAutonomousDatabaseBackupsPage page) { + super(page, ListAutonomousDatabaseBackupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAutonomousDatabaseBackupsPage + extends AbstractPage< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup, + ListAutonomousDatabaseBackupsPage> { + + private ListAutonomousDatabaseBackupsPage( + PageContext< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + context, + ListAutonomousDatabaseBackupsResponse response) { + super(context, response); + } + + private static ListAutonomousDatabaseBackupsPage createEmptyPage() { + return new ListAutonomousDatabaseBackupsPage(null, null); + } + + @Override + protected ListAutonomousDatabaseBackupsPage createPage( + PageContext< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + context, + ListAutonomousDatabaseBackupsResponse response) { + return new ListAutonomousDatabaseBackupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAutonomousDatabaseBackupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup, + ListAutonomousDatabaseBackupsPage, + ListAutonomousDatabaseBackupsFixedSizeCollection> { + + private ListAutonomousDatabaseBackupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutonomousDatabaseBackupsFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDatabaseBackupsFixedSizeCollection(null, 0); + } + + @Override + protected ListAutonomousDatabaseBackupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDatabaseBackupsFixedSizeCollection(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-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java new file mode 100644 index 000000000000..24a6972005b2 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -0,0 +1,669 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabasesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +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.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.oracledatabase.v1.stub.OracleDatabaseStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OracleDatabaseClient}. + * + *

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

    + *
  • The default service address (oracledatabase.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 getCloudExadataInfrastructure: + * + *

{@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
+ * OracleDatabaseSettings.Builder oracleDatabaseSettingsBuilder =
+ *     OracleDatabaseSettings.newBuilder();
+ * oracleDatabaseSettingsBuilder
+ *     .getCloudExadataInfrastructureSettings()
+ *     .setRetrySettings(
+ *         oracleDatabaseSettingsBuilder
+ *             .getCloudExadataInfrastructureSettings()
+ *             .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());
+ * OracleDatabaseSettings oracleDatabaseSettings = oracleDatabaseSettingsBuilder.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. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createCloudExadataInfrastructure: + * + *

{@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
+ * OracleDatabaseSettings.Builder oracleDatabaseSettingsBuilder =
+ *     OracleDatabaseSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelay(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * oracleDatabaseSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class OracleDatabaseSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listCloudExadataInfrastructures. */ + public PagedCallSettings< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .listCloudExadataInfrastructuresSettings(); + } + + /** Returns the object with the settings used for calls to getCloudExadataInfrastructure. */ + public UnaryCallSettings + getCloudExadataInfrastructureSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getCloudExadataInfrastructureSettings(); + } + + /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ + public UnaryCallSettings + createCloudExadataInfrastructureSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .createCloudExadataInfrastructureSettings(); + } + + /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ + public OperationCallSettings< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .createCloudExadataInfrastructureOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ + public UnaryCallSettings + deleteCloudExadataInfrastructureSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .deleteCloudExadataInfrastructureSettings(); + } + + /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ + public OperationCallSettings + deleteCloudExadataInfrastructureOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .deleteCloudExadataInfrastructureOperationSettings(); + } + + /** Returns the object with the settings used for calls to listCloudVmClusters. */ + public PagedCallSettings< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listCloudVmClustersSettings(); + } + + /** Returns the object with the settings used for calls to getCloudVmCluster. */ + public UnaryCallSettings getCloudVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getCloudVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to createCloudVmCluster. */ + public UnaryCallSettings createCloudVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createCloudVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to createCloudVmCluster. */ + public OperationCallSettings + createCloudVmClusterOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createCloudVmClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ + public UnaryCallSettings deleteCloudVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteCloudVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ + public OperationCallSettings + deleteCloudVmClusterOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteCloudVmClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to listEntitlements. */ + public PagedCallSettings< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listEntitlementsSettings(); + } + + /** Returns the object with the settings used for calls to listDbServers. */ + public PagedCallSettings + listDbServersSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDbServersSettings(); + } + + /** Returns the object with the settings used for calls to listDbNodes. */ + public PagedCallSettings + listDbNodesSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDbNodesSettings(); + } + + /** Returns the object with the settings used for calls to listGiVersions. */ + public PagedCallSettings< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listGiVersionsSettings(); + } + + /** Returns the object with the settings used for calls to listDbSystemShapes. */ + public PagedCallSettings< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDbSystemShapesSettings(); + } + + /** Returns the object with the settings used for calls to listAutonomousDatabases. */ + public PagedCallSettings< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listAutonomousDatabasesSettings(); + } + + /** Returns the object with the settings used for calls to getAutonomousDatabase. */ + public UnaryCallSettings + getAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to createAutonomousDatabase. */ + public UnaryCallSettings + createAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to createAutonomousDatabase. */ + public OperationCallSettings< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .createAutonomousDatabaseOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ + public UnaryCallSettings + deleteAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ + public OperationCallSettings + deleteAutonomousDatabaseOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .deleteAutonomousDatabaseOperationSettings(); + } + + /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ + public UnaryCallSettings + restoreAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).restoreAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ + public OperationCallSettings< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .restoreAutonomousDatabaseOperationSettings(); + } + + /** Returns the object with the settings used for calls to generateAutonomousDatabaseWallet. */ + public UnaryCallSettings< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .generateAutonomousDatabaseWalletSettings(); + } + + /** Returns the object with the settings used for calls to listAutonomousDbVersions. */ + public PagedCallSettings< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listAutonomousDbVersionsSettings(); + } + + /** Returns the object with the settings used for calls to listAutonomousDatabaseCharacterSets. */ + public PagedCallSettings< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .listAutonomousDatabaseCharacterSetsSettings(); + } + + /** Returns the object with the settings used for calls to listAutonomousDatabaseBackups. */ + public PagedCallSettings< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listAutonomousDatabaseBackupsSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final OracleDatabaseSettings create(OracleDatabaseStubSettings stub) + throws IOException { + return new OracleDatabaseSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OracleDatabaseStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OracleDatabaseStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OracleDatabaseStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OracleDatabaseStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return OracleDatabaseStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OracleDatabaseStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OracleDatabaseStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OracleDatabaseSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OracleDatabaseSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OracleDatabaseStubSettings.newBuilder(clientContext)); + } + + protected Builder(OracleDatabaseSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OracleDatabaseStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OracleDatabaseStubSettings.newBuilder()); + } + + public OracleDatabaseStubSettings.Builder getStubSettingsBuilder() { + return ((OracleDatabaseStubSettings.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 listCloudExadataInfrastructures. */ + public PagedCallSettings.Builder< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings() { + return getStubSettingsBuilder().listCloudExadataInfrastructuresSettings(); + } + + /** Returns the builder for the settings used for calls to getCloudExadataInfrastructure. */ + public UnaryCallSettings.Builder< + GetCloudExadataInfrastructureRequest, CloudExadataInfrastructure> + getCloudExadataInfrastructureSettings() { + return getStubSettingsBuilder().getCloudExadataInfrastructureSettings(); + } + + /** Returns the builder for the settings used for calls to createCloudExadataInfrastructure. */ + public UnaryCallSettings.Builder + createCloudExadataInfrastructureSettings() { + return getStubSettingsBuilder().createCloudExadataInfrastructureSettings(); + } + + /** Returns the builder for the settings used for calls to createCloudExadataInfrastructure. */ + public OperationCallSettings.Builder< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings() { + return getStubSettingsBuilder().createCloudExadataInfrastructureOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCloudExadataInfrastructure. */ + public UnaryCallSettings.Builder + deleteCloudExadataInfrastructureSettings() { + return getStubSettingsBuilder().deleteCloudExadataInfrastructureSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCloudExadataInfrastructure. */ + public OperationCallSettings.Builder< + DeleteCloudExadataInfrastructureRequest, Empty, OperationMetadata> + deleteCloudExadataInfrastructureOperationSettings() { + return getStubSettingsBuilder().deleteCloudExadataInfrastructureOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listCloudVmClusters. */ + public PagedCallSettings.Builder< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings() { + return getStubSettingsBuilder().listCloudVmClustersSettings(); + } + + /** Returns the builder for the settings used for calls to getCloudVmCluster. */ + public UnaryCallSettings.Builder + getCloudVmClusterSettings() { + return getStubSettingsBuilder().getCloudVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createCloudVmCluster. */ + public UnaryCallSettings.Builder + createCloudVmClusterSettings() { + return getStubSettingsBuilder().createCloudVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createCloudVmCluster. */ + public OperationCallSettings.Builder< + CreateCloudVmClusterRequest, CloudVmCluster, OperationMetadata> + createCloudVmClusterOperationSettings() { + return getStubSettingsBuilder().createCloudVmClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCloudVmCluster. */ + public UnaryCallSettings.Builder + deleteCloudVmClusterSettings() { + return getStubSettingsBuilder().deleteCloudVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCloudVmCluster. */ + public OperationCallSettings.Builder + deleteCloudVmClusterOperationSettings() { + return getStubSettingsBuilder().deleteCloudVmClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listEntitlements. */ + public PagedCallSettings.Builder< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings() { + return getStubSettingsBuilder().listEntitlementsSettings(); + } + + /** Returns the builder for the settings used for calls to listDbServers. */ + public PagedCallSettings.Builder< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> + listDbServersSettings() { + return getStubSettingsBuilder().listDbServersSettings(); + } + + /** Returns the builder for the settings used for calls to listDbNodes. */ + public PagedCallSettings.Builder< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse> + listDbNodesSettings() { + return getStubSettingsBuilder().listDbNodesSettings(); + } + + /** Returns the builder for the settings used for calls to listGiVersions. */ + public PagedCallSettings.Builder< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings() { + return getStubSettingsBuilder().listGiVersionsSettings(); + } + + /** Returns the builder for the settings used for calls to listDbSystemShapes. */ + public PagedCallSettings.Builder< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings() { + return getStubSettingsBuilder().listDbSystemShapesSettings(); + } + + /** Returns the builder for the settings used for calls to listAutonomousDatabases. */ + public PagedCallSettings.Builder< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings() { + return getStubSettingsBuilder().listAutonomousDatabasesSettings(); + } + + /** Returns the builder for the settings used for calls to getAutonomousDatabase. */ + public UnaryCallSettings.Builder + getAutonomousDatabaseSettings() { + return getStubSettingsBuilder().getAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to createAutonomousDatabase. */ + public UnaryCallSettings.Builder + createAutonomousDatabaseSettings() { + return getStubSettingsBuilder().createAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to createAutonomousDatabase. */ + public OperationCallSettings.Builder< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings() { + return getStubSettingsBuilder().createAutonomousDatabaseOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAutonomousDatabase. */ + public UnaryCallSettings.Builder + deleteAutonomousDatabaseSettings() { + return getStubSettingsBuilder().deleteAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAutonomousDatabase. */ + public OperationCallSettings.Builder + deleteAutonomousDatabaseOperationSettings() { + return getStubSettingsBuilder().deleteAutonomousDatabaseOperationSettings(); + } + + /** Returns the builder for the settings used for calls to restoreAutonomousDatabase. */ + public UnaryCallSettings.Builder + restoreAutonomousDatabaseSettings() { + return getStubSettingsBuilder().restoreAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to restoreAutonomousDatabase. */ + public OperationCallSettings.Builder< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings() { + return getStubSettingsBuilder().restoreAutonomousDatabaseOperationSettings(); + } + + /** Returns the builder for the settings used for calls to generateAutonomousDatabaseWallet. */ + public UnaryCallSettings.Builder< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings() { + return getStubSettingsBuilder().generateAutonomousDatabaseWalletSettings(); + } + + /** Returns the builder for the settings used for calls to listAutonomousDbVersions. */ + public PagedCallSettings.Builder< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings() { + return getStubSettingsBuilder().listAutonomousDbVersionsSettings(); + } + + /** + * Returns the builder for the settings used for calls to listAutonomousDatabaseCharacterSets. + */ + public PagedCallSettings.Builder< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings() { + return getStubSettingsBuilder().listAutonomousDatabaseCharacterSetsSettings(); + } + + /** Returns the builder for the settings used for calls to listAutonomousDatabaseBackups. */ + public PagedCallSettings.Builder< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings() { + return getStubSettingsBuilder().listAutonomousDatabaseBackupsSettings(); + } + + /** 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 OracleDatabaseSettings build() throws IOException { + return new OracleDatabaseSettings(this); + } + } +} diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json new file mode 100644 index 000000000000..774f480f3730 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json @@ -0,0 +1,90 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.oracledatabase.v1", + "libraryPackage": "com.google.cloud.oracledatabase.v1", + "services": { + "OracleDatabase": { + "clients": { + "grpc": { + "libraryClient": "OracleDatabaseClient", + "rpcs": { + "CreateAutonomousDatabase": { + "methods": ["createAutonomousDatabaseAsync", "createAutonomousDatabaseAsync", "createAutonomousDatabaseAsync", "createAutonomousDatabaseOperationCallable", "createAutonomousDatabaseCallable"] + }, + "CreateCloudExadataInfrastructure": { + "methods": ["createCloudExadataInfrastructureAsync", "createCloudExadataInfrastructureAsync", "createCloudExadataInfrastructureAsync", "createCloudExadataInfrastructureOperationCallable", "createCloudExadataInfrastructureCallable"] + }, + "CreateCloudVmCluster": { + "methods": ["createCloudVmClusterAsync", "createCloudVmClusterAsync", "createCloudVmClusterAsync", "createCloudVmClusterOperationCallable", "createCloudVmClusterCallable"] + }, + "DeleteAutonomousDatabase": { + "methods": ["deleteAutonomousDatabaseAsync", "deleteAutonomousDatabaseAsync", "deleteAutonomousDatabaseAsync", "deleteAutonomousDatabaseOperationCallable", "deleteAutonomousDatabaseCallable"] + }, + "DeleteCloudExadataInfrastructure": { + "methods": ["deleteCloudExadataInfrastructureAsync", "deleteCloudExadataInfrastructureAsync", "deleteCloudExadataInfrastructureAsync", "deleteCloudExadataInfrastructureOperationCallable", "deleteCloudExadataInfrastructureCallable"] + }, + "DeleteCloudVmCluster": { + "methods": ["deleteCloudVmClusterAsync", "deleteCloudVmClusterAsync", "deleteCloudVmClusterAsync", "deleteCloudVmClusterOperationCallable", "deleteCloudVmClusterCallable"] + }, + "GenerateAutonomousDatabaseWallet": { + "methods": ["generateAutonomousDatabaseWallet", "generateAutonomousDatabaseWallet", "generateAutonomousDatabaseWallet", "generateAutonomousDatabaseWalletCallable"] + }, + "GetAutonomousDatabase": { + "methods": ["getAutonomousDatabase", "getAutonomousDatabase", "getAutonomousDatabase", "getAutonomousDatabaseCallable"] + }, + "GetCloudExadataInfrastructure": { + "methods": ["getCloudExadataInfrastructure", "getCloudExadataInfrastructure", "getCloudExadataInfrastructure", "getCloudExadataInfrastructureCallable"] + }, + "GetCloudVmCluster": { + "methods": ["getCloudVmCluster", "getCloudVmCluster", "getCloudVmCluster", "getCloudVmClusterCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAutonomousDatabaseBackups": { + "methods": ["listAutonomousDatabaseBackups", "listAutonomousDatabaseBackups", "listAutonomousDatabaseBackups", "listAutonomousDatabaseBackupsPagedCallable", "listAutonomousDatabaseBackupsCallable"] + }, + "ListAutonomousDatabaseCharacterSets": { + "methods": ["listAutonomousDatabaseCharacterSets", "listAutonomousDatabaseCharacterSets", "listAutonomousDatabaseCharacterSets", "listAutonomousDatabaseCharacterSetsPagedCallable", "listAutonomousDatabaseCharacterSetsCallable"] + }, + "ListAutonomousDatabases": { + "methods": ["listAutonomousDatabases", "listAutonomousDatabases", "listAutonomousDatabases", "listAutonomousDatabasesPagedCallable", "listAutonomousDatabasesCallable"] + }, + "ListAutonomousDbVersions": { + "methods": ["listAutonomousDbVersions", "listAutonomousDbVersions", "listAutonomousDbVersions", "listAutonomousDbVersionsPagedCallable", "listAutonomousDbVersionsCallable"] + }, + "ListCloudExadataInfrastructures": { + "methods": ["listCloudExadataInfrastructures", "listCloudExadataInfrastructures", "listCloudExadataInfrastructures", "listCloudExadataInfrastructuresPagedCallable", "listCloudExadataInfrastructuresCallable"] + }, + "ListCloudVmClusters": { + "methods": ["listCloudVmClusters", "listCloudVmClusters", "listCloudVmClusters", "listCloudVmClustersPagedCallable", "listCloudVmClustersCallable"] + }, + "ListDbNodes": { + "methods": ["listDbNodes", "listDbNodes", "listDbNodes", "listDbNodesPagedCallable", "listDbNodesCallable"] + }, + "ListDbServers": { + "methods": ["listDbServers", "listDbServers", "listDbServers", "listDbServersPagedCallable", "listDbServersCallable"] + }, + "ListDbSystemShapes": { + "methods": ["listDbSystemShapes", "listDbSystemShapes", "listDbSystemShapes", "listDbSystemShapesPagedCallable", "listDbSystemShapesCallable"] + }, + "ListEntitlements": { + "methods": ["listEntitlements", "listEntitlements", "listEntitlements", "listEntitlementsPagedCallable", "listEntitlementsCallable"] + }, + "ListGiVersions": { + "methods": ["listGiVersions", "listGiVersions", "listGiVersions", "listGiVersionsPagedCallable", "listGiVersionsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RestoreAutonomousDatabase": { + "methods": ["restoreAutonomousDatabaseAsync", "restoreAutonomousDatabaseAsync", "restoreAutonomousDatabaseAsync", "restoreAutonomousDatabaseOperationCallable", "restoreAutonomousDatabaseCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/package-info.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/package-info.java new file mode 100644 index 000000000000..d15dde872e69 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/package-info.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +/** + * A client to Oracle Database{@literal @}Google Cloud API + * + *

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

======================= OracleDatabaseClient ======================= + * + *

Service Description: Service describing handlers for resources + * + *

Sample for OracleDatabaseClient: + * + *

{@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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ *   CloudExadataInfrastructureName name =
+ *       CloudExadataInfrastructureName.of(
+ *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ *   CloudExadataInfrastructure response =
+ *       oracleDatabaseClient.getCloudExadataInfrastructure(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.oracledatabase.v1; + +import javax.annotation.Generated; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseCallableFactory.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseCallableFactory.java new file mode 100644 index 000000000000..e4293d62ae20 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseCallableFactory.java @@ -0,0 +1,101 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.stub; + +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 OracleDatabase service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOracleDatabaseCallableFactory + 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-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java new file mode 100644 index 000000000000..1ad16f52345f --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java @@ -0,0 +1,2055 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.stub; + +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabasesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +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.HttpJsonOperationSnapshot; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +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.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; +import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; +import com.google.cloud.oracledatabase.v1.ListDbServersRequest; +import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; +import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +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 OracleDatabase service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(CloudVmCluster.getDescriptor()) + .add(Empty.getDescriptor()) + .add(AutonomousDatabase.getDescriptor()) + .add(CloudExadataInfrastructure.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListCloudExadataInfrastructures") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures", + 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, "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( + ListCloudExadataInfrastructuresResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetCloudExadataInfrastructureRequest, CloudExadataInfrastructure> + getCloudExadataInfrastructureMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GetCloudExadataInfrastructure") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}", + 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(CloudExadataInfrastructure.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCloudExadataInfrastructureMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateCloudExadataInfrastructure") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures", + 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, + "cloudExadataInfrastructureId", + request.getCloudExadataInfrastructureId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "cloudExadataInfrastructure", + request.getCloudExadataInfrastructure(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCloudExadataInfrastructureRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCloudExadataInfrastructureMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteCloudExadataInfrastructure") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCloudExadataInfrastructureRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listCloudVmClustersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListCloudVmClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/cloudVmClusters", + 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, "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(ListCloudVmClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCloudVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetCloudVmCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/cloudVmClusters/*}", + 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(CloudVmCluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCloudVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateCloudVmCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/cloudVmClusters", + 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, "cloudVmClusterId", request.getCloudVmClusterId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("cloudVmCluster", request.getCloudVmCluster(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCloudVmClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCloudVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteCloudVmCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/cloudVmClusters/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCloudVmClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listEntitlementsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListEntitlements") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/entitlements", + 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, "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(ListEntitlementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDbServersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbServers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers", + 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, "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(ListDbServersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDbNodesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbNodes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodes", + 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, "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(ListDbNodesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listGiVersionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListGiVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/giVersions", + 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, "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(ListGiVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDbSystemShapesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbSystemShapes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dbSystemShapes", + 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, "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(ListDbSystemShapesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse> + listAutonomousDatabasesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDatabases") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autonomousDatabases", + 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(ListAutonomousDatabasesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GetAutonomousDatabase") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autonomousDatabases/*}", + 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(AutonomousDatabase.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateAutonomousDatabase") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autonomousDatabases", + 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, "autonomousDatabaseId", request.getAutonomousDatabaseId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "autonomousDatabase", request.getAutonomousDatabase(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAutonomousDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteAutonomousDatabase") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autonomousDatabases/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAutonomousDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + restoreAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/RestoreAutonomousDatabase") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreAutonomousDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GenerateAutonomousDatabaseWallet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + GenerateAutonomousDatabaseWalletResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse> + listAutonomousDbVersionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDbVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autonomousDbVersions", + 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, "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(ListAutonomousDbVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDatabaseCharacterSets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets", + 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, "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( + ListAutonomousDatabaseCharacterSetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDatabaseBackups") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups", + 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, "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( + ListAutonomousDatabaseBackupsResponse.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( + "/v1/{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( + "/v1/{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< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresCallable; + private final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresPagedCallable; + private final UnaryCallable + getCloudExadataInfrastructureCallable; + private final UnaryCallable + createCloudExadataInfrastructureCallable; + private final OperationCallable< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationCallable; + private final UnaryCallable + deleteCloudExadataInfrastructureCallable; + private final OperationCallable + deleteCloudExadataInfrastructureOperationCallable; + private final UnaryCallable + listCloudVmClustersCallable; + private final UnaryCallable + listCloudVmClustersPagedCallable; + private final UnaryCallable getCloudVmClusterCallable; + private final UnaryCallable createCloudVmClusterCallable; + private final OperationCallable + createCloudVmClusterOperationCallable; + private final UnaryCallable deleteCloudVmClusterCallable; + private final OperationCallable + deleteCloudVmClusterOperationCallable; + private final UnaryCallable + listEntitlementsCallable; + private final UnaryCallable + listEntitlementsPagedCallable; + private final UnaryCallable listDbServersCallable; + private final UnaryCallable + listDbServersPagedCallable; + private final UnaryCallable listDbNodesCallable; + private final UnaryCallable + listDbNodesPagedCallable; + private final UnaryCallable listGiVersionsCallable; + private final UnaryCallable + listGiVersionsPagedCallable; + private final UnaryCallable + listDbSystemShapesCallable; + private final UnaryCallable + listDbSystemShapesPagedCallable; + private final UnaryCallable + listAutonomousDatabasesCallable; + private final UnaryCallable + listAutonomousDatabasesPagedCallable; + private final UnaryCallable + getAutonomousDatabaseCallable; + private final UnaryCallable + createAutonomousDatabaseCallable; + private final OperationCallable< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationCallable; + private final UnaryCallable + deleteAutonomousDatabaseCallable; + private final OperationCallable + deleteAutonomousDatabaseOperationCallable; + private final UnaryCallable + restoreAutonomousDatabaseCallable; + private final OperationCallable< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationCallable; + private final UnaryCallable< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletCallable; + private final UnaryCallable + listAutonomousDbVersionsCallable; + private final UnaryCallable< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsPagedCallable; + private final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsCallable; + private final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsPagedCallable; + private final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsCallable; + private final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonOracleDatabaseStub create(OracleDatabaseStubSettings settings) + throws IOException { + return new HttpJsonOracleDatabaseStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonOracleDatabaseStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonOracleDatabaseStub( + OracleDatabaseStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonOracleDatabaseStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonOracleDatabaseStub( + OracleDatabaseStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonOracleDatabaseStub, 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 HttpJsonOracleDatabaseStub( + OracleDatabaseStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonOracleDatabaseCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonOracleDatabaseStub, 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 HttpJsonOracleDatabaseStub( + OracleDatabaseStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listCloudExadataInfrastructuresMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listCloudVmClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCloudVmClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getCloudVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCloudVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createCloudVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCloudVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCloudVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCloudVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEntitlementsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEntitlementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDbServersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbServersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listDbNodesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbNodesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGiVersionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGiVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDbSystemShapesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbSystemShapesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAutonomousDatabasesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAutonomousDatabasesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + restoreAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateAutonomousDatabaseWalletMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAutonomousDbVersionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAutonomousDbVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAutonomousDatabaseCharacterSetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAutonomousDatabaseBackupsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + 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.listCloudExadataInfrastructuresCallable = + callableFactory.createUnaryCallable( + listCloudExadataInfrastructuresTransportSettings, + settings.listCloudExadataInfrastructuresSettings(), + clientContext); + this.listCloudExadataInfrastructuresPagedCallable = + callableFactory.createPagedCallable( + listCloudExadataInfrastructuresTransportSettings, + settings.listCloudExadataInfrastructuresSettings(), + clientContext); + this.getCloudExadataInfrastructureCallable = + callableFactory.createUnaryCallable( + getCloudExadataInfrastructureTransportSettings, + settings.getCloudExadataInfrastructureSettings(), + clientContext); + this.createCloudExadataInfrastructureCallable = + callableFactory.createUnaryCallable( + createCloudExadataInfrastructureTransportSettings, + settings.createCloudExadataInfrastructureSettings(), + clientContext); + this.createCloudExadataInfrastructureOperationCallable = + callableFactory.createOperationCallable( + createCloudExadataInfrastructureTransportSettings, + settings.createCloudExadataInfrastructureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCloudExadataInfrastructureCallable = + callableFactory.createUnaryCallable( + deleteCloudExadataInfrastructureTransportSettings, + settings.deleteCloudExadataInfrastructureSettings(), + clientContext); + this.deleteCloudExadataInfrastructureOperationCallable = + callableFactory.createOperationCallable( + deleteCloudExadataInfrastructureTransportSettings, + settings.deleteCloudExadataInfrastructureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCloudVmClustersCallable = + callableFactory.createUnaryCallable( + listCloudVmClustersTransportSettings, + settings.listCloudVmClustersSettings(), + clientContext); + this.listCloudVmClustersPagedCallable = + callableFactory.createPagedCallable( + listCloudVmClustersTransportSettings, + settings.listCloudVmClustersSettings(), + clientContext); + this.getCloudVmClusterCallable = + callableFactory.createUnaryCallable( + getCloudVmClusterTransportSettings, + settings.getCloudVmClusterSettings(), + clientContext); + this.createCloudVmClusterCallable = + callableFactory.createUnaryCallable( + createCloudVmClusterTransportSettings, + settings.createCloudVmClusterSettings(), + clientContext); + this.createCloudVmClusterOperationCallable = + callableFactory.createOperationCallable( + createCloudVmClusterTransportSettings, + settings.createCloudVmClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCloudVmClusterCallable = + callableFactory.createUnaryCallable( + deleteCloudVmClusterTransportSettings, + settings.deleteCloudVmClusterSettings(), + clientContext); + this.deleteCloudVmClusterOperationCallable = + callableFactory.createOperationCallable( + deleteCloudVmClusterTransportSettings, + settings.deleteCloudVmClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listEntitlementsCallable = + callableFactory.createUnaryCallable( + listEntitlementsTransportSettings, settings.listEntitlementsSettings(), clientContext); + this.listEntitlementsPagedCallable = + callableFactory.createPagedCallable( + listEntitlementsTransportSettings, settings.listEntitlementsSettings(), clientContext); + this.listDbServersCallable = + callableFactory.createUnaryCallable( + listDbServersTransportSettings, settings.listDbServersSettings(), clientContext); + this.listDbServersPagedCallable = + callableFactory.createPagedCallable( + listDbServersTransportSettings, settings.listDbServersSettings(), clientContext); + this.listDbNodesCallable = + callableFactory.createUnaryCallable( + listDbNodesTransportSettings, settings.listDbNodesSettings(), clientContext); + this.listDbNodesPagedCallable = + callableFactory.createPagedCallable( + listDbNodesTransportSettings, settings.listDbNodesSettings(), clientContext); + this.listGiVersionsCallable = + callableFactory.createUnaryCallable( + listGiVersionsTransportSettings, settings.listGiVersionsSettings(), clientContext); + this.listGiVersionsPagedCallable = + callableFactory.createPagedCallable( + listGiVersionsTransportSettings, settings.listGiVersionsSettings(), clientContext); + this.listDbSystemShapesCallable = + callableFactory.createUnaryCallable( + listDbSystemShapesTransportSettings, + settings.listDbSystemShapesSettings(), + clientContext); + this.listDbSystemShapesPagedCallable = + callableFactory.createPagedCallable( + listDbSystemShapesTransportSettings, + settings.listDbSystemShapesSettings(), + clientContext); + this.listAutonomousDatabasesCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabasesTransportSettings, + settings.listAutonomousDatabasesSettings(), + clientContext); + this.listAutonomousDatabasesPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabasesTransportSettings, + settings.listAutonomousDatabasesSettings(), + clientContext); + this.getAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + getAutonomousDatabaseTransportSettings, + settings.getAutonomousDatabaseSettings(), + clientContext); + this.createAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + createAutonomousDatabaseTransportSettings, + settings.createAutonomousDatabaseSettings(), + clientContext); + this.createAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + createAutonomousDatabaseTransportSettings, + settings.createAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + deleteAutonomousDatabaseTransportSettings, + settings.deleteAutonomousDatabaseSettings(), + clientContext); + this.deleteAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + deleteAutonomousDatabaseTransportSettings, + settings.deleteAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.restoreAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + restoreAutonomousDatabaseTransportSettings, + settings.restoreAutonomousDatabaseSettings(), + clientContext); + this.restoreAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + restoreAutonomousDatabaseTransportSettings, + settings.restoreAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateAutonomousDatabaseWalletCallable = + callableFactory.createUnaryCallable( + generateAutonomousDatabaseWalletTransportSettings, + settings.generateAutonomousDatabaseWalletSettings(), + clientContext); + this.listAutonomousDbVersionsCallable = + callableFactory.createUnaryCallable( + listAutonomousDbVersionsTransportSettings, + settings.listAutonomousDbVersionsSettings(), + clientContext); + this.listAutonomousDbVersionsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDbVersionsTransportSettings, + settings.listAutonomousDbVersionsSettings(), + clientContext); + this.listAutonomousDatabaseCharacterSetsCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabaseCharacterSetsTransportSettings, + settings.listAutonomousDatabaseCharacterSetsSettings(), + clientContext); + this.listAutonomousDatabaseCharacterSetsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabaseCharacterSetsTransportSettings, + settings.listAutonomousDatabaseCharacterSetsSettings(), + clientContext); + this.listAutonomousDatabaseBackupsCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabaseBackupsTransportSettings, + settings.listAutonomousDatabaseBackupsSettings(), + clientContext); + this.listAutonomousDatabaseBackupsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabaseBackupsTransportSettings, + settings.listAutonomousDatabaseBackupsSettings(), + 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(listCloudExadataInfrastructuresMethodDescriptor); + methodDescriptors.add(getCloudExadataInfrastructureMethodDescriptor); + methodDescriptors.add(createCloudExadataInfrastructureMethodDescriptor); + methodDescriptors.add(deleteCloudExadataInfrastructureMethodDescriptor); + methodDescriptors.add(listCloudVmClustersMethodDescriptor); + methodDescriptors.add(getCloudVmClusterMethodDescriptor); + methodDescriptors.add(createCloudVmClusterMethodDescriptor); + methodDescriptors.add(deleteCloudVmClusterMethodDescriptor); + methodDescriptors.add(listEntitlementsMethodDescriptor); + methodDescriptors.add(listDbServersMethodDescriptor); + methodDescriptors.add(listDbNodesMethodDescriptor); + methodDescriptors.add(listGiVersionsMethodDescriptor); + methodDescriptors.add(listDbSystemShapesMethodDescriptor); + methodDescriptors.add(listAutonomousDatabasesMethodDescriptor); + methodDescriptors.add(getAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(createAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(deleteAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(restoreAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(generateAutonomousDatabaseWalletMethodDescriptor); + methodDescriptors.add(listAutonomousDbVersionsMethodDescriptor); + methodDescriptors.add(listAutonomousDatabaseCharacterSetsMethodDescriptor); + methodDescriptors.add(listAutonomousDatabaseBackupsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresCallable() { + return listCloudExadataInfrastructuresCallable; + } + + @Override + public UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresPagedCallable() { + return listCloudExadataInfrastructuresPagedCallable; + } + + @Override + public UnaryCallable + getCloudExadataInfrastructureCallable() { + return getCloudExadataInfrastructureCallable; + } + + @Override + public UnaryCallable + createCloudExadataInfrastructureCallable() { + return createCloudExadataInfrastructureCallable; + } + + @Override + public OperationCallable< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationCallable() { + return createCloudExadataInfrastructureOperationCallable; + } + + @Override + public UnaryCallable + deleteCloudExadataInfrastructureCallable() { + return deleteCloudExadataInfrastructureCallable; + } + + @Override + public OperationCallable + deleteCloudExadataInfrastructureOperationCallable() { + return deleteCloudExadataInfrastructureOperationCallable; + } + + @Override + public UnaryCallable + listCloudVmClustersCallable() { + return listCloudVmClustersCallable; + } + + @Override + public UnaryCallable + listCloudVmClustersPagedCallable() { + return listCloudVmClustersPagedCallable; + } + + @Override + public UnaryCallable getCloudVmClusterCallable() { + return getCloudVmClusterCallable; + } + + @Override + public UnaryCallable createCloudVmClusterCallable() { + return createCloudVmClusterCallable; + } + + @Override + public OperationCallable + createCloudVmClusterOperationCallable() { + return createCloudVmClusterOperationCallable; + } + + @Override + public UnaryCallable deleteCloudVmClusterCallable() { + return deleteCloudVmClusterCallable; + } + + @Override + public OperationCallable + deleteCloudVmClusterOperationCallable() { + return deleteCloudVmClusterOperationCallable; + } + + @Override + public UnaryCallable + listEntitlementsCallable() { + return listEntitlementsCallable; + } + + @Override + public UnaryCallable + listEntitlementsPagedCallable() { + return listEntitlementsPagedCallable; + } + + @Override + public UnaryCallable listDbServersCallable() { + return listDbServersCallable; + } + + @Override + public UnaryCallable + listDbServersPagedCallable() { + return listDbServersPagedCallable; + } + + @Override + public UnaryCallable listDbNodesCallable() { + return listDbNodesCallable; + } + + @Override + public UnaryCallable listDbNodesPagedCallable() { + return listDbNodesPagedCallable; + } + + @Override + public UnaryCallable listGiVersionsCallable() { + return listGiVersionsCallable; + } + + @Override + public UnaryCallable + listGiVersionsPagedCallable() { + return listGiVersionsPagedCallable; + } + + @Override + public UnaryCallable + listDbSystemShapesCallable() { + return listDbSystemShapesCallable; + } + + @Override + public UnaryCallable + listDbSystemShapesPagedCallable() { + return listDbSystemShapesPagedCallable; + } + + @Override + public UnaryCallable + listAutonomousDatabasesCallable() { + return listAutonomousDatabasesCallable; + } + + @Override + public UnaryCallable + listAutonomousDatabasesPagedCallable() { + return listAutonomousDatabasesPagedCallable; + } + + @Override + public UnaryCallable + getAutonomousDatabaseCallable() { + return getAutonomousDatabaseCallable; + } + + @Override + public UnaryCallable + createAutonomousDatabaseCallable() { + return createAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + createAutonomousDatabaseOperationCallable() { + return createAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable + deleteAutonomousDatabaseCallable() { + return deleteAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + deleteAutonomousDatabaseOperationCallable() { + return deleteAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable + restoreAutonomousDatabaseCallable() { + return restoreAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + restoreAutonomousDatabaseOperationCallable() { + return restoreAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletCallable() { + return generateAutonomousDatabaseWalletCallable; + } + + @Override + public UnaryCallable + listAutonomousDbVersionsCallable() { + return listAutonomousDbVersionsCallable; + } + + @Override + public UnaryCallable + listAutonomousDbVersionsPagedCallable() { + return listAutonomousDbVersionsPagedCallable; + } + + @Override + public UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsCallable() { + return listAutonomousDatabaseCharacterSetsCallable; + } + + @Override + public UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsPagedCallable() { + return listAutonomousDatabaseCharacterSetsPagedCallable; + } + + @Override + public UnaryCallable + listAutonomousDatabaseBackupsCallable() { + return listAutonomousDatabaseBackupsCallable; + } + + @Override + public UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsPagedCallable() { + return listAutonomousDatabaseBackupsPagedCallable; + } + + @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-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java new file mode 100644 index 000000000000..b8fe25af9028 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -0,0 +1,330 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.stub; + +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabasesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.OperationCallable; +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.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; +import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; +import com.google.cloud.oracledatabase.v1.ListDbServersRequest; +import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; +import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OracleDatabase service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class OracleDatabaseStub implements BackgroundResource { + + public OperationsStub getHttpJsonOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); + } + + public UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCloudExadataInfrastructuresPagedCallable()"); + } + + public UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCloudExadataInfrastructuresCallable()"); + } + + public UnaryCallable + getCloudExadataInfrastructureCallable() { + throw new UnsupportedOperationException( + "Not implemented: getCloudExadataInfrastructureCallable()"); + } + + public OperationCallable< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCloudExadataInfrastructureOperationCallable()"); + } + + public UnaryCallable + createCloudExadataInfrastructureCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCloudExadataInfrastructureCallable()"); + } + + public OperationCallable + deleteCloudExadataInfrastructureOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCloudExadataInfrastructureOperationCallable()"); + } + + public UnaryCallable + deleteCloudExadataInfrastructureCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCloudExadataInfrastructureCallable()"); + } + + public UnaryCallable + listCloudVmClustersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCloudVmClustersPagedCallable()"); + } + + public UnaryCallable + listCloudVmClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listCloudVmClustersCallable()"); + } + + public UnaryCallable getCloudVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getCloudVmClusterCallable()"); + } + + public OperationCallable + createCloudVmClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCloudVmClusterOperationCallable()"); + } + + public UnaryCallable createCloudVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: createCloudVmClusterCallable()"); + } + + public OperationCallable + deleteCloudVmClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCloudVmClusterOperationCallable()"); + } + + public UnaryCallable deleteCloudVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCloudVmClusterCallable()"); + } + + public UnaryCallable + listEntitlementsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEntitlementsPagedCallable()"); + } + + public UnaryCallable + listEntitlementsCallable() { + throw new UnsupportedOperationException("Not implemented: listEntitlementsCallable()"); + } + + public UnaryCallable + listDbServersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDbServersPagedCallable()"); + } + + public UnaryCallable listDbServersCallable() { + throw new UnsupportedOperationException("Not implemented: listDbServersCallable()"); + } + + public UnaryCallable listDbNodesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDbNodesPagedCallable()"); + } + + public UnaryCallable listDbNodesCallable() { + throw new UnsupportedOperationException("Not implemented: listDbNodesCallable()"); + } + + public UnaryCallable + listGiVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGiVersionsPagedCallable()"); + } + + public UnaryCallable listGiVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listGiVersionsCallable()"); + } + + public UnaryCallable + listDbSystemShapesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDbSystemShapesPagedCallable()"); + } + + public UnaryCallable + listDbSystemShapesCallable() { + throw new UnsupportedOperationException("Not implemented: listDbSystemShapesCallable()"); + } + + public UnaryCallable + listAutonomousDatabasesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutonomousDatabasesPagedCallable()"); + } + + public UnaryCallable + listAutonomousDatabasesCallable() { + throw new UnsupportedOperationException("Not implemented: listAutonomousDatabasesCallable()"); + } + + public UnaryCallable + getAutonomousDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: getAutonomousDatabaseCallable()"); + } + + public OperationCallable + createAutonomousDatabaseOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAutonomousDatabaseOperationCallable()"); + } + + public UnaryCallable + createAutonomousDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: createAutonomousDatabaseCallable()"); + } + + public OperationCallable + deleteAutonomousDatabaseOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAutonomousDatabaseOperationCallable()"); + } + + public UnaryCallable + deleteAutonomousDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAutonomousDatabaseCallable()"); + } + + public OperationCallable + restoreAutonomousDatabaseOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreAutonomousDatabaseOperationCallable()"); + } + + public UnaryCallable + restoreAutonomousDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: restoreAutonomousDatabaseCallable()"); + } + + public UnaryCallable< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateAutonomousDatabaseWalletCallable()"); + } + + public UnaryCallable + listAutonomousDbVersionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutonomousDbVersionsPagedCallable()"); + } + + public UnaryCallable + listAutonomousDbVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAutonomousDbVersionsCallable()"); + } + + public UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutonomousDatabaseCharacterSetsPagedCallable()"); + } + + public UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutonomousDatabaseCharacterSetsCallable()"); + } + + public UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutonomousDatabaseBackupsPagedCallable()"); + } + + public UnaryCallable + listAutonomousDatabaseBackupsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutonomousDatabaseBackupsCallable()"); + } + + 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-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java new file mode 100644 index 000000000000..d6a5ff63248f --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -0,0 +1,2228 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.stub; + +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabasesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GiVersion; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; +import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; +import com.google.cloud.oracledatabase.v1.ListDbServersRequest; +import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; +import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OracleDatabaseStub}. + * + *

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

    + *
  • The default service address (oracledatabase.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 getCloudExadataInfrastructure: + * + *

{@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
+ * OracleDatabaseStubSettings.Builder oracleDatabaseSettingsBuilder =
+ *     OracleDatabaseStubSettings.newBuilder();
+ * oracleDatabaseSettingsBuilder
+ *     .getCloudExadataInfrastructureSettings()
+ *     .setRetrySettings(
+ *         oracleDatabaseSettingsBuilder
+ *             .getCloudExadataInfrastructureSettings()
+ *             .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());
+ * OracleDatabaseStubSettings oracleDatabaseSettings = oracleDatabaseSettingsBuilder.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. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createCloudExadataInfrastructure: + * + *

{@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
+ * OracleDatabaseStubSettings.Builder oracleDatabaseSettingsBuilder =
+ *     OracleDatabaseStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelay(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * oracleDatabaseSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class OracleDatabaseStubSettings 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< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings; + private final UnaryCallSettings + getCloudExadataInfrastructureSettings; + private final UnaryCallSettings + createCloudExadataInfrastructureSettings; + private final OperationCallSettings< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings; + private final UnaryCallSettings + deleteCloudExadataInfrastructureSettings; + private final OperationCallSettings< + DeleteCloudExadataInfrastructureRequest, Empty, OperationMetadata> + deleteCloudExadataInfrastructureOperationSettings; + private final PagedCallSettings< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings; + private final UnaryCallSettings + getCloudVmClusterSettings; + private final UnaryCallSettings + createCloudVmClusterSettings; + private final OperationCallSettings< + CreateCloudVmClusterRequest, CloudVmCluster, OperationMetadata> + createCloudVmClusterOperationSettings; + private final UnaryCallSettings + deleteCloudVmClusterSettings; + private final OperationCallSettings + deleteCloudVmClusterOperationSettings; + private final PagedCallSettings< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings; + private final PagedCallSettings< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> + listDbServersSettings; + private final PagedCallSettings + listDbNodesSettings; + private final PagedCallSettings< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings; + private final PagedCallSettings< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings; + private final PagedCallSettings< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings; + private final UnaryCallSettings + getAutonomousDatabaseSettings; + private final UnaryCallSettings + createAutonomousDatabaseSettings; + private final OperationCallSettings< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings; + private final UnaryCallSettings + deleteAutonomousDatabaseSettings; + private final OperationCallSettings + deleteAutonomousDatabaseOperationSettings; + private final UnaryCallSettings + restoreAutonomousDatabaseSettings; + private final OperationCallSettings< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings; + private final UnaryCallSettings< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings; + private final PagedCallSettings< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings; + private final PagedCallSettings< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings; + private final PagedCallSettings< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_DESC = + new PagedListDescriptor< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCloudExadataInfrastructuresRequest injectToken( + ListCloudExadataInfrastructuresRequest payload, String token) { + return ListCloudExadataInfrastructuresRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListCloudExadataInfrastructuresRequest injectPageSize( + ListCloudExadataInfrastructuresRequest payload, int pageSize) { + return ListCloudExadataInfrastructuresRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListCloudExadataInfrastructuresRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCloudExadataInfrastructuresResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCloudExadataInfrastructuresResponse payload) { + return payload.getCloudExadataInfrastructuresList(); + } + }; + + private static final PagedListDescriptor< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, CloudVmCluster> + LIST_CLOUD_VM_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, CloudVmCluster>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCloudVmClustersRequest injectToken( + ListCloudVmClustersRequest payload, String token) { + return ListCloudVmClustersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCloudVmClustersRequest injectPageSize( + ListCloudVmClustersRequest payload, int pageSize) { + return ListCloudVmClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCloudVmClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCloudVmClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCloudVmClustersResponse payload) { + return payload.getCloudVmClustersList(); + } + }; + + private static final PagedListDescriptor< + ListEntitlementsRequest, ListEntitlementsResponse, Entitlement> + LIST_ENTITLEMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListEntitlementsRequest, ListEntitlementsResponse, Entitlement>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEntitlementsRequest injectToken( + ListEntitlementsRequest payload, String token) { + return ListEntitlementsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEntitlementsRequest injectPageSize( + ListEntitlementsRequest payload, int pageSize) { + return ListEntitlementsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEntitlementsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEntitlementsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEntitlementsResponse payload) { + return payload.getEntitlementsList(); + } + }; + + private static final PagedListDescriptor + LIST_DB_SERVERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDbServersRequest injectToken(ListDbServersRequest payload, String token) { + return ListDbServersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDbServersRequest injectPageSize(ListDbServersRequest payload, int pageSize) { + return ListDbServersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDbServersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDbServersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDbServersResponse payload) { + return payload.getDbServersList(); + } + }; + + private static final PagedListDescriptor + LIST_DB_NODES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDbNodesRequest injectToken(ListDbNodesRequest payload, String token) { + return ListDbNodesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDbNodesRequest injectPageSize(ListDbNodesRequest payload, int pageSize) { + return ListDbNodesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDbNodesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDbNodesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDbNodesResponse payload) { + return payload.getDbNodesList(); + } + }; + + private static final PagedListDescriptor + LIST_GI_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGiVersionsRequest injectToken(ListGiVersionsRequest payload, String token) { + return ListGiVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGiVersionsRequest injectPageSize( + ListGiVersionsRequest payload, int pageSize) { + return ListGiVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGiVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGiVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGiVersionsResponse payload) { + return payload.getGiVersionsList(); + } + }; + + private static final PagedListDescriptor< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, DbSystemShape> + LIST_DB_SYSTEM_SHAPES_PAGE_STR_DESC = + new PagedListDescriptor< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, DbSystemShape>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDbSystemShapesRequest injectToken( + ListDbSystemShapesRequest payload, String token) { + return ListDbSystemShapesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDbSystemShapesRequest injectPageSize( + ListDbSystemShapesRequest payload, int pageSize) { + return ListDbSystemShapesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDbSystemShapesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDbSystemShapesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDbSystemShapesResponse payload) { + return payload.getDbSystemShapesList(); + } + }; + + private static final PagedListDescriptor< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + LIST_AUTONOMOUS_DATABASES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutonomousDatabasesRequest injectToken( + ListAutonomousDatabasesRequest payload, String token) { + return ListAutonomousDatabasesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAutonomousDatabasesRequest injectPageSize( + ListAutonomousDatabasesRequest payload, int pageSize) { + return ListAutonomousDatabasesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutonomousDatabasesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutonomousDatabasesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutonomousDatabasesResponse payload) { + return payload.getAutonomousDatabasesList(); + } + }; + + private static final PagedListDescriptor< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse, AutonomousDbVersion> + LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutonomousDbVersionsRequest injectToken( + ListAutonomousDbVersionsRequest payload, String token) { + return ListAutonomousDbVersionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAutonomousDbVersionsRequest injectPageSize( + ListAutonomousDbVersionsRequest payload, int pageSize) { + return ListAutonomousDbVersionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutonomousDbVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutonomousDbVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutonomousDbVersionsResponse payload) { + return payload.getAutonomousDbVersionsList(); + } + }; + + private static final PagedListDescriptor< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutonomousDatabaseCharacterSetsRequest injectToken( + ListAutonomousDatabaseCharacterSetsRequest payload, String token) { + return ListAutonomousDatabaseCharacterSetsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAutonomousDatabaseCharacterSetsRequest injectPageSize( + ListAutonomousDatabaseCharacterSetsRequest payload, int pageSize) { + return ListAutonomousDatabaseCharacterSetsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutonomousDatabaseCharacterSetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutonomousDatabaseCharacterSetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutonomousDatabaseCharacterSetsResponse payload) { + return payload.getAutonomousDatabaseCharacterSetsList(); + } + }; + + private static final PagedListDescriptor< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutonomousDatabaseBackupsRequest injectToken( + ListAutonomousDatabaseBackupsRequest payload, String token) { + return ListAutonomousDatabaseBackupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAutonomousDatabaseBackupsRequest injectPageSize( + ListAutonomousDatabaseBackupsRequest payload, int pageSize) { + return ListAutonomousDatabaseBackupsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutonomousDatabaseBackupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutonomousDatabaseBackupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutonomousDatabaseBackupsResponse payload) { + return payload.getAutonomousDatabaseBackupsList(); + } + }; + + 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< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse> + callable, + ListCloudExadataInfrastructuresRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + pageContext = + PageContext.create( + callable, + LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_DESC, + request, + context); + return ListCloudExadataInfrastructuresPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> + LIST_CLOUD_VM_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + ListCloudVmClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCloudVmClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CLOUD_VM_CLUSTERS_PAGE_STR_DESC, request, context); + return ListCloudVmClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + LIST_ENTITLEMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEntitlementsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ENTITLEMENTS_PAGE_STR_DESC, request, context); + return ListEntitlementsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> + LIST_DB_SERVERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbServersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DB_SERVERS_PAGE_STR_DESC, request, context); + return ListDbServersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse> + LIST_DB_NODES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbNodesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DB_NODES_PAGE_STR_DESC, request, context); + return ListDbNodesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + LIST_GI_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGiVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GI_VERSIONS_PAGE_STR_DESC, request, context); + return ListGiVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + LIST_DB_SYSTEM_SHAPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + ListDbSystemShapesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbSystemShapesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DB_SYSTEM_SHAPES_PAGE_STR_DESC, request, context); + return ListDbSystemShapesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + LIST_AUTONOMOUS_DATABASES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutonomousDatabasesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase> + pageContext = + PageContext.create( + callable, LIST_AUTONOMOUS_DATABASES_PAGE_STR_DESC, request, context); + return ListAutonomousDatabasesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutonomousDbVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + pageContext = + PageContext.create( + callable, LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_DESC, request, context); + return ListAutonomousDbVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse> + callable, + ListAutonomousDatabaseCharacterSetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + pageContext = + PageContext.create( + callable, + LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_DESC, + request, + context); + return ListAutonomousDatabaseCharacterSetsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + callable, + ListAutonomousDatabaseBackupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + pageContext = + PageContext.create( + callable, + LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_DESC, + request, + context); + return ListAutonomousDatabaseBackupsPagedResponse.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 listCloudExadataInfrastructures. */ + public PagedCallSettings< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings() { + return listCloudExadataInfrastructuresSettings; + } + + /** Returns the object with the settings used for calls to getCloudExadataInfrastructure. */ + public UnaryCallSettings + getCloudExadataInfrastructureSettings() { + return getCloudExadataInfrastructureSettings; + } + + /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ + public UnaryCallSettings + createCloudExadataInfrastructureSettings() { + return createCloudExadataInfrastructureSettings; + } + + /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ + public OperationCallSettings< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings() { + return createCloudExadataInfrastructureOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ + public UnaryCallSettings + deleteCloudExadataInfrastructureSettings() { + return deleteCloudExadataInfrastructureSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ + public OperationCallSettings + deleteCloudExadataInfrastructureOperationSettings() { + return deleteCloudExadataInfrastructureOperationSettings; + } + + /** Returns the object with the settings used for calls to listCloudVmClusters. */ + public PagedCallSettings< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings() { + return listCloudVmClustersSettings; + } + + /** Returns the object with the settings used for calls to getCloudVmCluster. */ + public UnaryCallSettings getCloudVmClusterSettings() { + return getCloudVmClusterSettings; + } + + /** Returns the object with the settings used for calls to createCloudVmCluster. */ + public UnaryCallSettings createCloudVmClusterSettings() { + return createCloudVmClusterSettings; + } + + /** Returns the object with the settings used for calls to createCloudVmCluster. */ + public OperationCallSettings + createCloudVmClusterOperationSettings() { + return createCloudVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ + public UnaryCallSettings deleteCloudVmClusterSettings() { + return deleteCloudVmClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ + public OperationCallSettings + deleteCloudVmClusterOperationSettings() { + return deleteCloudVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to listEntitlements. */ + public PagedCallSettings< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings() { + return listEntitlementsSettings; + } + + /** Returns the object with the settings used for calls to listDbServers. */ + public PagedCallSettings + listDbServersSettings() { + return listDbServersSettings; + } + + /** Returns the object with the settings used for calls to listDbNodes. */ + public PagedCallSettings + listDbNodesSettings() { + return listDbNodesSettings; + } + + /** Returns the object with the settings used for calls to listGiVersions. */ + public PagedCallSettings< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings() { + return listGiVersionsSettings; + } + + /** Returns the object with the settings used for calls to listDbSystemShapes. */ + public PagedCallSettings< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings() { + return listDbSystemShapesSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDatabases. */ + public PagedCallSettings< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings() { + return listAutonomousDatabasesSettings; + } + + /** Returns the object with the settings used for calls to getAutonomousDatabase. */ + public UnaryCallSettings + getAutonomousDatabaseSettings() { + return getAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to createAutonomousDatabase. */ + public UnaryCallSettings + createAutonomousDatabaseSettings() { + return createAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to createAutonomousDatabase. */ + public OperationCallSettings< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings() { + return createAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ + public UnaryCallSettings + deleteAutonomousDatabaseSettings() { + return deleteAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ + public OperationCallSettings + deleteAutonomousDatabaseOperationSettings() { + return deleteAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ + public UnaryCallSettings + restoreAutonomousDatabaseSettings() { + return restoreAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ + public OperationCallSettings< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings() { + return restoreAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to generateAutonomousDatabaseWallet. */ + public UnaryCallSettings< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings() { + return generateAutonomousDatabaseWalletSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDbVersions. */ + public PagedCallSettings< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings() { + return listAutonomousDbVersionsSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDatabaseCharacterSets. */ + public PagedCallSettings< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings() { + return listAutonomousDatabaseCharacterSetsSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDatabaseBackups. */ + public PagedCallSettings< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings() { + return listAutonomousDatabaseBackupsSettings; + } + + /** 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 OracleDatabaseStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonOracleDatabaseStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "oracledatabase"; + } + + /** 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 "oracledatabase.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "oracledatabase.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(OracleDatabaseStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listCloudExadataInfrastructuresSettings = + settingsBuilder.listCloudExadataInfrastructuresSettings().build(); + getCloudExadataInfrastructureSettings = + settingsBuilder.getCloudExadataInfrastructureSettings().build(); + createCloudExadataInfrastructureSettings = + settingsBuilder.createCloudExadataInfrastructureSettings().build(); + createCloudExadataInfrastructureOperationSettings = + settingsBuilder.createCloudExadataInfrastructureOperationSettings().build(); + deleteCloudExadataInfrastructureSettings = + settingsBuilder.deleteCloudExadataInfrastructureSettings().build(); + deleteCloudExadataInfrastructureOperationSettings = + settingsBuilder.deleteCloudExadataInfrastructureOperationSettings().build(); + listCloudVmClustersSettings = settingsBuilder.listCloudVmClustersSettings().build(); + getCloudVmClusterSettings = settingsBuilder.getCloudVmClusterSettings().build(); + createCloudVmClusterSettings = settingsBuilder.createCloudVmClusterSettings().build(); + createCloudVmClusterOperationSettings = + settingsBuilder.createCloudVmClusterOperationSettings().build(); + deleteCloudVmClusterSettings = settingsBuilder.deleteCloudVmClusterSettings().build(); + deleteCloudVmClusterOperationSettings = + settingsBuilder.deleteCloudVmClusterOperationSettings().build(); + listEntitlementsSettings = settingsBuilder.listEntitlementsSettings().build(); + listDbServersSettings = settingsBuilder.listDbServersSettings().build(); + listDbNodesSettings = settingsBuilder.listDbNodesSettings().build(); + listGiVersionsSettings = settingsBuilder.listGiVersionsSettings().build(); + listDbSystemShapesSettings = settingsBuilder.listDbSystemShapesSettings().build(); + listAutonomousDatabasesSettings = settingsBuilder.listAutonomousDatabasesSettings().build(); + getAutonomousDatabaseSettings = settingsBuilder.getAutonomousDatabaseSettings().build(); + createAutonomousDatabaseSettings = settingsBuilder.createAutonomousDatabaseSettings().build(); + createAutonomousDatabaseOperationSettings = + settingsBuilder.createAutonomousDatabaseOperationSettings().build(); + deleteAutonomousDatabaseSettings = settingsBuilder.deleteAutonomousDatabaseSettings().build(); + deleteAutonomousDatabaseOperationSettings = + settingsBuilder.deleteAutonomousDatabaseOperationSettings().build(); + restoreAutonomousDatabaseSettings = settingsBuilder.restoreAutonomousDatabaseSettings().build(); + restoreAutonomousDatabaseOperationSettings = + settingsBuilder.restoreAutonomousDatabaseOperationSettings().build(); + generateAutonomousDatabaseWalletSettings = + settingsBuilder.generateAutonomousDatabaseWalletSettings().build(); + listAutonomousDbVersionsSettings = settingsBuilder.listAutonomousDbVersionsSettings().build(); + listAutonomousDatabaseCharacterSetsSettings = + settingsBuilder.listAutonomousDatabaseCharacterSetsSettings().build(); + listAutonomousDatabaseBackupsSettings = + settingsBuilder.listAutonomousDatabaseBackupsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for OracleDatabaseStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings; + private final UnaryCallSettings.Builder< + GetCloudExadataInfrastructureRequest, CloudExadataInfrastructure> + getCloudExadataInfrastructureSettings; + private final UnaryCallSettings.Builder + createCloudExadataInfrastructureSettings; + private final OperationCallSettings.Builder< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings; + private final UnaryCallSettings.Builder + deleteCloudExadataInfrastructureSettings; + private final OperationCallSettings.Builder< + DeleteCloudExadataInfrastructureRequest, Empty, OperationMetadata> + deleteCloudExadataInfrastructureOperationSettings; + private final PagedCallSettings.Builder< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings; + private final UnaryCallSettings.Builder + getCloudVmClusterSettings; + private final UnaryCallSettings.Builder + createCloudVmClusterSettings; + private final OperationCallSettings.Builder< + CreateCloudVmClusterRequest, CloudVmCluster, OperationMetadata> + createCloudVmClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteCloudVmClusterSettings; + private final OperationCallSettings.Builder< + DeleteCloudVmClusterRequest, Empty, OperationMetadata> + deleteCloudVmClusterOperationSettings; + private final PagedCallSettings.Builder< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings; + private final PagedCallSettings.Builder< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> + listDbServersSettings; + private final PagedCallSettings.Builder< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse> + listDbNodesSettings; + private final PagedCallSettings.Builder< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings; + private final PagedCallSettings.Builder< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings; + private final PagedCallSettings.Builder< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings; + private final UnaryCallSettings.Builder + getAutonomousDatabaseSettings; + private final UnaryCallSettings.Builder + createAutonomousDatabaseSettings; + private final OperationCallSettings.Builder< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings; + private final UnaryCallSettings.Builder + deleteAutonomousDatabaseSettings; + private final OperationCallSettings.Builder< + DeleteAutonomousDatabaseRequest, Empty, OperationMetadata> + deleteAutonomousDatabaseOperationSettings; + private final UnaryCallSettings.Builder + restoreAutonomousDatabaseSettings; + private final OperationCallSettings.Builder< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings; + private final UnaryCallSettings.Builder< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings; + private final PagedCallSettings.Builder< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings; + private final PagedCallSettings.Builder< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings; + private final PagedCallSettings.Builder< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings; + 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_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.INTERNAL, + StatusCode.Code.DEADLINE_EXCEEDED))); + definitions.put( + "no_retry_1_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() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listCloudExadataInfrastructuresSettings = + PagedCallSettings.newBuilder(LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_FACT); + getCloudExadataInfrastructureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCloudExadataInfrastructureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCloudExadataInfrastructureOperationSettings = OperationCallSettings.newBuilder(); + deleteCloudExadataInfrastructureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCloudExadataInfrastructureOperationSettings = OperationCallSettings.newBuilder(); + listCloudVmClustersSettings = + PagedCallSettings.newBuilder(LIST_CLOUD_VM_CLUSTERS_PAGE_STR_FACT); + getCloudVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCloudVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCloudVmClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteCloudVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCloudVmClusterOperationSettings = OperationCallSettings.newBuilder(); + listEntitlementsSettings = PagedCallSettings.newBuilder(LIST_ENTITLEMENTS_PAGE_STR_FACT); + listDbServersSettings = PagedCallSettings.newBuilder(LIST_DB_SERVERS_PAGE_STR_FACT); + listDbNodesSettings = PagedCallSettings.newBuilder(LIST_DB_NODES_PAGE_STR_FACT); + listGiVersionsSettings = PagedCallSettings.newBuilder(LIST_GI_VERSIONS_PAGE_STR_FACT); + listDbSystemShapesSettings = + PagedCallSettings.newBuilder(LIST_DB_SYSTEM_SHAPES_PAGE_STR_FACT); + listAutonomousDatabasesSettings = + PagedCallSettings.newBuilder(LIST_AUTONOMOUS_DATABASES_PAGE_STR_FACT); + getAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + deleteAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + restoreAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + generateAutonomousDatabaseWalletSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAutonomousDbVersionsSettings = + PagedCallSettings.newBuilder(LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_FACT); + listAutonomousDatabaseCharacterSetsSettings = + PagedCallSettings.newBuilder(LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_FACT); + listAutonomousDatabaseBackupsSettings = + PagedCallSettings.newBuilder(LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listCloudExadataInfrastructuresSettings, + getCloudExadataInfrastructureSettings, + createCloudExadataInfrastructureSettings, + deleteCloudExadataInfrastructureSettings, + listCloudVmClustersSettings, + getCloudVmClusterSettings, + createCloudVmClusterSettings, + deleteCloudVmClusterSettings, + listEntitlementsSettings, + listDbServersSettings, + listDbNodesSettings, + listGiVersionsSettings, + listDbSystemShapesSettings, + listAutonomousDatabasesSettings, + getAutonomousDatabaseSettings, + createAutonomousDatabaseSettings, + deleteAutonomousDatabaseSettings, + restoreAutonomousDatabaseSettings, + generateAutonomousDatabaseWalletSettings, + listAutonomousDbVersionsSettings, + listAutonomousDatabaseCharacterSetsSettings, + listAutonomousDatabaseBackupsSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(OracleDatabaseStubSettings settings) { + super(settings); + + listCloudExadataInfrastructuresSettings = + settings.listCloudExadataInfrastructuresSettings.toBuilder(); + getCloudExadataInfrastructureSettings = + settings.getCloudExadataInfrastructureSettings.toBuilder(); + createCloudExadataInfrastructureSettings = + settings.createCloudExadataInfrastructureSettings.toBuilder(); + createCloudExadataInfrastructureOperationSettings = + settings.createCloudExadataInfrastructureOperationSettings.toBuilder(); + deleteCloudExadataInfrastructureSettings = + settings.deleteCloudExadataInfrastructureSettings.toBuilder(); + deleteCloudExadataInfrastructureOperationSettings = + settings.deleteCloudExadataInfrastructureOperationSettings.toBuilder(); + listCloudVmClustersSettings = settings.listCloudVmClustersSettings.toBuilder(); + getCloudVmClusterSettings = settings.getCloudVmClusterSettings.toBuilder(); + createCloudVmClusterSettings = settings.createCloudVmClusterSettings.toBuilder(); + createCloudVmClusterOperationSettings = + settings.createCloudVmClusterOperationSettings.toBuilder(); + deleteCloudVmClusterSettings = settings.deleteCloudVmClusterSettings.toBuilder(); + deleteCloudVmClusterOperationSettings = + settings.deleteCloudVmClusterOperationSettings.toBuilder(); + listEntitlementsSettings = settings.listEntitlementsSettings.toBuilder(); + listDbServersSettings = settings.listDbServersSettings.toBuilder(); + listDbNodesSettings = settings.listDbNodesSettings.toBuilder(); + listGiVersionsSettings = settings.listGiVersionsSettings.toBuilder(); + listDbSystemShapesSettings = settings.listDbSystemShapesSettings.toBuilder(); + listAutonomousDatabasesSettings = settings.listAutonomousDatabasesSettings.toBuilder(); + getAutonomousDatabaseSettings = settings.getAutonomousDatabaseSettings.toBuilder(); + createAutonomousDatabaseSettings = settings.createAutonomousDatabaseSettings.toBuilder(); + createAutonomousDatabaseOperationSettings = + settings.createAutonomousDatabaseOperationSettings.toBuilder(); + deleteAutonomousDatabaseSettings = settings.deleteAutonomousDatabaseSettings.toBuilder(); + deleteAutonomousDatabaseOperationSettings = + settings.deleteAutonomousDatabaseOperationSettings.toBuilder(); + restoreAutonomousDatabaseSettings = settings.restoreAutonomousDatabaseSettings.toBuilder(); + restoreAutonomousDatabaseOperationSettings = + settings.restoreAutonomousDatabaseOperationSettings.toBuilder(); + generateAutonomousDatabaseWalletSettings = + settings.generateAutonomousDatabaseWalletSettings.toBuilder(); + listAutonomousDbVersionsSettings = settings.listAutonomousDbVersionsSettings.toBuilder(); + listAutonomousDatabaseCharacterSetsSettings = + settings.listAutonomousDatabaseCharacterSetsSettings.toBuilder(); + listAutonomousDatabaseBackupsSettings = + settings.listAutonomousDatabaseBackupsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listCloudExadataInfrastructuresSettings, + getCloudExadataInfrastructureSettings, + createCloudExadataInfrastructureSettings, + deleteCloudExadataInfrastructureSettings, + listCloudVmClustersSettings, + getCloudVmClusterSettings, + createCloudVmClusterSettings, + deleteCloudVmClusterSettings, + listEntitlementsSettings, + listDbServersSettings, + listDbNodesSettings, + listGiVersionsSettings, + listDbSystemShapesSettings, + listAutonomousDatabasesSettings, + getAutonomousDatabaseSettings, + createAutonomousDatabaseSettings, + deleteAutonomousDatabaseSettings, + restoreAutonomousDatabaseSettings, + generateAutonomousDatabaseWalletSettings, + listAutonomousDbVersionsSettings, + listAutonomousDatabaseCharacterSetsSettings, + listAutonomousDatabaseBackupsSettings, + 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 initDefaults(Builder builder) { + builder + .listCloudExadataInfrastructuresSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCloudExadataInfrastructureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCloudExadataInfrastructureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteCloudExadataInfrastructureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listCloudVmClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCloudVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCloudVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteCloudVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listEntitlementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDbServersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDbNodesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listGiVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDbSystemShapesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAutonomousDatabasesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .restoreAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .generateAutonomousDatabaseWalletSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listAutonomousDbVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAutonomousDatabaseCharacterSetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAutonomousDatabaseBackupsSettings() + .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_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createCloudExadataInfrastructureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + CloudExadataInfrastructure.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + builder + .deleteCloudExadataInfrastructureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + builder + .createCloudVmClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CloudVmCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + builder + .deleteCloudVmClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + builder + .createAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + builder + .deleteAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + builder + .restoreAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(600000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(432000000L)) + .build())); + + 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 listCloudExadataInfrastructures. */ + public PagedCallSettings.Builder< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings() { + return listCloudExadataInfrastructuresSettings; + } + + /** Returns the builder for the settings used for calls to getCloudExadataInfrastructure. */ + public UnaryCallSettings.Builder< + GetCloudExadataInfrastructureRequest, CloudExadataInfrastructure> + getCloudExadataInfrastructureSettings() { + return getCloudExadataInfrastructureSettings; + } + + /** Returns the builder for the settings used for calls to createCloudExadataInfrastructure. */ + public UnaryCallSettings.Builder + createCloudExadataInfrastructureSettings() { + return createCloudExadataInfrastructureSettings; + } + + /** Returns the builder for the settings used for calls to createCloudExadataInfrastructure. */ + public OperationCallSettings.Builder< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings() { + return createCloudExadataInfrastructureOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCloudExadataInfrastructure. */ + public UnaryCallSettings.Builder + deleteCloudExadataInfrastructureSettings() { + return deleteCloudExadataInfrastructureSettings; + } + + /** Returns the builder for the settings used for calls to deleteCloudExadataInfrastructure. */ + public OperationCallSettings.Builder< + DeleteCloudExadataInfrastructureRequest, Empty, OperationMetadata> + deleteCloudExadataInfrastructureOperationSettings() { + return deleteCloudExadataInfrastructureOperationSettings; + } + + /** Returns the builder for the settings used for calls to listCloudVmClusters. */ + public PagedCallSettings.Builder< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings() { + return listCloudVmClustersSettings; + } + + /** Returns the builder for the settings used for calls to getCloudVmCluster. */ + public UnaryCallSettings.Builder + getCloudVmClusterSettings() { + return getCloudVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to createCloudVmCluster. */ + public UnaryCallSettings.Builder + createCloudVmClusterSettings() { + return createCloudVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to createCloudVmCluster. */ + public OperationCallSettings.Builder< + CreateCloudVmClusterRequest, CloudVmCluster, OperationMetadata> + createCloudVmClusterOperationSettings() { + return createCloudVmClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCloudVmCluster. */ + public UnaryCallSettings.Builder + deleteCloudVmClusterSettings() { + return deleteCloudVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteCloudVmCluster. */ + public OperationCallSettings.Builder + deleteCloudVmClusterOperationSettings() { + return deleteCloudVmClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to listEntitlements. */ + public PagedCallSettings.Builder< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings() { + return listEntitlementsSettings; + } + + /** Returns the builder for the settings used for calls to listDbServers. */ + public PagedCallSettings.Builder< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> + listDbServersSettings() { + return listDbServersSettings; + } + + /** Returns the builder for the settings used for calls to listDbNodes. */ + public PagedCallSettings.Builder< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse> + listDbNodesSettings() { + return listDbNodesSettings; + } + + /** Returns the builder for the settings used for calls to listGiVersions. */ + public PagedCallSettings.Builder< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings() { + return listGiVersionsSettings; + } + + /** Returns the builder for the settings used for calls to listDbSystemShapes. */ + public PagedCallSettings.Builder< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings() { + return listDbSystemShapesSettings; + } + + /** Returns the builder for the settings used for calls to listAutonomousDatabases. */ + public PagedCallSettings.Builder< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings() { + return listAutonomousDatabasesSettings; + } + + /** Returns the builder for the settings used for calls to getAutonomousDatabase. */ + public UnaryCallSettings.Builder + getAutonomousDatabaseSettings() { + return getAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to createAutonomousDatabase. */ + public UnaryCallSettings.Builder + createAutonomousDatabaseSettings() { + return createAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to createAutonomousDatabase. */ + public OperationCallSettings.Builder< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings() { + return createAutonomousDatabaseOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAutonomousDatabase. */ + public UnaryCallSettings.Builder + deleteAutonomousDatabaseSettings() { + return deleteAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to deleteAutonomousDatabase. */ + public OperationCallSettings.Builder + deleteAutonomousDatabaseOperationSettings() { + return deleteAutonomousDatabaseOperationSettings; + } + + /** Returns the builder for the settings used for calls to restoreAutonomousDatabase. */ + public UnaryCallSettings.Builder + restoreAutonomousDatabaseSettings() { + return restoreAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to restoreAutonomousDatabase. */ + public OperationCallSettings.Builder< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings() { + return restoreAutonomousDatabaseOperationSettings; + } + + /** Returns the builder for the settings used for calls to generateAutonomousDatabaseWallet. */ + public UnaryCallSettings.Builder< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings() { + return generateAutonomousDatabaseWalletSettings; + } + + /** Returns the builder for the settings used for calls to listAutonomousDbVersions. */ + public PagedCallSettings.Builder< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings() { + return listAutonomousDbVersionsSettings; + } + + /** + * Returns the builder for the settings used for calls to listAutonomousDatabaseCharacterSets. + */ + public PagedCallSettings.Builder< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings() { + return listAutonomousDatabaseCharacterSetsSettings; + } + + /** Returns the builder for the settings used for calls to listAutonomousDatabaseBackups. */ + public PagedCallSettings.Builder< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings() { + return listAutonomousDatabaseBackupsSettings; + } + + /** 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 OracleDatabaseStubSettings build() throws IOException { + return new OracleDatabaseStubSettings(this); + } + } +} diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json new file mode 100644 index 000000000000..e173b7ee8123 --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json @@ -0,0 +1,2999 @@ +[ + { + "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.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.oracledatabase.v1.AllConnectionStrings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AllConnectionStrings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabase", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabase$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet$CharacterSetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$DataSafeState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$DatabaseEdition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$DatabaseManagementState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$LicenseType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$LocalDisasterRecoveryType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$MaintenanceScheduleType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$OpenMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$PermissionLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$RefreshableMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$RefreshableState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties$Role", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDbVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.AutonomousDbVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudAccountDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudAccountDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmClusterProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmClusterProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmClusterProperties$DiskRedundancy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmClusterProperties$LicenseType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmClusterProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CustomerContact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CustomerContact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DBWorkload", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$ConsumerGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$HostFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$SessionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$SyntaxFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$TLSAuthentication", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServerProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServerProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServerProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemShape", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemShape$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Entitlement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Entitlement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Entitlement$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GiVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GiVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbServersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbServersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbServersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbServersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.LocationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.LocationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$MaintenanceWindowPreference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$PatchingMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.OperationsInsightsState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ScheduledOperationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ScheduledOperationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$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.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 + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DateTime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DateTime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DayOfWeek", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Month", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeOfDay", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeOfDay$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeZone", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeZone$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java new file mode 100644 index 000000000000..8bb4576f582a --- /dev/null +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java @@ -0,0 +1,2617 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDatabasesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; + +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.oracledatabase.v1.stub.HttpJsonOracleDatabaseStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +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 OracleDatabaseClientTest { + private static MockHttpService mockService; + private static OracleDatabaseClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonOracleDatabaseStub.getMethodDescriptors(), + OracleDatabaseSettings.getDefaultEndpoint()); + OracleDatabaseSettings settings = + OracleDatabaseSettings.newBuilder() + .setTransportChannelProvider( + OracleDatabaseSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OracleDatabaseClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listCloudExadataInfrastructuresTest() throws Exception { + CloudExadataInfrastructure responsesElement = CloudExadataInfrastructure.newBuilder().build(); + ListCloudExadataInfrastructuresResponse expectedResponse = + ListCloudExadataInfrastructuresResponse.newBuilder() + .setNextPageToken("") + .addAllCloudExadataInfrastructures(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCloudExadataInfrastructuresPagedResponse pagedListResponse = + client.listCloudExadataInfrastructures(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCloudExadataInfrastructuresList().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 listCloudExadataInfrastructuresExceptionTest() 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.listCloudExadataInfrastructures(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCloudExadataInfrastructuresTest2() throws Exception { + CloudExadataInfrastructure responsesElement = CloudExadataInfrastructure.newBuilder().build(); + ListCloudExadataInfrastructuresResponse expectedResponse = + ListCloudExadataInfrastructuresResponse.newBuilder() + .setNextPageToken("") + .addAllCloudExadataInfrastructures(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCloudExadataInfrastructuresPagedResponse pagedListResponse = + client.listCloudExadataInfrastructures(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCloudExadataInfrastructuresList().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 listCloudExadataInfrastructuresExceptionTest2() 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.listCloudExadataInfrastructures(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCloudExadataInfrastructureTest() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + + CloudExadataInfrastructure actualResponse = client.getCloudExadataInfrastructure(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 getCloudExadataInfrastructureExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + client.getCloudExadataInfrastructure(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCloudExadataInfrastructureTest2() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7549/locations/location-7549/cloudExadataInfrastructures/cloudExadataInfrastructure-7549"; + + CloudExadataInfrastructure actualResponse = client.getCloudExadataInfrastructure(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 getCloudExadataInfrastructureExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7549/locations/location-7549/cloudExadataInfrastructures/cloudExadataInfrastructure-7549"; + client.getCloudExadataInfrastructure(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCloudExadataInfrastructureTest() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CloudExadataInfrastructure cloudExadataInfrastructure = + CloudExadataInfrastructure.newBuilder().build(); + String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; + + CloudExadataInfrastructure actualResponse = + client + .createCloudExadataInfrastructureAsync( + parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + .get(); + 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 createCloudExadataInfrastructureExceptionTest() 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]"); + CloudExadataInfrastructure cloudExadataInfrastructure = + CloudExadataInfrastructure.newBuilder().build(); + String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; + client + .createCloudExadataInfrastructureAsync( + parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCloudExadataInfrastructureTest2() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CloudExadataInfrastructure cloudExadataInfrastructure = + CloudExadataInfrastructure.newBuilder().build(); + String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; + + CloudExadataInfrastructure actualResponse = + client + .createCloudExadataInfrastructureAsync( + parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + .get(); + 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 createCloudExadataInfrastructureExceptionTest2() 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"; + CloudExadataInfrastructure cloudExadataInfrastructure = + CloudExadataInfrastructure.newBuilder().build(); + String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; + client + .createCloudExadataInfrastructureAsync( + parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCloudExadataInfrastructureTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + + client.deleteCloudExadataInfrastructureAsync(name).get(); + + 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 deleteCloudExadataInfrastructureExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + client.deleteCloudExadataInfrastructureAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCloudExadataInfrastructureTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7549/locations/location-7549/cloudExadataInfrastructures/cloudExadataInfrastructure-7549"; + + client.deleteCloudExadataInfrastructureAsync(name).get(); + + 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 deleteCloudExadataInfrastructureExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7549/locations/location-7549/cloudExadataInfrastructures/cloudExadataInfrastructure-7549"; + client.deleteCloudExadataInfrastructureAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listCloudVmClustersTest() throws Exception { + CloudVmCluster responsesElement = CloudVmCluster.newBuilder().build(); + ListCloudVmClustersResponse expectedResponse = + ListCloudVmClustersResponse.newBuilder() + .setNextPageToken("") + .addAllCloudVmClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCloudVmClustersPagedResponse pagedListResponse = client.listCloudVmClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCloudVmClustersList().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 listCloudVmClustersExceptionTest() 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.listCloudVmClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCloudVmClustersTest2() throws Exception { + CloudVmCluster responsesElement = CloudVmCluster.newBuilder().build(); + ListCloudVmClustersResponse expectedResponse = + ListCloudVmClustersResponse.newBuilder() + .setNextPageToken("") + .addAllCloudVmClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCloudVmClustersPagedResponse pagedListResponse = client.listCloudVmClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCloudVmClustersList().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 listCloudVmClustersExceptionTest2() 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.listCloudVmClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCloudVmClusterTest() throws Exception { + CloudVmCluster expectedResponse = + CloudVmCluster.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(CloudVmClusterProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCidr("cidr3053428") + .setBackupSubnetCidr("backupSubnetCidr1087692755") + .setNetwork("network1843485230") + .build(); + mockService.addResponse(expectedResponse); + + CloudVmClusterName name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + + CloudVmCluster actualResponse = client.getCloudVmCluster(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 getCloudVmClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudVmClusterName name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + client.getCloudVmCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCloudVmClusterTest2() throws Exception { + CloudVmCluster expectedResponse = + CloudVmCluster.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(CloudVmClusterProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCidr("cidr3053428") + .setBackupSubnetCidr("backupSubnetCidr1087692755") + .setNetwork("network1843485230") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9637/locations/location-9637/cloudVmClusters/cloudVmCluster-9637"; + + CloudVmCluster actualResponse = client.getCloudVmCluster(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 getCloudVmClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9637/locations/location-9637/cloudVmClusters/cloudVmCluster-9637"; + client.getCloudVmCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCloudVmClusterTest() throws Exception { + CloudVmCluster expectedResponse = + CloudVmCluster.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(CloudVmClusterProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCidr("cidr3053428") + .setBackupSubnetCidr("backupSubnetCidr1087692755") + .setNetwork("network1843485230") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCloudVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); + String cloudVmClusterId = "cloudVmClusterId-1217103287"; + + CloudVmCluster actualResponse = + client.createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId).get(); + 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 createCloudVmClusterExceptionTest() 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]"); + CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); + String cloudVmClusterId = "cloudVmClusterId-1217103287"; + client.createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCloudVmClusterTest2() throws Exception { + CloudVmCluster expectedResponse = + CloudVmCluster.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(CloudVmClusterProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCidr("cidr3053428") + .setBackupSubnetCidr("backupSubnetCidr1087692755") + .setNetwork("network1843485230") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCloudVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); + String cloudVmClusterId = "cloudVmClusterId-1217103287"; + + CloudVmCluster actualResponse = + client.createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId).get(); + 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 createCloudVmClusterExceptionTest2() 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"; + CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); + String cloudVmClusterId = "cloudVmClusterId-1217103287"; + client.createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCloudVmClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCloudVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CloudVmClusterName name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + + client.deleteCloudVmClusterAsync(name).get(); + + 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 deleteCloudVmClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudVmClusterName name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + client.deleteCloudVmClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCloudVmClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCloudVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9637/locations/location-9637/cloudVmClusters/cloudVmCluster-9637"; + + client.deleteCloudVmClusterAsync(name).get(); + + 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 deleteCloudVmClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9637/locations/location-9637/cloudVmClusters/cloudVmCluster-9637"; + client.deleteCloudVmClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listEntitlementsTest() throws Exception { + Entitlement responsesElement = Entitlement.newBuilder().build(); + ListEntitlementsResponse expectedResponse = + ListEntitlementsResponse.newBuilder() + .setNextPageToken("") + .addAllEntitlements(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEntitlementsPagedResponse pagedListResponse = client.listEntitlements(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntitlementsList().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 listEntitlementsExceptionTest() 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.listEntitlements(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEntitlementsTest2() throws Exception { + Entitlement responsesElement = Entitlement.newBuilder().build(); + ListEntitlementsResponse expectedResponse = + ListEntitlementsResponse.newBuilder() + .setNextPageToken("") + .addAllEntitlements(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEntitlementsPagedResponse pagedListResponse = client.listEntitlements(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntitlementsList().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 listEntitlementsExceptionTest2() 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.listEntitlements(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbServersTest() throws Exception { + DbServer responsesElement = DbServer.newBuilder().build(); + ListDbServersResponse expectedResponse = + ListDbServersResponse.newBuilder() + .setNextPageToken("") + .addAllDbServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CloudExadataInfrastructureName parent = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + + ListDbServersPagedResponse pagedListResponse = client.listDbServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbServersList().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 listDbServersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudExadataInfrastructureName parent = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + client.listDbServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbServersTest2() throws Exception { + DbServer responsesElement = DbServer.newBuilder().build(); + ListDbServersResponse expectedResponse = + ListDbServersResponse.newBuilder() + .setNextPageToken("") + .addAllDbServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-3202/locations/location-3202/cloudExadataInfrastructures/cloudExadataInfrastructure-3202"; + + ListDbServersPagedResponse pagedListResponse = client.listDbServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbServersList().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 listDbServersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-3202/locations/location-3202/cloudExadataInfrastructures/cloudExadataInfrastructure-3202"; + client.listDbServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbNodesTest() throws Exception { + DbNode responsesElement = DbNode.newBuilder().build(); + ListDbNodesResponse expectedResponse = + ListDbNodesResponse.newBuilder() + .setNextPageToken("") + .addAllDbNodes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CloudVmClusterName parent = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + + ListDbNodesPagedResponse pagedListResponse = client.listDbNodes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbNodesList().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 listDbNodesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudVmClusterName parent = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + client.listDbNodes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbNodesTest2() throws Exception { + DbNode responsesElement = DbNode.newBuilder().build(); + ListDbNodesResponse expectedResponse = + ListDbNodesResponse.newBuilder() + .setNextPageToken("") + .addAllDbNodes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2426/locations/location-2426/cloudVmClusters/cloudVmCluster-2426"; + + ListDbNodesPagedResponse pagedListResponse = client.listDbNodes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbNodesList().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 listDbNodesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2426/locations/location-2426/cloudVmClusters/cloudVmCluster-2426"; + client.listDbNodes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGiVersionsTest() throws Exception { + GiVersion responsesElement = GiVersion.newBuilder().build(); + ListGiVersionsResponse expectedResponse = + ListGiVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllGiVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGiVersionsPagedResponse pagedListResponse = client.listGiVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGiVersionsList().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 listGiVersionsExceptionTest() 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.listGiVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGiVersionsTest2() throws Exception { + GiVersion responsesElement = GiVersion.newBuilder().build(); + ListGiVersionsResponse expectedResponse = + ListGiVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllGiVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListGiVersionsPagedResponse pagedListResponse = client.listGiVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGiVersionsList().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 listGiVersionsExceptionTest2() 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.listGiVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemShapesTest() throws Exception { + DbSystemShape responsesElement = DbSystemShape.newBuilder().build(); + ListDbSystemShapesResponse expectedResponse = + ListDbSystemShapesResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystemShapes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbSystemShapesPagedResponse pagedListResponse = client.listDbSystemShapes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbSystemShapesList().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 listDbSystemShapesExceptionTest() 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.listDbSystemShapes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemShapesTest2() throws Exception { + DbSystemShape responsesElement = DbSystemShape.newBuilder().build(); + ListDbSystemShapesResponse expectedResponse = + ListDbSystemShapesResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystemShapes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDbSystemShapesPagedResponse pagedListResponse = client.listDbSystemShapes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbSystemShapesList().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 listDbSystemShapesExceptionTest2() 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.listDbSystemShapes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDatabasesTest() throws Exception { + AutonomousDatabase responsesElement = AutonomousDatabase.newBuilder().build(); + ListAutonomousDatabasesResponse expectedResponse = + ListAutonomousDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAutonomousDatabasesPagedResponse pagedListResponse = client.listAutonomousDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutonomousDatabasesList().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 listAutonomousDatabasesExceptionTest() 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.listAutonomousDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDatabasesTest2() throws Exception { + AutonomousDatabase responsesElement = AutonomousDatabase.newBuilder().build(); + ListAutonomousDatabasesResponse expectedResponse = + ListAutonomousDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAutonomousDatabasesPagedResponse pagedListResponse = client.listAutonomousDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutonomousDatabasesList().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 listAutonomousDatabasesExceptionTest2() 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.listAutonomousDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = client.getAutonomousDatabase(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 getAutonomousDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.getAutonomousDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + + AutonomousDatabase actualResponse = client.getAutonomousDatabase(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 getAutonomousDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + client.getAutonomousDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; + + AutonomousDatabase actualResponse = + client + .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId) + .get(); + 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 createAutonomousDatabaseExceptionTest() 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]"); + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; + client.createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; + + AutonomousDatabase actualResponse = + client + .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId) + .get(); + 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 createAutonomousDatabaseExceptionTest2() 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"; + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; + client.createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAutonomousDatabaseTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + client.deleteAutonomousDatabaseAsync(name).get(); + + 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 deleteAutonomousDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.deleteAutonomousDatabaseAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAutonomousDatabaseTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + + client.deleteAutonomousDatabaseAsync(name).get(); + + 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 deleteAutonomousDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + client.deleteAutonomousDatabaseAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + Timestamp restoreTime = Timestamp.newBuilder().build(); + + AutonomousDatabase actualResponse = + client.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + 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 restoreAutonomousDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + Timestamp restoreTime = Timestamp.newBuilder().build(); + client.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + Timestamp restoreTime = Timestamp.newBuilder().build(); + + AutonomousDatabase actualResponse = + client.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + 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 restoreAutonomousDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + Timestamp restoreTime = Timestamp.newBuilder().build(); + client.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateAutonomousDatabaseWalletTest() throws Exception { + GenerateAutonomousDatabaseWalletResponse expectedResponse = + GenerateAutonomousDatabaseWalletResponse.newBuilder() + .setArchiveContent(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + GenerateType type = GenerateType.forNumber(0); + boolean isRegional = true; + String password = "password1216985755"; + + GenerateAutonomousDatabaseWalletResponse actualResponse = + client.generateAutonomousDatabaseWallet(name, type, isRegional, password); + 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 generateAutonomousDatabaseWalletExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + GenerateType type = GenerateType.forNumber(0); + boolean isRegional = true; + String password = "password1216985755"; + client.generateAutonomousDatabaseWallet(name, type, isRegional, password); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAutonomousDatabaseWalletTest2() throws Exception { + GenerateAutonomousDatabaseWalletResponse expectedResponse = + GenerateAutonomousDatabaseWalletResponse.newBuilder() + .setArchiveContent(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + GenerateType type = GenerateType.forNumber(0); + boolean isRegional = true; + String password = "password1216985755"; + + GenerateAutonomousDatabaseWalletResponse actualResponse = + client.generateAutonomousDatabaseWallet(name, type, isRegional, password); + 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 generateAutonomousDatabaseWalletExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + GenerateType type = GenerateType.forNumber(0); + boolean isRegional = true; + String password = "password1216985755"; + client.generateAutonomousDatabaseWallet(name, type, isRegional, password); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDbVersionsTest() throws Exception { + AutonomousDbVersion responsesElement = AutonomousDbVersion.newBuilder().build(); + ListAutonomousDbVersionsResponse expectedResponse = + ListAutonomousDbVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDbVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAutonomousDbVersionsPagedResponse pagedListResponse = + client.listAutonomousDbVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutonomousDbVersionsList().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 listAutonomousDbVersionsExceptionTest() 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.listAutonomousDbVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDbVersionsTest2() throws Exception { + AutonomousDbVersion responsesElement = AutonomousDbVersion.newBuilder().build(); + ListAutonomousDbVersionsResponse expectedResponse = + ListAutonomousDbVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDbVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAutonomousDbVersionsPagedResponse pagedListResponse = + client.listAutonomousDbVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutonomousDbVersionsList().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 listAutonomousDbVersionsExceptionTest2() 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.listAutonomousDbVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDatabaseCharacterSetsTest() throws Exception { + AutonomousDatabaseCharacterSet responsesElement = + AutonomousDatabaseCharacterSet.newBuilder().build(); + ListAutonomousDatabaseCharacterSetsResponse expectedResponse = + ListAutonomousDatabaseCharacterSetsResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDatabaseCharacterSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAutonomousDatabaseCharacterSetsPagedResponse pagedListResponse = + client.listAutonomousDatabaseCharacterSets(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutonomousDatabaseCharacterSetsList().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 listAutonomousDatabaseCharacterSetsExceptionTest() 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.listAutonomousDatabaseCharacterSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDatabaseCharacterSetsTest2() throws Exception { + AutonomousDatabaseCharacterSet responsesElement = + AutonomousDatabaseCharacterSet.newBuilder().build(); + ListAutonomousDatabaseCharacterSetsResponse expectedResponse = + ListAutonomousDatabaseCharacterSetsResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDatabaseCharacterSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAutonomousDatabaseCharacterSetsPagedResponse pagedListResponse = + client.listAutonomousDatabaseCharacterSets(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutonomousDatabaseCharacterSetsList().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 listAutonomousDatabaseCharacterSetsExceptionTest2() 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.listAutonomousDatabaseCharacterSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDatabaseBackupsTest() throws Exception { + AutonomousDatabaseBackup responsesElement = AutonomousDatabaseBackup.newBuilder().build(); + ListAutonomousDatabaseBackupsResponse expectedResponse = + ListAutonomousDatabaseBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDatabaseBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAutonomousDatabaseBackupsPagedResponse pagedListResponse = + client.listAutonomousDatabaseBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutonomousDatabaseBackupsList().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 listAutonomousDatabaseBackupsExceptionTest() 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.listAutonomousDatabaseBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutonomousDatabaseBackupsTest2() throws Exception { + AutonomousDatabaseBackup responsesElement = AutonomousDatabaseBackup.newBuilder().build(); + ListAutonomousDatabaseBackupsResponse expectedResponse = + ListAutonomousDatabaseBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllAutonomousDatabaseBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAutonomousDatabaseBackupsPagedResponse pagedListResponse = + client.listAutonomousDatabaseBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutonomousDatabaseBackupsList().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 listAutonomousDatabaseBackupsExceptionTest2() 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.listAutonomousDatabaseBackups(parent); + 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-oracledatabase/owlbot.py b/java-oracledatabase/owlbot.py new file mode 100644 index 000000000000..2ba11e6bba67 --- /dev/null +++ b/java-oracledatabase/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-oracledatabase/pom.xml b/java-oracledatabase/pom.xml new file mode 100644 index 000000000000..b05584ef577b --- /dev/null +++ b/java-oracledatabase/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + com.google.cloud + google-cloud-oracledatabase-parent + pom + 0.0.1-SNAPSHOT + Google Oracle Database@Google Cloud API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.46.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-oracledatabase-parent + + + + + + com.google.cloud + google-cloud-oracledatabase + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-oracledatabase-v1 + 0.0.1-SNAPSHOT + + + + + + + google-cloud-oracledatabase + proto-google-cloud-oracledatabase-v1 + google-cloud-oracledatabase-bom + + + diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/clirr-ignored-differences.xml b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..be2fe2b75a2b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/oracledatabase/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/oracledatabase/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/oracledatabase/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/oracledatabase/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * clear() + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * clone() + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/oracledatabase/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml new file mode 100644 index 000000000000..1a63c6c9122b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-oracledatabase-v1 + 0.0.1-SNAPSHOT + proto-google-cloud-oracledatabase-v1 + Proto library for google-cloud-oracledatabase + + com.google.cloud + google-cloud-oracledatabase-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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AllConnectionStrings.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AllConnectionStrings.java new file mode 100644 index 000000000000..f05d8ce61bfe --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AllConnectionStrings.java @@ -0,0 +1,1013 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *

+ * A list of all connection strings that can be used to connect to the
+ * Autonomous Database.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AllConnectionStrings} + */ +public final class AllConnectionStrings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AllConnectionStrings) + AllConnectionStringsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllConnectionStrings.newBuilder() to construct. + private AllConnectionStrings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AllConnectionStrings() { + high_ = ""; + low_ = ""; + medium_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AllConnectionStrings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AllConnectionStrings.class, + com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder.class); + } + + public static final int HIGH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object high_ = ""; + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The high. + */ + @java.lang.Override + public java.lang.String getHigh() { + java.lang.Object ref = high_; + 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(); + high_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for high. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHighBytes() { + java.lang.Object ref = high_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object low_ = ""; + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The low. + */ + @java.lang.Override + public java.lang.String getLow() { + java.lang.Object ref = low_; + 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(); + low_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for low. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLowBytes() { + java.lang.Object ref = low_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEDIUM_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object medium_ = ""; + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The medium. + */ + @java.lang.Override + public java.lang.String getMedium() { + java.lang.Object ref = medium_; + 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(); + medium_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for medium. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMediumBytes() { + java.lang.Object ref = medium_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + medium_ = 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(high_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, high_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(low_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, low_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(medium_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, medium_); + } + 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(high_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, high_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(low_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, low_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(medium_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, medium_); + } + 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.oracledatabase.v1.AllConnectionStrings)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AllConnectionStrings other = + (com.google.cloud.oracledatabase.v1.AllConnectionStrings) obj; + + if (!getHigh().equals(other.getHigh())) return false; + if (!getLow().equals(other.getLow())) return false; + if (!getMedium().equals(other.getMedium())) 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) + HIGH_FIELD_NUMBER; + hash = (53 * hash) + getHigh().hashCode(); + hash = (37 * hash) + LOW_FIELD_NUMBER; + hash = (53 * hash) + getLow().hashCode(); + hash = (37 * hash) + MEDIUM_FIELD_NUMBER; + hash = (53 * hash) + getMedium().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings 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.oracledatabase.v1.AllConnectionStrings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings 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.oracledatabase.v1.AllConnectionStrings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings 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.oracledatabase.v1.AllConnectionStrings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings 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.oracledatabase.v1.AllConnectionStrings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings 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.oracledatabase.v1.AllConnectionStrings 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 list of all connection strings that can be used to connect to the
+   * Autonomous Database.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AllConnectionStrings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AllConnectionStrings) + com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AllConnectionStrings.class, + com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.AllConnectionStrings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + high_ = ""; + low_ = ""; + medium_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AllConnectionStrings getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AllConnectionStrings build() { + com.google.cloud.oracledatabase.v1.AllConnectionStrings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AllConnectionStrings buildPartial() { + com.google.cloud.oracledatabase.v1.AllConnectionStrings result = + new com.google.cloud.oracledatabase.v1.AllConnectionStrings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.AllConnectionStrings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.high_ = high_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.low_ = low_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.medium_ = medium_; + } + } + + @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.oracledatabase.v1.AllConnectionStrings) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AllConnectionStrings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.AllConnectionStrings other) { + if (other == com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance()) + return this; + if (!other.getHigh().isEmpty()) { + high_ = other.high_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLow().isEmpty()) { + low_ = other.low_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMedium().isEmpty()) { + medium_ = other.medium_; + 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: + { + high_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + low_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + medium_ = 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 high_ = ""; + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The high. + */ + public java.lang.String getHigh() { + java.lang.Object ref = high_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + high_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for high. + */ + public com.google.protobuf.ByteString getHighBytes() { + java.lang.Object ref = high_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The high to set. + * @return This builder for chaining. + */ + public Builder setHigh(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + high_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHigh() { + high_ = getDefaultInstance().getHigh(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for high to set. + * @return This builder for chaining. + */ + public Builder setHighBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + high_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object low_ = ""; + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The low. + */ + public java.lang.String getLow() { + java.lang.Object ref = low_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + low_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for low. + */ + public com.google.protobuf.ByteString getLowBytes() { + java.lang.Object ref = low_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The low to set. + * @return This builder for chaining. + */ + public Builder setLow(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + low_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLow() { + low_ = getDefaultInstance().getLow(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for low to set. + * @return This builder for chaining. + */ + public Builder setLowBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + low_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object medium_ = ""; + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The medium. + */ + public java.lang.String getMedium() { + java.lang.Object ref = medium_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + medium_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for medium. + */ + public com.google.protobuf.ByteString getMediumBytes() { + java.lang.Object ref = medium_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + medium_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The medium to set. + * @return This builder for chaining. + */ + public Builder setMedium(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + medium_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMedium() { + medium_ = getDefaultInstance().getMedium(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for medium to set. + * @return This builder for chaining. + */ + public Builder setMediumBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + medium_ = 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.oracledatabase.v1.AllConnectionStrings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AllConnectionStrings) + private static final com.google.cloud.oracledatabase.v1.AllConnectionStrings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AllConnectionStrings(); + } + + public static com.google.cloud.oracledatabase.v1.AllConnectionStrings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllConnectionStrings 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.oracledatabase.v1.AllConnectionStrings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AllConnectionStringsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AllConnectionStringsOrBuilder.java new file mode 100644 index 000000000000..b82dd3b6f7f7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AllConnectionStringsOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AllConnectionStringsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AllConnectionStrings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The high. + */ + java.lang.String getHigh(); + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for high. + */ + com.google.protobuf.ByteString getHighBytes(); + + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The low. + */ + java.lang.String getLow(); + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for low. + */ + com.google.protobuf.ByteString getLowBytes(); + + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The medium. + */ + java.lang.String getMedium(); + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for medium. + */ + com.google.protobuf.ByteString getMediumBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java new file mode 100644 index 000000000000..4a1510b8db56 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java @@ -0,0 +1,2714 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Autonomous Database resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabase} + */ +public final class AutonomousDatabase extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabase) + AutonomousDatabaseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabase.newBuilder() to construct. + private AutonomousDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabase() { + name_ = ""; + database_ = ""; + displayName_ = ""; + entitlementId_ = ""; + adminPassword_ = ""; + network_ = ""; + cidr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabase(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabase.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Autonomous Database resource in the following
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * 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 name of the Autonomous Database resource in the following
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * 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 DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + /** + * + * + *
+   * Optional. The name of the Autonomous Database. The database name must be
+   * unique in the project. The name must begin with a letter and can contain a
+   * maximum of 30 alphanumeric characters.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + 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(); + database_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the Autonomous Database. The database name must be
+   * unique in the project. The name must begin with a letter and can contain a
+   * maximum of 30 alphanumeric characters.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. The display name for the Autonomous Database. The name does not
+   * have to be unique within your project.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The display name for the Autonomous Database. The name does not
+   * have to be unique within your project.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITLEMENT_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + /** + * + * + *
+   * Output only. The ID of the subscription entitlement associated with the
+   * Autonomous Database.
+   * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The ID of the subscription entitlement associated with the
+   * Autonomous Database.
+   * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMIN_PASSWORD_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object adminPassword_ = ""; + /** + * + * + *
+   * Optional. The password for the default ADMIN user.
+   * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adminPassword. + */ + @java.lang.Override + public java.lang.String getAdminPassword() { + java.lang.Object ref = adminPassword_; + 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(); + adminPassword_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The password for the default ADMIN user.
+   * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adminPassword. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdminPasswordBytes() { + java.lang.Object ref = adminPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adminPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 7; + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties_; + /** + * + * + *
+   * Optional. The properties of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The properties of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.getDefaultInstance() + : properties_; + } + /** + * + * + *
+   * Optional. The properties of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.getDefaultInstance() + : properties_; + } + + public static final int LABELS_FIELD_NUMBER = 8; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_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 or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.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 NETWORK_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Required. The name of the VPC network used by the Autonomous Database in
+   * the following format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the VPC network used by the Autonomous Database in
+   * the following format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidr_ = ""; + /** + * + * + *
+   * Required. The subnet CIDR range for the Autonmous Database.
+   * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidr. + */ + @java.lang.Override + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + 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(); + cidr_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The subnet CIDR range for the Autonmous Database.
+   * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The date and time that the Autonomous Database was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13 [(.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 date and time that the Autonomous Database was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13 [(.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 date and time that the Autonomous Database was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entitlementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminPassword_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, adminPassword_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getProperties()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, cidr_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getCreateTime()); + } + 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(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entitlementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminPassword_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, adminPassword_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProperties()); + } + 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(8, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, cidr_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + } + 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.oracledatabase.v1.AutonomousDatabase)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabase other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabase) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getEntitlementId().equals(other.getEntitlementId())) return false; + if (!getAdminPassword().equals(other.getAdminPassword())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getCidr().equals(other.getCidr())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + hash = (37 * hash) + ADMIN_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getAdminPassword().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + CIDR_FIELD_NUMBER; + hash = (53 * hash) + getCidr().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase 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.oracledatabase.v1.AutonomousDatabase parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase 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.oracledatabase.v1.AutonomousDatabase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase 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.oracledatabase.v1.AutonomousDatabase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase 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.oracledatabase.v1.AutonomousDatabase parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase 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.oracledatabase.v1.AutonomousDatabase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Autonomous Database resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabase} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabase) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabase.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.AutonomousDatabase.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + database_ = ""; + displayName_ = ""; + entitlementId_ = ""; + adminPassword_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + internalGetMutableLabels().clear(); + network_ = ""; + cidr_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabase build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabase buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabase result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabase(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.AutonomousDatabase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entitlementId_ = entitlementId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.adminPassword_ = adminPassword_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.cidr_ = cidr_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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.oracledatabase.v1.AutonomousDatabase) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AutonomousDatabase) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.AutonomousDatabase other) { + if (other == com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAdminPassword().isEmpty()) { + adminPassword_ = other.adminPassword_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCidr().isEmpty()) { + cidr_ = other.cidr_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + 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: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + adminPassword_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 106: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 + 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 name of the Autonomous Database resource in the following
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * 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 name of the Autonomous Database resource in the following
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * 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 name of the Autonomous Database resource in the following
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * 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 name of the Autonomous Database resource in the following
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * 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 name of the Autonomous Database resource in the following
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * 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 database_ = ""; + /** + * + * + *
+     * Optional. The name of the Autonomous Database. The database name must be
+     * unique in the project. The name must begin with a letter and can contain a
+     * maximum of 30 alphanumeric characters.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the Autonomous Database. The database name must be
+     * unique in the project. The name must begin with a letter and can contain a
+     * maximum of 30 alphanumeric characters.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the Autonomous Database. The database name must be
+     * unique in the project. The name must begin with a letter and can contain a
+     * maximum of 30 alphanumeric characters.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the Autonomous Database. The database name must be
+     * unique in the project. The name must begin with a letter and can contain a
+     * maximum of 30 alphanumeric characters.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the Autonomous Database. The database name must be
+     * unique in the project. The name must begin with a letter and can contain a
+     * maximum of 30 alphanumeric characters.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. The display name for the Autonomous Database. The name does not
+     * have to be unique within your project.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The display name for the Autonomous Database. The name does not
+     * have to be unique within your project.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The display name for the Autonomous Database. The name does not
+     * have to be unique within your project.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The display name for the Autonomous Database. The name does not
+     * have to be unique within your project.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The display name for the Autonomous Database. The name does not
+     * have to be unique within your project.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object entitlementId_ = ""; + /** + * + * + *
+     * Output only. The ID of the subscription entitlement associated with the
+     * Autonomous Database.
+     * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The ID of the subscription entitlement associated with the
+     * Autonomous Database.
+     * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The ID of the subscription entitlement associated with the
+     * Autonomous Database.
+     * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The ID of the subscription entitlement associated with the
+     * Autonomous Database.
+     * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The ID of the subscription entitlement associated with the
+     * Autonomous Database.
+     * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object adminPassword_ = ""; + /** + * + * + *
+     * Optional. The password for the default ADMIN user.
+     * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adminPassword. + */ + public java.lang.String getAdminPassword() { + java.lang.Object ref = adminPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adminPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The password for the default ADMIN user.
+     * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adminPassword. + */ + public com.google.protobuf.ByteString getAdminPasswordBytes() { + java.lang.Object ref = adminPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adminPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The password for the default ADMIN user.
+     * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The adminPassword to set. + * @return This builder for chaining. + */ + public Builder setAdminPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adminPassword_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The password for the default ADMIN user.
+     * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdminPassword() { + adminPassword_ = getDefaultInstance().getAdminPassword(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The password for the default ADMIN user.
+     * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for adminPassword to set. + * @return This builder for chaining. + */ + public Builder setAdminPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adminPassword_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder> + propertiesBuilder_; + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000020); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.getDefaultInstance() + : properties_; + } + } + /** + * + * + *
+     * Optional. The properties of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + 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 or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. The labels or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+     * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Required. The name of the VPC network used by the Autonomous Database in
+     * the following format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the VPC network used by the Autonomous Database in
+     * the following format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the VPC network used by the Autonomous Database in
+     * the following format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VPC network used by the Autonomous Database in
+     * the following format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VPC network used by the Autonomous Database in
+     * the following format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object cidr_ = ""; + /** + * + * + *
+     * Required. The subnet CIDR range for the Autonmous Database.
+     * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidr. + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The subnet CIDR range for the Autonmous Database.
+     * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidr. + */ + public com.google.protobuf.ByteString getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The subnet CIDR range for the Autonmous Database.
+     * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cidr to set. + * @return This builder for chaining. + */ + public Builder setCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidr_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subnet CIDR range for the Autonmous Database.
+     * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCidr() { + cidr_ = getDefaultInstance().getCidr(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subnet CIDR range for the Autonmous Database.
+     * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for cidr to set. + * @return This builder for chaining. + */ + public Builder setCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; + bitField0_ |= 0x00000100; + 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 date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. The date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.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 date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.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 date and time that the Autonomous Database was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 13 [(.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_; + } + + @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.oracledatabase.v1.AutonomousDatabase) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabase) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabase DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabase(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabase getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabase 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.oracledatabase.v1.AutonomousDatabase getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseApex.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseApex.java new file mode 100644 index 000000000000..cf8709222916 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseApex.java @@ -0,0 +1,810 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Oracle APEX Application Development.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseApex} + */ +public final class AutonomousDatabaseApex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseApex) + AutonomousDatabaseApexOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseApex.newBuilder() to construct. + private AutonomousDatabaseApex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseApex() { + apexVersion_ = ""; + ordsVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseApex(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder.class); + } + + public static final int APEX_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apexVersion_ = ""; + /** + * + * + *
+   * Output only. The Oracle APEX Application Development version.
+   * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apexVersion. + */ + @java.lang.Override + public java.lang.String getApexVersion() { + java.lang.Object ref = apexVersion_; + 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(); + apexVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Oracle APEX Application Development version.
+   * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apexVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApexVersionBytes() { + java.lang.Object ref = apexVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apexVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDS_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ordsVersion_ = ""; + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) version.
+   * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ordsVersion. + */ + @java.lang.Override + public java.lang.String getOrdsVersion() { + java.lang.Object ref = ordsVersion_; + 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(); + ordsVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) version.
+   * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ordsVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrdsVersionBytes() { + java.lang.Object ref = ordsVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ordsVersion_ = 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(apexVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apexVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordsVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ordsVersion_); + } + 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(apexVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apexVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordsVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ordsVersion_); + } + 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.oracledatabase.v1.AutonomousDatabaseApex)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex) obj; + + if (!getApexVersion().equals(other.getApexVersion())) return false; + if (!getOrdsVersion().equals(other.getOrdsVersion())) 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) + APEX_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApexVersion().hashCode(); + hash = (37 * hash) + ORDS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOrdsVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex 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.oracledatabase.v1.AutonomousDatabaseApex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex 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.oracledatabase.v1.AutonomousDatabaseApex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex 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.oracledatabase.v1.AutonomousDatabaseApex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex 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.oracledatabase.v1.AutonomousDatabaseApex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex 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.oracledatabase.v1.AutonomousDatabaseApex 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; + } + /** + * + * + *
+   * Oracle APEX Application Development.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseApex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseApex) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apexVersion_ = ""; + ordsVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apexVersion_ = apexVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ordsVersion_ = ordsVersion_; + } + } + + @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.oracledatabase.v1.AutonomousDatabaseApex) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex other) { + if (other == com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance()) + return this; + if (!other.getApexVersion().isEmpty()) { + apexVersion_ = other.apexVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrdsVersion().isEmpty()) { + ordsVersion_ = other.ordsVersion_; + 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: + { + apexVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ordsVersion_ = 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 apexVersion_ = ""; + /** + * + * + *
+     * Output only. The Oracle APEX Application Development version.
+     * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apexVersion. + */ + public java.lang.String getApexVersion() { + java.lang.Object ref = apexVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apexVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle APEX Application Development version.
+     * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apexVersion. + */ + public com.google.protobuf.ByteString getApexVersionBytes() { + java.lang.Object ref = apexVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apexVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle APEX Application Development version.
+     * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apexVersion to set. + * @return This builder for chaining. + */ + public Builder setApexVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apexVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle APEX Application Development version.
+     * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApexVersion() { + apexVersion_ = getDefaultInstance().getApexVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle APEX Application Development version.
+     * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apexVersion to set. + * @return This builder for chaining. + */ + public Builder setApexVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apexVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ordsVersion_ = ""; + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) version.
+     * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ordsVersion. + */ + public java.lang.String getOrdsVersion() { + java.lang.Object ref = ordsVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ordsVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) version.
+     * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ordsVersion. + */ + public com.google.protobuf.ByteString getOrdsVersionBytes() { + java.lang.Object ref = ordsVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ordsVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) version.
+     * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ordsVersion to set. + * @return This builder for chaining. + */ + public Builder setOrdsVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ordsVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) version.
+     * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOrdsVersion() { + ordsVersion_ = getDefaultInstance().getOrdsVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) version.
+     * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ordsVersion to set. + * @return This builder for chaining. + */ + public Builder setOrdsVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ordsVersion_ = 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.oracledatabase.v1.AutonomousDatabaseApex) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseApex) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseApex 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.oracledatabase.v1.AutonomousDatabaseApex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseApexOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseApexOrBuilder.java new file mode 100644 index 000000000000..d3ff409519db --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseApexOrBuilder.java @@ -0,0 +1,76 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseApexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseApex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The Oracle APEX Application Development version.
+   * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apexVersion. + */ + java.lang.String getApexVersion(); + /** + * + * + *
+   * Output only. The Oracle APEX Application Development version.
+   * 
+ * + * string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apexVersion. + */ + com.google.protobuf.ByteString getApexVersionBytes(); + + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) version.
+   * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ordsVersion. + */ + java.lang.String getOrdsVersion(); + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) version.
+   * 
+ * + * string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ordsVersion. + */ + com.google.protobuf.ByteString getOrdsVersionBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackup.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackup.java new file mode 100644 index 000000000000..8e305125cfc6 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackup.java @@ -0,0 +1,1690 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Autonomous Database Backup resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseBackup} + */ +public final class AutonomousDatabaseBackup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseBackup) + AutonomousDatabaseBackupOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseBackup.newBuilder() to construct. + private AutonomousDatabaseBackup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseBackup() { + name_ = ""; + autonomousDatabase_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseBackup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Backup resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+   * 
+ * + * 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 name of the Autonomous Database Backup resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+   * 
+ * + * 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 AUTONOMOUS_DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object autonomousDatabase_ = ""; + /** + * + * + *
+   * Required. The name of the Autonomous Database resource for which the backup
+   * is being created. Format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The autonomousDatabase. + */ + @java.lang.Override + public java.lang.String getAutonomousDatabase() { + java.lang.Object ref = autonomousDatabase_; + 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(); + autonomousDatabase_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Autonomous Database resource for which the backup
+   * is being created. Format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autonomousDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutonomousDatabaseBytes() { + java.lang.Object ref = autonomousDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. User friendly name for the Backup. The name does not have to be
+   * unique.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User friendly name for the Backup. The name does not have to be
+   * unique.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 4; + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties_; + /** + * + * + *
+   * Optional. Various properties of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Various properties of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.getDefaultInstance() + : properties_; + } + /** + * + * + *
+   * Optional. Various properties of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.getDefaultInstance() + : properties_; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_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. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.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. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.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. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.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); + } + + 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(autonomousDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, autonomousDatabase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getProperties()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + 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(autonomousDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, autonomousDatabase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProperties()); + } + 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(5, labels__); + } + 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.oracledatabase.v1.AutonomousDatabaseBackup)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAutonomousDatabase().equals(other.getAutonomousDatabase())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) 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) + AUTONOMOUS_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabase().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup 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.oracledatabase.v1.AutonomousDatabaseBackup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup 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.oracledatabase.v1.AutonomousDatabaseBackup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup 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.oracledatabase.v1.AutonomousDatabaseBackup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup 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.oracledatabase.v1.AutonomousDatabaseBackup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup 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.oracledatabase.v1.AutonomousDatabaseBackup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Autonomous Database Backup resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseBackup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseBackup) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + autonomousDatabase_ = ""; + displayName_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autonomousDatabase_ = autonomousDatabase_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + 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.oracledatabase.v1.AutonomousDatabaseBackup) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup other) { + if (other == com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAutonomousDatabase().isEmpty()) { + autonomousDatabase_ = other.autonomousDatabase_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + 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: + { + autonomousDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. The name of the Autonomous Database Backup resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+     * 
+ * + * 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 name of the Autonomous Database Backup resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+     * 
+ * + * 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 name of the Autonomous Database Backup resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+     * 
+ * + * 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 name of the Autonomous Database Backup resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+     * 
+ * + * 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 name of the Autonomous Database Backup resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+     * 
+ * + * 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 autonomousDatabase_ = ""; + /** + * + * + *
+     * Required. The name of the Autonomous Database resource for which the backup
+     * is being created. Format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The autonomousDatabase. + */ + public java.lang.String getAutonomousDatabase() { + java.lang.Object ref = autonomousDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autonomousDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database resource for which the backup
+     * is being created. Format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autonomousDatabase. + */ + public com.google.protobuf.ByteString getAutonomousDatabaseBytes() { + java.lang.Object ref = autonomousDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database resource for which the backup
+     * is being created. Format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The autonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setAutonomousDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autonomousDatabase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Autonomous Database resource for which the backup
+     * is being created. Format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAutonomousDatabase() { + autonomousDatabase_ = getDefaultInstance().getAutonomousDatabase(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Autonomous Database resource for which the backup
+     * is being created. Format:
+     * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+     * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for autonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setAutonomousDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autonomousDatabase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. User friendly name for the Backup. The name does not have to be
+     * unique.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for the Backup. The name does not have to be
+     * unique.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for the Backup. The name does not have to be
+     * unique.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for the Backup. The name does not have to be
+     * unique.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for the Backup. The name does not have to be
+     * unique.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder> + propertiesBuilder_; + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + .getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000008); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + .getDefaultInstance() + : properties_; + } + } + /** + * + * + *
+     * Optional. Various properties of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + 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_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.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. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.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. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.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_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.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_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.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_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + 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.oracledatabase.v1.AutonomousDatabaseBackup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseBackup) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseBackup 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.oracledatabase.v1.AutonomousDatabaseBackup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java new file mode 100644 index 000000000000..27a4661aaa32 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java @@ -0,0 +1,240 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 AutonomousDatabaseBackupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTONOMOUS_DATABASE_BACKUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autonomousDatabaseBackups/{autonomous_database_backup}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autonomousDatabaseBackup; + + @Deprecated + protected AutonomousDatabaseBackupName() { + project = null; + location = null; + autonomousDatabaseBackup = null; + } + + private AutonomousDatabaseBackupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autonomousDatabaseBackup = Preconditions.checkNotNull(builder.getAutonomousDatabaseBackup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDatabaseBackup() { + return autonomousDatabaseBackup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AutonomousDatabaseBackupName of( + String project, String location, String autonomousDatabaseBackup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDatabaseBackup(autonomousDatabaseBackup) + .build(); + } + + public static String format(String project, String location, String autonomousDatabaseBackup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDatabaseBackup(autonomousDatabaseBackup) + .build() + .toString(); + } + + public static AutonomousDatabaseBackupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTONOMOUS_DATABASE_BACKUP.validatedMatch( + formattedString, + "AutonomousDatabaseBackupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("autonomous_database_backup")); + } + + 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 (AutonomousDatabaseBackupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTONOMOUS_DATABASE_BACKUP.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 (autonomousDatabaseBackup != null) { + fieldMapBuilder.put("autonomous_database_backup", autonomousDatabaseBackup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTONOMOUS_DATABASE_BACKUP.instantiate( + "project", + project, + "location", + location, + "autonomous_database_backup", + autonomousDatabaseBackup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AutonomousDatabaseBackupName that = ((AutonomousDatabaseBackupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.autonomousDatabaseBackup, that.autonomousDatabaseBackup); + } + 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(autonomousDatabaseBackup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/autonomousDatabaseBackups/{autonomous_database_backup}. + */ + public static class Builder { + private String project; + private String location; + private String autonomousDatabaseBackup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDatabaseBackup() { + return autonomousDatabaseBackup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutonomousDatabaseBackup(String autonomousDatabaseBackup) { + this.autonomousDatabaseBackup = autonomousDatabaseBackup; + return this; + } + + private Builder(AutonomousDatabaseBackupName autonomousDatabaseBackupName) { + this.project = autonomousDatabaseBackupName.project; + this.location = autonomousDatabaseBackupName.location; + this.autonomousDatabaseBackup = autonomousDatabaseBackupName.autonomousDatabaseBackup; + } + + public AutonomousDatabaseBackupName build() { + return new AutonomousDatabaseBackupName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupOrBuilder.java new file mode 100644 index 000000000000..b0a8a1332098 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupOrBuilder.java @@ -0,0 +1,215 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseBackupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseBackup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Backup resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Backup resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The name of the Autonomous Database resource for which the backup
+   * is being created. Format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The autonomousDatabase. + */ + java.lang.String getAutonomousDatabase(); + /** + * + * + *
+   * Required. The name of the Autonomous Database resource for which the backup
+   * is being created. Format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * + * string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autonomousDatabase. + */ + com.google.protobuf.ByteString getAutonomousDatabaseBytes(); + + /** + * + * + *
+   * Optional. User friendly name for the Backup. The name does not have to be
+   * unique.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. User friendly name for the Backup. The name does not have to be
+   * unique.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Various properties of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * + * + *
+   * Optional. Various properties of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties getProperties(); + /** + * + * + *
+   * Optional. Various properties of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder + getPropertiesOrBuilder(); + + /** + * + * + *
+   * Optional. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupProperties.java new file mode 100644 index 000000000000..0b4ce4f19129 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupProperties.java @@ -0,0 +1,4346 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Properties of the Autonomous Database Backup resource.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties} + */ +public final class AutonomousDatabaseBackupProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties) + AutonomousDatabaseBackupPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseBackupProperties.newBuilder() to construct. + private AutonomousDatabaseBackupProperties( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseBackupProperties() { + ocid_ = ""; + compartmentId_ = ""; + dbVersion_ = ""; + keyStoreId_ = ""; + keyStoreWallet_ = ""; + kmsKeyId_ = ""; + kmsKeyVersionId_ = ""; + lifecycleDetails_ = ""; + lifecycleState_ = 0; + type_ = 0; + vaultId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseBackupProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder.class); + } + + /** + * + * + *
+   * // The various lifecycle states of the Autonomous Database Backup.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Indicates that the resource is in creating state.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * Indicates that the resource is in active state.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * Indicates that the resource is in deleting state.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
+     * Indicates that the resource is in deleted state.
+     * 
+ * + * DELETED = 4; + */ + DELETED(4), + /** + * + * + *
+     * Indicates that the resource is in failed state.
+     * 
+ * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
+     * Indicates that the resource is in updating state.
+     * 
+ * + * UPDATING = 7; + */ + UPDATING(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Indicates that the resource is in creating state.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * Indicates that the resource is in active state.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * Indicates that the resource is in deleting state.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
+     * Indicates that the resource is in deleted state.
+     * 
+ * + * DELETED = 4; + */ + public static final int DELETED_VALUE = 4; + /** + * + * + *
+     * Indicates that the resource is in failed state.
+     * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * + * + *
+     * Indicates that the resource is in updating state.
+     * 
+ * + * UPDATING = 7; + */ + public static final int UPDATING_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return DELETED; + case 6: + return FAILED; + case 7: + return UPDATING; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.AutonomousDatabaseBackupProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State) + } + + /** + * + * + *
+   * The type of the backup.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Incremental backups.
+     * 
+ * + * INCREMENTAL = 1; + */ + INCREMENTAL(1), + /** + * + * + *
+     * Full backups.
+     * 
+ * + * FULL = 2; + */ + FULL(2), + /** + * + * + *
+     * Long term backups.
+     * 
+ * + * LONG_TERM = 3; + */ + LONG_TERM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Incremental backups.
+     * 
+ * + * INCREMENTAL = 1; + */ + public static final int INCREMENTAL_VALUE = 1; + /** + * + * + *
+     * Full backups.
+     * 
+ * + * FULL = 2; + */ + public static final int FULL_VALUE = 2; + /** + * + * + *
+     * Long term backups.
+     * 
+ * + * LONG_TERM = 3; + */ + public static final int LONG_TERM_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 INCREMENTAL; + case 2: + return FULL; + case 3: + return LONG_TERM; + 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.oracledatabase.v1.AutonomousDatabaseBackupProperties.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.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type) + } + + private int bitField0_; + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + /** + * + * + *
+   * Output only. OCID of the Autonomous Database backup.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCID of the Autonomous Database backup.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETENTION_PERIOD_DAYS_FIELD_NUMBER = 2; + private int retentionPeriodDays_ = 0; + /** + * + * + *
+   * Optional. Retention period in days for the backup.
+   * 
+ * + * int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionPeriodDays. + */ + @java.lang.Override + public int getRetentionPeriodDays() { + return retentionPeriodDays_; + } + + public static final int COMPARTMENT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object compartmentId_ = ""; + /** + * + * + *
+   * Output only. The OCID of the compartment.
+   * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compartmentId. + */ + @java.lang.Override + public java.lang.String getCompartmentId() { + java.lang.Object ref = compartmentId_; + 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(); + compartmentId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The OCID of the compartment.
+   * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for compartmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompartmentIdBytes() { + java.lang.Object ref = compartmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compartmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_SIZE_TB_FIELD_NUMBER = 4; + private float databaseSizeTb_ = 0F; + /** + * + * + *
+   * Output only. The quantity of data in the database, in terabytes.
+   * 
+ * + * float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseSizeTb. + */ + @java.lang.Override + public float getDatabaseSizeTb() { + return databaseSizeTb_; + } + + public static final int DB_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbVersion_ = ""; + /** + * + * + *
+   * Output only. A valid Oracle Database version for Autonomous Database.
+   * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dbVersion. + */ + @java.lang.Override + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + 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(); + dbVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A valid Oracle Database version for Autonomous Database.
+   * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dbVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_LONG_TERM_BACKUP_FIELD_NUMBER = 6; + private boolean isLongTermBackup_ = false; + /** + * + * + *
+   * Output only. Indicates if the backup is long term backup.
+   * 
+ * + * bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isLongTermBackup. + */ + @java.lang.Override + public boolean getIsLongTermBackup() { + return isLongTermBackup_; + } + + public static final int IS_AUTOMATIC_BACKUP_FIELD_NUMBER = 7; + private boolean isAutomaticBackup_ = false; + /** + * + * + *
+   * Output only. Indicates if the backup is automatic or user initiated.
+   * 
+ * + * bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAutomaticBackup. + */ + @java.lang.Override + public boolean getIsAutomaticBackup() { + return isAutomaticBackup_; + } + + public static final int IS_RESTORABLE_FIELD_NUMBER = 8; + private boolean isRestorable_ = false; + /** + * + * + *
+   * Output only. Indicates if the backup can be used to restore the Autonomous
+   * Database.
+   * 
+ * + * bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRestorable. + */ + @java.lang.Override + public boolean getIsRestorable() { + return isRestorable_; + } + + public static final int KEY_STORE_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyStoreId_ = ""; + /** + * + * + *
+   * Optional. The OCID of the key store of Oracle Vault.
+   * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyStoreId. + */ + @java.lang.Override + public java.lang.String getKeyStoreId() { + java.lang.Object ref = keyStoreId_; + 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(); + keyStoreId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The OCID of the key store of Oracle Vault.
+   * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyStoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyStoreIdBytes() { + java.lang.Object ref = keyStoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_STORE_WALLET_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyStoreWallet_ = ""; + /** + * + * + *
+   * Optional. The wallet name for Oracle Key Vault.
+   * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyStoreWallet. + */ + @java.lang.Override + public java.lang.String getKeyStoreWallet() { + java.lang.Object ref = keyStoreWallet_; + 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(); + keyStoreWallet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The wallet name for Oracle Key Vault.
+   * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyStoreWallet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyStoreWalletBytes() { + java.lang.Object ref = keyStoreWallet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyStoreWallet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_ID_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyId_ = ""; + /** + * + * + *
+   * Optional. The OCID of the key container that is used as the master
+   * encryption key in database transparent data encryption (TDE) operations.
+   * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyId. + */ + @java.lang.Override + public java.lang.String getKmsKeyId() { + java.lang.Object ref = kmsKeyId_; + 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(); + kmsKeyId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The OCID of the key container that is used as the master
+   * encryption key in database transparent data encryption (TDE) operations.
+   * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyIdBytes() { + java.lang.Object ref = kmsKeyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_VERSION_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyVersionId_ = ""; + /** + * + * + *
+   * Optional. The OCID of the key container version that is used in database
+   * transparent data encryption (TDE) operations KMS Key can have multiple key
+   * versions. If none is specified, the current key version (latest) of the Key
+   * Id is used for the operation. Autonomous Database Serverless does not use
+   * key versions, hence is not applicable for Autonomous Database Serverless
+   * instances.
+   * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyVersionId. + */ + @java.lang.Override + public java.lang.String getKmsKeyVersionId() { + java.lang.Object ref = kmsKeyVersionId_; + 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(); + kmsKeyVersionId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The OCID of the key container version that is used in database
+   * transparent data encryption (TDE) operations KMS Key can have multiple key
+   * versions. If none is specified, the current key version (latest) of the Key
+   * Id is used for the operation. Autonomous Database Serverless does not use
+   * key versions, hence is not applicable for Autonomous Database Serverless
+   * instances.
+   * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyVersionIdBytes() { + java.lang.Object ref = kmsKeyVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIFECYCLE_DETAILS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object lifecycleDetails_ = ""; + /** + * + * + *
+   * Output only. Additional information about the current lifecycle state.
+   * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + @java.lang.Override + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + 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(); + lifecycleDetails_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Additional information about the current lifecycle state.
+   * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 14; + private int lifecycleState_ = 0; + /** + * + * + *
+   * Output only. The lifecycle state of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + /** + * + * + *
+   * Output only. The lifecycle state of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State + getLifecycleState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State.forNumber( + lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State.UNRECOGNIZED + : result; + } + + public static final int SIZE_TB_FIELD_NUMBER = 15; + private float sizeTb_ = 0F; + /** + * + * + *
+   * Output only. The backup size in terabytes.
+   * 
+ * + * float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeTb. + */ + @java.lang.Override + public float getSizeTb() { + return sizeTb_; + } + + public static final int AVAILABLE_TILL_TIME_FIELD_NUMBER = 16; + private com.google.protobuf.Timestamp availableTillTime_; + /** + * + * + *
+   * Output only. Timestamp until when the backup will be available.
+   * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the availableTillTime field is set. + */ + @java.lang.Override + public boolean hasAvailableTillTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp until when the backup will be available.
+   * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableTillTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAvailableTillTime() { + return availableTillTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : availableTillTime_; + } + /** + * + * + *
+   * Output only. Timestamp until when the backup will be available.
+   * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAvailableTillTimeOrBuilder() { + return availableTillTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : availableTillTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 17; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The date and time the backup completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The date and time the backup completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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_; + } + /** + * + * + *
+   * Output only. The date and time the backup completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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 START_TIME_FIELD_NUMBER = 18; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. The date and time the backup started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. The date and time the backup started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 18 [(.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_; + } + /** + * + * + *
+   * Output only. The date and time the backup started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 18 [(.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 TYPE_FIELD_NUMBER = 19; + private int type_ = 0; + /** + * + * + *
+   * Output only. The type of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Output only. The type of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type getType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type.forNumber(type_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type.UNRECOGNIZED + : result; + } + + public static final int VAULT_ID_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object vaultId_ = ""; + /** + * + * + *
+   * Optional. The OCID of the vault.
+   * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vaultId. + */ + @java.lang.Override + public java.lang.String getVaultId() { + java.lang.Object ref = vaultId_; + 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(); + vaultId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The OCID of the vault.
+   * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vaultId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVaultIdBytes() { + java.lang.Object ref = vaultId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vaultId_ = 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(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (retentionPeriodDays_ != 0) { + output.writeInt32(2, retentionPeriodDays_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compartmentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, compartmentId_); + } + if (java.lang.Float.floatToRawIntBits(databaseSizeTb_) != 0) { + output.writeFloat(4, databaseSizeTb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dbVersion_); + } + if (isLongTermBackup_ != false) { + output.writeBool(6, isLongTermBackup_); + } + if (isAutomaticBackup_ != false) { + output.writeBool(7, isAutomaticBackup_); + } + if (isRestorable_ != false) { + output.writeBool(8, isRestorable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyStoreId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, keyStoreId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyStoreWallet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, keyStoreWallet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, kmsKeyId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, kmsKeyVersionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, lifecycleDetails_); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, lifecycleState_); + } + if (java.lang.Float.floatToRawIntBits(sizeTb_) != 0) { + output.writeFloat(15, sizeTb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(16, getAvailableTillTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(17, getEndTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(18, getStartTime()); + } + if (type_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type + .TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(19, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaultId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, vaultId_); + } + 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(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (retentionPeriodDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, retentionPeriodDays_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compartmentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, compartmentId_); + } + if (java.lang.Float.floatToRawIntBits(databaseSizeTb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, databaseSizeTb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dbVersion_); + } + if (isLongTermBackup_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isLongTermBackup_); + } + if (isAutomaticBackup_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, isAutomaticBackup_); + } + if (isRestorable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, isRestorable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyStoreId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, keyStoreId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyStoreWallet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, keyStoreWallet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, kmsKeyId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, kmsKeyVersionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, lifecycleDetails_); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, lifecycleState_); + } + if (java.lang.Float.floatToRawIntBits(sizeTb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(15, sizeTb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getAvailableTillTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEndTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStartTime()); + } + if (type_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type + .TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaultId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, vaultId_); + } + 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.oracledatabase.v1.AutonomousDatabaseBackupProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (getRetentionPeriodDays() != other.getRetentionPeriodDays()) return false; + if (!getCompartmentId().equals(other.getCompartmentId())) return false; + if (java.lang.Float.floatToIntBits(getDatabaseSizeTb()) + != java.lang.Float.floatToIntBits(other.getDatabaseSizeTb())) return false; + if (!getDbVersion().equals(other.getDbVersion())) return false; + if (getIsLongTermBackup() != other.getIsLongTermBackup()) return false; + if (getIsAutomaticBackup() != other.getIsAutomaticBackup()) return false; + if (getIsRestorable() != other.getIsRestorable()) return false; + if (!getKeyStoreId().equals(other.getKeyStoreId())) return false; + if (!getKeyStoreWallet().equals(other.getKeyStoreWallet())) return false; + if (!getKmsKeyId().equals(other.getKmsKeyId())) return false; + if (!getKmsKeyVersionId().equals(other.getKmsKeyVersionId())) return false; + if (!getLifecycleDetails().equals(other.getLifecycleDetails())) return false; + if (lifecycleState_ != other.lifecycleState_) return false; + if (java.lang.Float.floatToIntBits(getSizeTb()) + != java.lang.Float.floatToIntBits(other.getSizeTb())) return false; + if (hasAvailableTillTime() != other.hasAvailableTillTime()) return false; + if (hasAvailableTillTime()) { + if (!getAvailableTillTime().equals(other.getAvailableTillTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (type_ != other.type_) return false; + if (!getVaultId().equals(other.getVaultId())) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + RETENTION_PERIOD_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getRetentionPeriodDays(); + hash = (37 * hash) + COMPARTMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCompartmentId().hashCode(); + hash = (37 * hash) + DATABASE_SIZE_TB_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDatabaseSizeTb()); + hash = (37 * hash) + DB_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDbVersion().hashCode(); + hash = (37 * hash) + IS_LONG_TERM_BACKUP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLongTermBackup()); + hash = (37 * hash) + IS_AUTOMATIC_BACKUP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAutomaticBackup()); + hash = (37 * hash) + IS_RESTORABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRestorable()); + hash = (37 * hash) + KEY_STORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getKeyStoreId().hashCode(); + hash = (37 * hash) + KEY_STORE_WALLET_FIELD_NUMBER; + hash = (53 * hash) + getKeyStoreWallet().hashCode(); + hash = (37 * hash) + KMS_KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyId().hashCode(); + hash = (37 * hash) + KMS_KEY_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyVersionId().hashCode(); + hash = (37 * hash) + LIFECYCLE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLifecycleDetails().hashCode(); + hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + lifecycleState_; + hash = (37 * hash) + SIZE_TB_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSizeTb()); + if (hasAvailableTillTime()) { + hash = (37 * hash) + AVAILABLE_TILL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getAvailableTillTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VAULT_ID_FIELD_NUMBER; + hash = (53 * hash) + getVaultId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties 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.oracledatabase.v1.AutonomousDatabaseBackupProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties 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.oracledatabase.v1.AutonomousDatabaseBackupProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties 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.oracledatabase.v1.AutonomousDatabaseBackupProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + 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.oracledatabase.v1.AutonomousDatabaseBackupProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties 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.oracledatabase.v1.AutonomousDatabaseBackupProperties 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; + } + /** + * + * + *
+   * Properties of the Autonomous Database Backup resource.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAvailableTillTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ocid_ = ""; + retentionPeriodDays_ = 0; + compartmentId_ = ""; + databaseSizeTb_ = 0F; + dbVersion_ = ""; + isLongTermBackup_ = false; + isAutomaticBackup_ = false; + isRestorable_ = false; + keyStoreId_ = ""; + keyStoreWallet_ = ""; + kmsKeyId_ = ""; + kmsKeyVersionId_ = ""; + lifecycleDetails_ = ""; + lifecycleState_ = 0; + sizeTb_ = 0F; + availableTillTime_ = null; + if (availableTillTimeBuilder_ != null) { + availableTillTimeBuilder_.dispose(); + availableTillTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + type_ = 0; + vaultId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retentionPeriodDays_ = retentionPeriodDays_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.compartmentId_ = compartmentId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.databaseSizeTb_ = databaseSizeTb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dbVersion_ = dbVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isLongTermBackup_ = isLongTermBackup_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isAutomaticBackup_ = isAutomaticBackup_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isRestorable_ = isRestorable_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.keyStoreId_ = keyStoreId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.keyStoreWallet_ = keyStoreWallet_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.kmsKeyId_ = kmsKeyId_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.kmsKeyVersionId_ = kmsKeyVersionId_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.lifecycleDetails_ = lifecycleDetails_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.lifecycleState_ = lifecycleState_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.sizeTb_ = sizeTb_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00008000) != 0)) { + result.availableTillTime_ = + availableTillTimeBuilder_ == null + ? availableTillTime_ + : availableTillTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.vaultId_ = vaultId_; + } + 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.oracledatabase.v1.AutonomousDatabaseBackupProperties) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties other) { + if (other + == com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + .getDefaultInstance()) return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getRetentionPeriodDays() != 0) { + setRetentionPeriodDays(other.getRetentionPeriodDays()); + } + if (!other.getCompartmentId().isEmpty()) { + compartmentId_ = other.compartmentId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getDatabaseSizeTb() != 0F) { + setDatabaseSizeTb(other.getDatabaseSizeTb()); + } + if (!other.getDbVersion().isEmpty()) { + dbVersion_ = other.dbVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getIsLongTermBackup() != false) { + setIsLongTermBackup(other.getIsLongTermBackup()); + } + if (other.getIsAutomaticBackup() != false) { + setIsAutomaticBackup(other.getIsAutomaticBackup()); + } + if (other.getIsRestorable() != false) { + setIsRestorable(other.getIsRestorable()); + } + if (!other.getKeyStoreId().isEmpty()) { + keyStoreId_ = other.keyStoreId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getKeyStoreWallet().isEmpty()) { + keyStoreWallet_ = other.keyStoreWallet_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getKmsKeyId().isEmpty()) { + kmsKeyId_ = other.kmsKeyId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getKmsKeyVersionId().isEmpty()) { + kmsKeyVersionId_ = other.kmsKeyVersionId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getLifecycleDetails().isEmpty()) { + lifecycleDetails_ = other.lifecycleDetails_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.lifecycleState_ != 0) { + setLifecycleStateValue(other.getLifecycleStateValue()); + } + if (other.getSizeTb() != 0F) { + setSizeTb(other.getSizeTb()); + } + if (other.hasAvailableTillTime()) { + mergeAvailableTillTime(other.getAvailableTillTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getVaultId().isEmpty()) { + vaultId_ = other.vaultId_; + bitField0_ |= 0x00080000; + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + retentionPeriodDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + compartmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + databaseSizeTb_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 42: + { + dbVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + isLongTermBackup_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + isAutomaticBackup_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + isRestorable_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + keyStoreId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + keyStoreWallet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + kmsKeyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + kmsKeyVersionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + lifecycleDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 125: + { + sizeTb_ = input.readFloat(); + bitField0_ |= 0x00004000; + break; + } // case 125 + case 130: + { + input.readMessage( + getAvailableTillTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 152: + { + type_ = input.readEnum(); + bitField0_ |= 0x00040000; + break; + } // case 152 + case 162: + { + vaultId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 162 + 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 ocid_ = ""; + /** + * + * + *
+     * Output only. OCID of the Autonomous Database backup.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database backup.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database backup.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database backup.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database backup.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int retentionPeriodDays_; + /** + * + * + *
+     * Optional. Retention period in days for the backup.
+     * 
+ * + * int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionPeriodDays. + */ + @java.lang.Override + public int getRetentionPeriodDays() { + return retentionPeriodDays_; + } + /** + * + * + *
+     * Optional. Retention period in days for the backup.
+     * 
+ * + * int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The retentionPeriodDays to set. + * @return This builder for chaining. + */ + public Builder setRetentionPeriodDays(int value) { + + retentionPeriodDays_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retention period in days for the backup.
+     * 
+ * + * int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRetentionPeriodDays() { + bitField0_ = (bitField0_ & ~0x00000002); + retentionPeriodDays_ = 0; + onChanged(); + return this; + } + + private java.lang.Object compartmentId_ = ""; + /** + * + * + *
+     * Output only. The OCID of the compartment.
+     * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compartmentId. + */ + public java.lang.String getCompartmentId() { + java.lang.Object ref = compartmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compartmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The OCID of the compartment.
+     * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for compartmentId. + */ + public com.google.protobuf.ByteString getCompartmentIdBytes() { + java.lang.Object ref = compartmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compartmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The OCID of the compartment.
+     * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The compartmentId to set. + * @return This builder for chaining. + */ + public Builder setCompartmentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + compartmentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The OCID of the compartment.
+     * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCompartmentId() { + compartmentId_ = getDefaultInstance().getCompartmentId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The OCID of the compartment.
+     * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for compartmentId to set. + * @return This builder for chaining. + */ + public Builder setCompartmentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + compartmentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private float databaseSizeTb_; + /** + * + * + *
+     * Output only. The quantity of data in the database, in terabytes.
+     * 
+ * + * float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseSizeTb. + */ + @java.lang.Override + public float getDatabaseSizeTb() { + return databaseSizeTb_; + } + /** + * + * + *
+     * Output only. The quantity of data in the database, in terabytes.
+     * 
+ * + * float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The databaseSizeTb to set. + * @return This builder for chaining. + */ + public Builder setDatabaseSizeTb(float value) { + + databaseSizeTb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The quantity of data in the database, in terabytes.
+     * 
+ * + * float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseSizeTb() { + bitField0_ = (bitField0_ & ~0x00000008); + databaseSizeTb_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object dbVersion_ = ""; + /** + * + * + *
+     * Output only. A valid Oracle Database version for Autonomous Database.
+     * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dbVersion. + */ + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A valid Oracle Database version for Autonomous Database.
+     * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dbVersion. + */ + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A valid Oracle Database version for Autonomous Database.
+     * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A valid Oracle Database version for Autonomous Database.
+     * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDbVersion() { + dbVersion_ = getDefaultInstance().getDbVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A valid Oracle Database version for Autonomous Database.
+     * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean isLongTermBackup_; + /** + * + * + *
+     * Output only. Indicates if the backup is long term backup.
+     * 
+ * + * bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isLongTermBackup. + */ + @java.lang.Override + public boolean getIsLongTermBackup() { + return isLongTermBackup_; + } + /** + * + * + *
+     * Output only. Indicates if the backup is long term backup.
+     * 
+ * + * bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isLongTermBackup to set. + * @return This builder for chaining. + */ + public Builder setIsLongTermBackup(boolean value) { + + isLongTermBackup_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the backup is long term backup.
+     * 
+ * + * bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsLongTermBackup() { + bitField0_ = (bitField0_ & ~0x00000020); + isLongTermBackup_ = false; + onChanged(); + return this; + } + + private boolean isAutomaticBackup_; + /** + * + * + *
+     * Output only. Indicates if the backup is automatic or user initiated.
+     * 
+ * + * bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAutomaticBackup. + */ + @java.lang.Override + public boolean getIsAutomaticBackup() { + return isAutomaticBackup_; + } + /** + * + * + *
+     * Output only. Indicates if the backup is automatic or user initiated.
+     * 
+ * + * bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isAutomaticBackup to set. + * @return This builder for chaining. + */ + public Builder setIsAutomaticBackup(boolean value) { + + isAutomaticBackup_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the backup is automatic or user initiated.
+     * 
+ * + * bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsAutomaticBackup() { + bitField0_ = (bitField0_ & ~0x00000040); + isAutomaticBackup_ = false; + onChanged(); + return this; + } + + private boolean isRestorable_; + /** + * + * + *
+     * Output only. Indicates if the backup can be used to restore the Autonomous
+     * Database.
+     * 
+ * + * bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRestorable. + */ + @java.lang.Override + public boolean getIsRestorable() { + return isRestorable_; + } + /** + * + * + *
+     * Output only. Indicates if the backup can be used to restore the Autonomous
+     * Database.
+     * 
+ * + * bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isRestorable to set. + * @return This builder for chaining. + */ + public Builder setIsRestorable(boolean value) { + + isRestorable_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the backup can be used to restore the Autonomous
+     * Database.
+     * 
+ * + * bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsRestorable() { + bitField0_ = (bitField0_ & ~0x00000080); + isRestorable_ = false; + onChanged(); + return this; + } + + private java.lang.Object keyStoreId_ = ""; + /** + * + * + *
+     * Optional. The OCID of the key store of Oracle Vault.
+     * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyStoreId. + */ + public java.lang.String getKeyStoreId() { + java.lang.Object ref = keyStoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyStoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the key store of Oracle Vault.
+     * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyStoreId. + */ + public com.google.protobuf.ByteString getKeyStoreIdBytes() { + java.lang.Object ref = keyStoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the key store of Oracle Vault.
+     * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keyStoreId to set. + * @return This builder for chaining. + */ + public Builder setKeyStoreId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyStoreId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the key store of Oracle Vault.
+     * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeyStoreId() { + keyStoreId_ = getDefaultInstance().getKeyStoreId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the key store of Oracle Vault.
+     * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for keyStoreId to set. + * @return This builder for chaining. + */ + public Builder setKeyStoreIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyStoreId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object keyStoreWallet_ = ""; + /** + * + * + *
+     * Optional. The wallet name for Oracle Key Vault.
+     * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyStoreWallet. + */ + public java.lang.String getKeyStoreWallet() { + java.lang.Object ref = keyStoreWallet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyStoreWallet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The wallet name for Oracle Key Vault.
+     * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyStoreWallet. + */ + public com.google.protobuf.ByteString getKeyStoreWalletBytes() { + java.lang.Object ref = keyStoreWallet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyStoreWallet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The wallet name for Oracle Key Vault.
+     * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keyStoreWallet to set. + * @return This builder for chaining. + */ + public Builder setKeyStoreWallet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyStoreWallet_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The wallet name for Oracle Key Vault.
+     * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeyStoreWallet() { + keyStoreWallet_ = getDefaultInstance().getKeyStoreWallet(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The wallet name for Oracle Key Vault.
+     * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for keyStoreWallet to set. + * @return This builder for chaining. + */ + public Builder setKeyStoreWalletBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyStoreWallet_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyId_ = ""; + /** + * + * + *
+     * Optional. The OCID of the key container that is used as the master
+     * encryption key in database transparent data encryption (TDE) operations.
+     * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyId. + */ + public java.lang.String getKmsKeyId() { + java.lang.Object ref = kmsKeyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the key container that is used as the master
+     * encryption key in database transparent data encryption (TDE) operations.
+     * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyId. + */ + public com.google.protobuf.ByteString getKmsKeyIdBytes() { + java.lang.Object ref = kmsKeyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the key container that is used as the master
+     * encryption key in database transparent data encryption (TDE) operations.
+     * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kmsKeyId to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the key container that is used as the master
+     * encryption key in database transparent data encryption (TDE) operations.
+     * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyId() { + kmsKeyId_ = getDefaultInstance().getKmsKeyId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the key container that is used as the master
+     * encryption key in database transparent data encryption (TDE) operations.
+     * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kmsKeyId to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyVersionId_ = ""; + /** + * + * + *
+     * Optional. The OCID of the key container version that is used in database
+     * transparent data encryption (TDE) operations KMS Key can have multiple key
+     * versions. If none is specified, the current key version (latest) of the Key
+     * Id is used for the operation. Autonomous Database Serverless does not use
+     * key versions, hence is not applicable for Autonomous Database Serverless
+     * instances.
+     * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyVersionId. + */ + public java.lang.String getKmsKeyVersionId() { + java.lang.Object ref = kmsKeyVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the key container version that is used in database
+     * transparent data encryption (TDE) operations KMS Key can have multiple key
+     * versions. If none is specified, the current key version (latest) of the Key
+     * Id is used for the operation. Autonomous Database Serverless does not use
+     * key versions, hence is not applicable for Autonomous Database Serverless
+     * instances.
+     * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyVersionId. + */ + public com.google.protobuf.ByteString getKmsKeyVersionIdBytes() { + java.lang.Object ref = kmsKeyVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the key container version that is used in database
+     * transparent data encryption (TDE) operations KMS Key can have multiple key
+     * versions. If none is specified, the current key version (latest) of the Key
+     * Id is used for the operation. Autonomous Database Serverless does not use
+     * key versions, hence is not applicable for Autonomous Database Serverless
+     * instances.
+     * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kmsKeyVersionId to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyVersionId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the key container version that is used in database
+     * transparent data encryption (TDE) operations KMS Key can have multiple key
+     * versions. If none is specified, the current key version (latest) of the Key
+     * Id is used for the operation. Autonomous Database Serverless does not use
+     * key versions, hence is not applicable for Autonomous Database Serverless
+     * instances.
+     * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyVersionId() { + kmsKeyVersionId_ = getDefaultInstance().getKmsKeyVersionId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the key container version that is used in database
+     * transparent data encryption (TDE) operations KMS Key can have multiple key
+     * versions. If none is specified, the current key version (latest) of the Key
+     * Id is used for the operation. Autonomous Database Serverless does not use
+     * key versions, hence is not applicable for Autonomous Database Serverless
+     * instances.
+     * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kmsKeyVersionId to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyVersionId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object lifecycleDetails_ = ""; + /** + * + * + *
+     * Output only. Additional information about the current lifecycle state.
+     * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lifecycleDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Additional information about the current lifecycle state.
+     * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Additional information about the current lifecycle state.
+     * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lifecycleDetails_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Additional information about the current lifecycle state.
+     * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLifecycleDetails() { + lifecycleDetails_ = getDefaultInstance().getLifecycleDetails(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Additional information about the current lifecycle state.
+     * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lifecycleDetails_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private int lifecycleState_ = 0; + /** + * + * + *
+     * Output only. The lifecycle state of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + /** + * + * + *
+     * Output only. The lifecycle state of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleStateValue(int value) { + lifecycleState_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The lifecycle state of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State + getLifecycleState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State.forNumber( + lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The lifecycle state of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + lifecycleState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The lifecycle state of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + bitField0_ = (bitField0_ & ~0x00002000); + lifecycleState_ = 0; + onChanged(); + return this; + } + + private float sizeTb_; + /** + * + * + *
+     * Output only. The backup size in terabytes.
+     * 
+ * + * float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeTb. + */ + @java.lang.Override + public float getSizeTb() { + return sizeTb_; + } + /** + * + * + *
+     * Output only. The backup size in terabytes.
+     * 
+ * + * float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeTb to set. + * @return This builder for chaining. + */ + public Builder setSizeTb(float value) { + + sizeTb_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The backup size in terabytes.
+     * 
+ * + * float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeTb() { + bitField0_ = (bitField0_ & ~0x00004000); + sizeTb_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp availableTillTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + availableTillTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the availableTillTime field is set. + */ + public boolean hasAvailableTillTime() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableTillTime. + */ + public com.google.protobuf.Timestamp getAvailableTillTime() { + if (availableTillTimeBuilder_ == null) { + return availableTillTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : availableTillTime_; + } else { + return availableTillTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAvailableTillTime(com.google.protobuf.Timestamp value) { + if (availableTillTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + availableTillTime_ = value; + } else { + availableTillTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAvailableTillTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (availableTillTimeBuilder_ == null) { + availableTillTime_ = builderForValue.build(); + } else { + availableTillTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAvailableTillTime(com.google.protobuf.Timestamp value) { + if (availableTillTimeBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && availableTillTime_ != null + && availableTillTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getAvailableTillTimeBuilder().mergeFrom(value); + } else { + availableTillTime_ = value; + } + } else { + availableTillTimeBuilder_.mergeFrom(value); + } + if (availableTillTime_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAvailableTillTime() { + bitField0_ = (bitField0_ & ~0x00008000); + availableTillTime_ = null; + if (availableTillTimeBuilder_ != null) { + availableTillTimeBuilder_.dispose(); + availableTillTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getAvailableTillTimeBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getAvailableTillTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getAvailableTillTimeOrBuilder() { + if (availableTillTimeBuilder_ != null) { + return availableTillTimeBuilder_.getMessageOrBuilder(); + } else { + return availableTillTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : availableTillTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp until when the backup will be available.
+     * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getAvailableTillTimeFieldBuilder() { + if (availableTillTimeBuilder_ == null) { + availableTillTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getAvailableTillTime(), getParentForChildren(), isClean()); + availableTillTime_ = null; + } + return availableTillTimeBuilder_; + } + + 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_; + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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(); + } + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00010000); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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_; + } + } + /** + * + * + *
+     * Output only. The date and time the backup completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.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 com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.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(); + } + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.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_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.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_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00020000); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.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_; + } + } + /** + * + * + *
+     * Output only. The date and time the backup started.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 18 [(.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 int type_ = 0; + /** + * + * + *
+     * Output only. The type of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Output only. The type of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type getType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type.forNumber( + type_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The type of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of the backup.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00040000); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object vaultId_ = ""; + /** + * + * + *
+     * Optional. The OCID of the vault.
+     * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vaultId. + */ + public java.lang.String getVaultId() { + java.lang.Object ref = vaultId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vaultId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the vault.
+     * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vaultId. + */ + public com.google.protobuf.ByteString getVaultIdBytes() { + java.lang.Object ref = vaultId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vaultId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The OCID of the vault.
+     * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The vaultId to set. + * @return This builder for chaining. + */ + public Builder setVaultId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vaultId_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the vault.
+     * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVaultId() { + vaultId_ = getDefaultInstance().getVaultId(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The OCID of the vault.
+     * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for vaultId to set. + * @return This builder for chaining. + */ + public Builder setVaultIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vaultId_ = value; + bitField0_ |= 0x00080000; + 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.oracledatabase.v1.AutonomousDatabaseBackupProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseBackupProperties 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.oracledatabase.v1.AutonomousDatabaseBackupProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupPropertiesOrBuilder.java new file mode 100644 index 000000000000..182dcd88a5ed --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupPropertiesOrBuilder.java @@ -0,0 +1,519 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseBackupPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. OCID of the Autonomous Database backup.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + /** + * + * + *
+   * Output only. OCID of the Autonomous Database backup.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
+   * Optional. Retention period in days for the backup.
+   * 
+ * + * int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionPeriodDays. + */ + int getRetentionPeriodDays(); + + /** + * + * + *
+   * Output only. The OCID of the compartment.
+   * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compartmentId. + */ + java.lang.String getCompartmentId(); + /** + * + * + *
+   * Output only. The OCID of the compartment.
+   * 
+ * + * string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for compartmentId. + */ + com.google.protobuf.ByteString getCompartmentIdBytes(); + + /** + * + * + *
+   * Output only. The quantity of data in the database, in terabytes.
+   * 
+ * + * float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseSizeTb. + */ + float getDatabaseSizeTb(); + + /** + * + * + *
+   * Output only. A valid Oracle Database version for Autonomous Database.
+   * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dbVersion. + */ + java.lang.String getDbVersion(); + /** + * + * + *
+   * Output only. A valid Oracle Database version for Autonomous Database.
+   * 
+ * + * string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dbVersion. + */ + com.google.protobuf.ByteString getDbVersionBytes(); + + /** + * + * + *
+   * Output only. Indicates if the backup is long term backup.
+   * 
+ * + * bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isLongTermBackup. + */ + boolean getIsLongTermBackup(); + + /** + * + * + *
+   * Output only. Indicates if the backup is automatic or user initiated.
+   * 
+ * + * bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAutomaticBackup. + */ + boolean getIsAutomaticBackup(); + + /** + * + * + *
+   * Output only. Indicates if the backup can be used to restore the Autonomous
+   * Database.
+   * 
+ * + * bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRestorable. + */ + boolean getIsRestorable(); + + /** + * + * + *
+   * Optional. The OCID of the key store of Oracle Vault.
+   * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyStoreId. + */ + java.lang.String getKeyStoreId(); + /** + * + * + *
+   * Optional. The OCID of the key store of Oracle Vault.
+   * 
+ * + * string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyStoreId. + */ + com.google.protobuf.ByteString getKeyStoreIdBytes(); + + /** + * + * + *
+   * Optional. The wallet name for Oracle Key Vault.
+   * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyStoreWallet. + */ + java.lang.String getKeyStoreWallet(); + /** + * + * + *
+   * Optional. The wallet name for Oracle Key Vault.
+   * 
+ * + * string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyStoreWallet. + */ + com.google.protobuf.ByteString getKeyStoreWalletBytes(); + + /** + * + * + *
+   * Optional. The OCID of the key container that is used as the master
+   * encryption key in database transparent data encryption (TDE) operations.
+   * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyId. + */ + java.lang.String getKmsKeyId(); + /** + * + * + *
+   * Optional. The OCID of the key container that is used as the master
+   * encryption key in database transparent data encryption (TDE) operations.
+   * 
+ * + * string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyId. + */ + com.google.protobuf.ByteString getKmsKeyIdBytes(); + + /** + * + * + *
+   * Optional. The OCID of the key container version that is used in database
+   * transparent data encryption (TDE) operations KMS Key can have multiple key
+   * versions. If none is specified, the current key version (latest) of the Key
+   * Id is used for the operation. Autonomous Database Serverless does not use
+   * key versions, hence is not applicable for Autonomous Database Serverless
+   * instances.
+   * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyVersionId. + */ + java.lang.String getKmsKeyVersionId(); + /** + * + * + *
+   * Optional. The OCID of the key container version that is used in database
+   * transparent data encryption (TDE) operations KMS Key can have multiple key
+   * versions. If none is specified, the current key version (latest) of the Key
+   * Id is used for the operation. Autonomous Database Serverless does not use
+   * key versions, hence is not applicable for Autonomous Database Serverless
+   * instances.
+   * 
+ * + * string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyVersionId. + */ + com.google.protobuf.ByteString getKmsKeyVersionIdBytes(); + + /** + * + * + *
+   * Output only. Additional information about the current lifecycle state.
+   * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + java.lang.String getLifecycleDetails(); + /** + * + * + *
+   * Output only. Additional information about the current lifecycle state.
+   * 
+ * + * string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + com.google.protobuf.ByteString getLifecycleDetailsBytes(); + + /** + * + * + *
+   * Output only. The lifecycle state of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + int getLifecycleStateValue(); + /** + * + * + *
+   * Output only. The lifecycle state of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State getLifecycleState(); + + /** + * + * + *
+   * Output only. The backup size in terabytes.
+   * 
+ * + * float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeTb. + */ + float getSizeTb(); + + /** + * + * + *
+   * Output only. Timestamp until when the backup will be available.
+   * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the availableTillTime field is set. + */ + boolean hasAvailableTillTime(); + /** + * + * + *
+   * Output only. Timestamp until when the backup will be available.
+   * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableTillTime. + */ + com.google.protobuf.Timestamp getAvailableTillTime(); + /** + * + * + *
+   * Output only. Timestamp until when the backup will be available.
+   * 
+ * + * + * .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getAvailableTillTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The date and time the backup completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The date and time the backup completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The date and time the backup completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The date and time the backup started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. The date and time the backup started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. The date and time the backup started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The type of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Output only. The type of the backup.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type getType(); + + /** + * + * + *
+   * Optional. The OCID of the vault.
+   * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vaultId. + */ + java.lang.String getVaultId(); + /** + * + * + *
+   * Optional. The OCID of the vault.
+   * 
+ * + * string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vaultId. + */ + com.google.protobuf.ByteString getVaultIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSet.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSet.java new file mode 100644 index 000000000000..0cbf9b23584f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSet.java @@ -0,0 +1,1182 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database_character_set.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Autonomous Database character set resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet} + */ +public final class AutonomousDatabaseCharacterSet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet) + AutonomousDatabaseCharacterSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseCharacterSet.newBuilder() to construct. + private AutonomousDatabaseCharacterSet( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseCharacterSet() { + name_ = ""; + characterSetType_ = 0; + characterSet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseCharacterSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseCharacterSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseCharacterSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder.class); + } + + /** + * + * + *
+   * The type of character set an Autonomous Database can have.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType} + */ + public enum CharacterSetType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Character set type is not specified.
+     * 
+ * + * CHARACTER_SET_TYPE_UNSPECIFIED = 0; + */ + CHARACTER_SET_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Character set type is set to database.
+     * 
+ * + * DATABASE = 1; + */ + DATABASE(1), + /** + * + * + *
+     * Character set type is set to national.
+     * 
+ * + * NATIONAL = 2; + */ + NATIONAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Character set type is not specified.
+     * 
+ * + * CHARACTER_SET_TYPE_UNSPECIFIED = 0; + */ + public static final int CHARACTER_SET_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Character set type is set to database.
+     * 
+ * + * DATABASE = 1; + */ + public static final int DATABASE_VALUE = 1; + /** + * + * + *
+     * Character set type is set to national.
+     * 
+ * + * NATIONAL = 2; + */ + public static final int NATIONAL_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 CharacterSetType 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 CharacterSetType forNumber(int value) { + switch (value) { + case 0: + return CHARACTER_SET_TYPE_UNSPECIFIED; + case 1: + return DATABASE; + case 2: + return NATIONAL; + 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 CharacterSetType findValueByNumber(int number) { + return CharacterSetType.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.oracledatabase.v1.AutonomousDatabaseCharacterSet.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CharacterSetType[] VALUES = values(); + + public static CharacterSetType 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 CharacterSetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Character Set resource in
+   * the following format:
+   * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+   * 
+ * + * 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 name of the Autonomous Database Character Set resource in
+   * the following format:
+   * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+   * 
+ * + * 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 CHARACTER_SET_TYPE_FIELD_NUMBER = 2; + private int characterSetType_ = 0; + /** + * + * + *
+   * Output only. The character set type for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for characterSetType. + */ + @java.lang.Override + public int getCharacterSetTypeValue() { + return characterSetType_; + } + /** + * + * + *
+   * Output only. The character set type for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The characterSetType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + getCharacterSetType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + .forNumber(characterSetType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + .UNRECOGNIZED + : result; + } + + public static final int CHARACTER_SET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object characterSet_ = ""; + /** + * + * + *
+   * Output only. The character set name for the Autonomous Database which is
+   * the ID in the resource name.
+   * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The characterSet. + */ + @java.lang.Override + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + 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(); + characterSet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The character set name for the Autonomous Database which is
+   * the ID in the resource name.
+   * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for characterSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = 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_); + } + if (characterSetType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + .CHARACTER_SET_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, characterSetType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, characterSet_); + } + 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 (characterSetType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + .CHARACTER_SET_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, characterSetType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, characterSet_); + } + 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.oracledatabase.v1.AutonomousDatabaseCharacterSet)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet) obj; + + if (!getName().equals(other.getName())) return false; + if (characterSetType_ != other.characterSetType_) return false; + if (!getCharacterSet().equals(other.getCharacterSet())) 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) + CHARACTER_SET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + characterSetType_; + hash = (37 * hash) + CHARACTER_SET_FIELD_NUMBER; + hash = (53 * hash) + getCharacterSet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet 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.oracledatabase.v1.AutonomousDatabaseCharacterSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet 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.oracledatabase.v1.AutonomousDatabaseCharacterSet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet 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.oracledatabase.v1.AutonomousDatabaseCharacterSet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + 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.oracledatabase.v1.AutonomousDatabaseCharacterSet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet 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.oracledatabase.v1.AutonomousDatabaseCharacterSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Autonomous Database character set resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseCharacterSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseCharacterSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + characterSetType_ = 0; + characterSet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseCharacterSet_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.characterSetType_ = characterSetType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.characterSet_ = characterSet_; + } + } + + @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.oracledatabase.v1.AutonomousDatabaseCharacterSet) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet other) { + if (other + == com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.characterSetType_ != 0) { + setCharacterSetTypeValue(other.getCharacterSetTypeValue()); + } + if (!other.getCharacterSet().isEmpty()) { + characterSet_ = other.characterSet_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + characterSetType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + characterSet_ = 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 name_ = ""; + /** + * + * + *
+     * Identifier. The name of the Autonomous Database Character Set resource in
+     * the following format:
+     * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+     * 
+ * + * 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 name of the Autonomous Database Character Set resource in
+     * the following format:
+     * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+     * 
+ * + * 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 name of the Autonomous Database Character Set resource in
+     * the following format:
+     * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+     * 
+ * + * 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 name of the Autonomous Database Character Set resource in
+     * the following format:
+     * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+     * 
+ * + * 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 name of the Autonomous Database Character Set resource in
+     * the following format:
+     * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+     * 
+ * + * 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 int characterSetType_ = 0; + /** + * + * + *
+     * Output only. The character set type for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for characterSetType. + */ + @java.lang.Override + public int getCharacterSetTypeValue() { + return characterSetType_; + } + /** + * + * + *
+     * Output only. The character set type for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for characterSetType to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetTypeValue(int value) { + characterSetType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The character set type for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The characterSetType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + getCharacterSetType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + .forNumber(characterSetType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The character set type for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The characterSetType to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetType( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + characterSetType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The character set type for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCharacterSetType() { + bitField0_ = (bitField0_ & ~0x00000002); + characterSetType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object characterSet_ = ""; + /** + * + * + *
+     * Output only. The character set name for the Autonomous Database which is
+     * the ID in the resource name.
+     * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The characterSet. + */ + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characterSet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The character set name for the Autonomous Database which is
+     * the ID in the resource name.
+     * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for characterSet. + */ + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The character set name for the Autonomous Database which is
+     * the ID in the resource name.
+     * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + characterSet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The character set name for the Autonomous Database which is
+     * the ID in the resource name.
+     * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCharacterSet() { + characterSet_ = getDefaultInstance().getCharacterSet(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The character set name for the Autonomous Database which is
+     * the ID in the resource name.
+     * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + characterSet_ = 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.oracledatabase.v1.AutonomousDatabaseCharacterSet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseCharacterSet 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.oracledatabase.v1.AutonomousDatabaseCharacterSet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java new file mode 100644 index 000000000000..85e901ee9265 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java @@ -0,0 +1,245 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 AutonomousDatabaseCharacterSetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTONOMOUS_DATABASE_CHARACTER_SET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autonomousDatabaseCharacterSet; + + @Deprecated + protected AutonomousDatabaseCharacterSetName() { + project = null; + location = null; + autonomousDatabaseCharacterSet = null; + } + + private AutonomousDatabaseCharacterSetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autonomousDatabaseCharacterSet = + Preconditions.checkNotNull(builder.getAutonomousDatabaseCharacterSet()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDatabaseCharacterSet() { + return autonomousDatabaseCharacterSet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AutonomousDatabaseCharacterSetName of( + String project, String location, String autonomousDatabaseCharacterSet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDatabaseCharacterSet(autonomousDatabaseCharacterSet) + .build(); + } + + public static String format( + String project, String location, String autonomousDatabaseCharacterSet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDatabaseCharacterSet(autonomousDatabaseCharacterSet) + .build() + .toString(); + } + + public static AutonomousDatabaseCharacterSetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTONOMOUS_DATABASE_CHARACTER_SET.validatedMatch( + formattedString, + "AutonomousDatabaseCharacterSetName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("autonomous_database_character_set")); + } + + 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 (AutonomousDatabaseCharacterSetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTONOMOUS_DATABASE_CHARACTER_SET.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 (autonomousDatabaseCharacterSet != null) { + fieldMapBuilder.put( + "autonomous_database_character_set", autonomousDatabaseCharacterSet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTONOMOUS_DATABASE_CHARACTER_SET.instantiate( + "project", + project, + "location", + location, + "autonomous_database_character_set", + autonomousDatabaseCharacterSet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AutonomousDatabaseCharacterSetName that = ((AutonomousDatabaseCharacterSetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals( + this.autonomousDatabaseCharacterSet, that.autonomousDatabaseCharacterSet); + } + 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(autonomousDatabaseCharacterSet); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}. + */ + public static class Builder { + private String project; + private String location; + private String autonomousDatabaseCharacterSet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDatabaseCharacterSet() { + return autonomousDatabaseCharacterSet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutonomousDatabaseCharacterSet(String autonomousDatabaseCharacterSet) { + this.autonomousDatabaseCharacterSet = autonomousDatabaseCharacterSet; + return this; + } + + private Builder(AutonomousDatabaseCharacterSetName autonomousDatabaseCharacterSetName) { + this.project = autonomousDatabaseCharacterSetName.project; + this.location = autonomousDatabaseCharacterSetName.location; + this.autonomousDatabaseCharacterSet = + autonomousDatabaseCharacterSetName.autonomousDatabaseCharacterSet; + } + + public AutonomousDatabaseCharacterSetName build() { + return new AutonomousDatabaseCharacterSetName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetOrBuilder.java new file mode 100644 index 000000000000..6f33c37c63cb --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database_character_set.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseCharacterSetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Character Set resource in
+   * the following format:
+   * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Character Set resource in
+   * the following format:
+   * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The character set type for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for characterSetType. + */ + int getCharacterSetTypeValue(); + /** + * + * + *
+   * Output only. The character set type for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The characterSetType. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + getCharacterSetType(); + + /** + * + * + *
+   * Output only. The character set name for the Autonomous Database which is
+   * the ID in the resource name.
+   * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The characterSet. + */ + java.lang.String getCharacterSet(); + /** + * + * + *
+   * Output only. The character set name for the Autonomous Database which is
+   * the ID in the resource name.
+   * 
+ * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for characterSet. + */ + com.google.protobuf.ByteString getCharacterSetBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetProto.java new file mode 100644 index 000000000000..17f879e0fc62 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetProto.java @@ -0,0 +1,95 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database_character_set.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class AutonomousDatabaseCharacterSetProto { + private AutonomousDatabaseCharacterSetProto() {} + + 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_oracledatabase_v1_AutonomousDatabaseCharacterSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseCharacterSet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/oracledatabase/v1/autonom" + + "ous_database_character_set.proto\022\036google" + + ".cloud.oracledatabase.v1\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\"\210\004\n\036AutonomousDatabaseCharacterSet\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\010\022p\n\022character_set_type" + + "\030\002 \001(\0162O.google.cloud.oracledatabase.v1." + + "AutonomousDatabaseCharacterSet.Character" + + "SetTypeB\003\340A\003\022\032\n\rcharacter_set\030\003 \001(\tB\003\340A\003" + + "\"R\n\020CharacterSetType\022\"\n\036CHARACTER_SET_TY" + + "PE_UNSPECIFIED\020\000\022\014\n\010DATABASE\020\001\022\014\n\010NATION" + + "AL\020\002:\360\001\352A\354\001\n + * The connection string used to connect to the Autonomous Database. + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings + * + * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings} + */ +public final class AutonomousDatabaseConnectionStrings + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings) + AutonomousDatabaseConnectionStringsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseConnectionStrings.newBuilder() to construct. + private AutonomousDatabaseConnectionStrings( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseConnectionStrings() { + dedicated_ = ""; + high_ = ""; + low_ = ""; + medium_ = ""; + profiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseConnectionStrings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder.class); + } + + private int bitField0_; + public static final int ALL_CONNECTION_STRINGS_FIELD_NUMBER = 1; + private com.google.cloud.oracledatabase.v1.AllConnectionStrings allConnectionStrings_; + /** + * + * + *
+   * Output only. Returns all connection strings that can be used to connect to
+   * the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the allConnectionStrings field is set. + */ + @java.lang.Override + public boolean hasAllConnectionStrings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Returns all connection strings that can be used to connect to
+   * the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allConnectionStrings. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AllConnectionStrings getAllConnectionStrings() { + return allConnectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance() + : allConnectionStrings_; + } + /** + * + * + *
+   * Output only. Returns all connection strings that can be used to connect to
+   * the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder + getAllConnectionStringsOrBuilder() { + return allConnectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance() + : allConnectionStrings_; + } + + public static final int DEDICATED_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dedicated_ = ""; + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement, but supports the most number of concurrent SQL
+   * statements.
+   * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicated. + */ + @java.lang.Override + public java.lang.String getDedicated() { + java.lang.Object ref = dedicated_; + 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(); + dedicated_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement, but supports the most number of concurrent SQL
+   * statements.
+   * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicated. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDedicatedBytes() { + java.lang.Object ref = dedicated_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dedicated_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIGH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object high_ = ""; + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The high. + */ + @java.lang.Override + public java.lang.String getHigh() { + java.lang.Object ref = high_; + 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(); + high_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for high. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHighBytes() { + java.lang.Object ref = high_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOW_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object low_ = ""; + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The low. + */ + @java.lang.Override + public java.lang.String getLow() { + java.lang.Object ref = low_; + 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(); + low_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for low. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLowBytes() { + java.lang.Object ref = low_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEDIUM_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object medium_ = ""; + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The medium. + */ + @java.lang.Override + public java.lang.String getMedium() { + java.lang.Object ref = medium_; + 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(); + medium_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for medium. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMediumBytes() { + java.lang.Object ref = medium_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + medium_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + profiles_; + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder> + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder + getProfilesOrBuilder(int index) { + return profiles_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAllConnectionStrings()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dedicated_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dedicated_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(high_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, high_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(low_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, low_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(medium_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, medium_); + } + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(6, profiles_.get(i)); + } + 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, getAllConnectionStrings()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dedicated_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dedicated_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(high_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, high_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(low_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, low_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(medium_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, medium_); + } + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, profiles_.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.oracledatabase.v1.AutonomousDatabaseConnectionStrings)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings) obj; + + if (hasAllConnectionStrings() != other.hasAllConnectionStrings()) return false; + if (hasAllConnectionStrings()) { + if (!getAllConnectionStrings().equals(other.getAllConnectionStrings())) return false; + } + if (!getDedicated().equals(other.getDedicated())) return false; + if (!getHigh().equals(other.getHigh())) return false; + if (!getLow().equals(other.getLow())) return false; + if (!getMedium().equals(other.getMedium())) return false; + if (!getProfilesList().equals(other.getProfilesList())) 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 (hasAllConnectionStrings()) { + hash = (37 * hash) + ALL_CONNECTION_STRINGS_FIELD_NUMBER; + hash = (53 * hash) + getAllConnectionStrings().hashCode(); + } + hash = (37 * hash) + DEDICATED_FIELD_NUMBER; + hash = (53 * hash) + getDedicated().hashCode(); + hash = (37 * hash) + HIGH_FIELD_NUMBER; + hash = (53 * hash) + getHigh().hashCode(); + hash = (37 * hash) + LOW_FIELD_NUMBER; + hash = (53 * hash) + getLow().hashCode(); + hash = (37 * hash) + MEDIUM_FIELD_NUMBER; + hash = (53 * hash) + getMedium().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings 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 connection string used to connect to the Autonomous Database.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAllConnectionStringsFieldBuilder(); + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allConnectionStrings_ = null; + if (allConnectionStringsBuilder_ != null) { + allConnectionStringsBuilder_.dispose(); + allConnectionStringsBuilder_ = null; + } + dedicated_ = ""; + high_ = ""; + low_ = ""; + medium_ = ""; + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + } else { + profiles_ = null; + profilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings result) { + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allConnectionStrings_ = + allConnectionStringsBuilder_ == null + ? allConnectionStrings_ + : allConnectionStringsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dedicated_ = dedicated_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.high_ = high_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.low_ = low_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.medium_ = medium_; + } + 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings other) { + if (other + == com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance()) return this; + if (other.hasAllConnectionStrings()) { + mergeAllConnectionStrings(other.getAllConnectionStrings()); + } + if (!other.getDedicated().isEmpty()) { + dedicated_ = other.dedicated_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getHigh().isEmpty()) { + high_ = other.high_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLow().isEmpty()) { + low_ = other.low_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getMedium().isEmpty()) { + medium_ = other.medium_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000020); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + 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( + getAllConnectionStringsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dedicated_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + high_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + low_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + medium_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.parser(), + extensionRegistry); + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(m); + } else { + profilesBuilder_.addMessage(m); + } + break; + } // case 50 + 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.oracledatabase.v1.AllConnectionStrings allConnectionStrings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AllConnectionStrings, + com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder> + allConnectionStringsBuilder_; + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the allConnectionStrings field is set. + */ + public boolean hasAllConnectionStrings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allConnectionStrings. + */ + public com.google.cloud.oracledatabase.v1.AllConnectionStrings getAllConnectionStrings() { + if (allConnectionStringsBuilder_ == null) { + return allConnectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance() + : allConnectionStrings_; + } else { + return allConnectionStringsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAllConnectionStrings( + com.google.cloud.oracledatabase.v1.AllConnectionStrings value) { + if (allConnectionStringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allConnectionStrings_ = value; + } else { + allConnectionStringsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAllConnectionStrings( + com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder builderForValue) { + if (allConnectionStringsBuilder_ == null) { + allConnectionStrings_ = builderForValue.build(); + } else { + allConnectionStringsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAllConnectionStrings( + com.google.cloud.oracledatabase.v1.AllConnectionStrings value) { + if (allConnectionStringsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && allConnectionStrings_ != null + && allConnectionStrings_ + != com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance()) { + getAllConnectionStringsBuilder().mergeFrom(value); + } else { + allConnectionStrings_ = value; + } + } else { + allConnectionStringsBuilder_.mergeFrom(value); + } + if (allConnectionStrings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAllConnectionStrings() { + bitField0_ = (bitField0_ & ~0x00000001); + allConnectionStrings_ = null; + if (allConnectionStringsBuilder_ != null) { + allConnectionStringsBuilder_.dispose(); + allConnectionStringsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder + getAllConnectionStringsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAllConnectionStringsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder + getAllConnectionStringsOrBuilder() { + if (allConnectionStringsBuilder_ != null) { + return allConnectionStringsBuilder_.getMessageOrBuilder(); + } else { + return allConnectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AllConnectionStrings.getDefaultInstance() + : allConnectionStrings_; + } + } + /** + * + * + *
+     * Output only. Returns all connection strings that can be used to connect to
+     * the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AllConnectionStrings, + com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder> + getAllConnectionStringsFieldBuilder() { + if (allConnectionStringsBuilder_ == null) { + allConnectionStringsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AllConnectionStrings, + com.google.cloud.oracledatabase.v1.AllConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder>( + getAllConnectionStrings(), getParentForChildren(), isClean()); + allConnectionStrings_ = null; + } + return allConnectionStringsBuilder_; + } + + private java.lang.Object dedicated_ = ""; + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement, but supports the most number of concurrent SQL
+     * statements.
+     * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicated. + */ + public java.lang.String getDedicated() { + java.lang.Object ref = dedicated_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dedicated_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement, but supports the most number of concurrent SQL
+     * statements.
+     * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicated. + */ + public com.google.protobuf.ByteString getDedicatedBytes() { + java.lang.Object ref = dedicated_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dedicated_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement, but supports the most number of concurrent SQL
+     * statements.
+     * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dedicated to set. + * @return This builder for chaining. + */ + public Builder setDedicated(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dedicated_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement, but supports the most number of concurrent SQL
+     * statements.
+     * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDedicated() { + dedicated_ = getDefaultInstance().getDedicated(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement, but supports the most number of concurrent SQL
+     * statements.
+     * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dedicated to set. + * @return This builder for chaining. + */ + public Builder setDedicatedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dedicated_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object high_ = ""; + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The high. + */ + public java.lang.String getHigh() { + java.lang.Object ref = high_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + high_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for high. + */ + public com.google.protobuf.ByteString getHighBytes() { + java.lang.Object ref = high_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The high to set. + * @return This builder for chaining. + */ + public Builder setHigh(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + high_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHigh() { + high_ = getDefaultInstance().getHigh(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the highest level of resources
+     * to each SQL statement.
+     * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for high to set. + * @return This builder for chaining. + */ + public Builder setHighBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + high_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object low_ = ""; + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The low. + */ + public java.lang.String getLow() { + java.lang.Object ref = low_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + low_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for low. + */ + public com.google.protobuf.ByteString getLowBytes() { + java.lang.Object ref = low_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The low to set. + * @return This builder for chaining. + */ + public Builder setLow(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + low_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLow() { + low_ = getDefaultInstance().getLow(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides the least level of resources to
+     * each SQL statement.
+     * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for low to set. + * @return This builder for chaining. + */ + public Builder setLowBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + low_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object medium_ = ""; + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The medium. + */ + public java.lang.String getMedium() { + java.lang.Object ref = medium_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + medium_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for medium. + */ + public com.google.protobuf.ByteString getMediumBytes() { + java.lang.Object ref = medium_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + medium_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The medium to set. + * @return This builder for chaining. + */ + public Builder setMedium(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + medium_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMedium() { + medium_ = getDefaultInstance().getMedium(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The database service provides a lower level of resources to
+     * each SQL statement.
+     * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for medium to set. + * @return This builder for chaining. + */ + public Builder setMediumBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + medium_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List + profiles_ = java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + profiles_ = + new java.util.ArrayList< + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile>(profiles_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile getProfiles( + int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProfiles( + int index, com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProfiles( + int index, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder + builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProfiles( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProfiles( + int index, com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProfiles( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder + builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProfiles( + int index, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder + builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllProfiles( + java.lang.Iterable< + ? extends com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile> + values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder + getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder + getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder> + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder + addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder + addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A list of connection string profiles to allow clients to
+     * group, filter, and select values based on the structured metadata.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder> + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder>( + profiles_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + @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.oracledatabase.v1.AutonomousDatabaseConnectionStrings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseConnectionStrings 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.oracledatabase.v1.AutonomousDatabaseConnectionStrings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionStringsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionStringsOrBuilder.java new file mode 100644 index 000000000000..69cdfec219d8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionStringsOrBuilder.java @@ -0,0 +1,251 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseConnectionStringsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Returns all connection strings that can be used to connect to
+   * the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the allConnectionStrings field is set. + */ + boolean hasAllConnectionStrings(); + /** + * + * + *
+   * Output only. Returns all connection strings that can be used to connect to
+   * the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allConnectionStrings. + */ + com.google.cloud.oracledatabase.v1.AllConnectionStrings getAllConnectionStrings(); + /** + * + * + *
+   * Output only. Returns all connection strings that can be used to connect to
+   * the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.AllConnectionStringsOrBuilder + getAllConnectionStringsOrBuilder(); + + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement, but supports the most number of concurrent SQL
+   * statements.
+   * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicated. + */ + java.lang.String getDedicated(); + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement, but supports the most number of concurrent SQL
+   * statements.
+   * 
+ * + * string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicated. + */ + com.google.protobuf.ByteString getDedicatedBytes(); + + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The high. + */ + java.lang.String getHigh(); + /** + * + * + *
+   * Output only. The database service provides the highest level of resources
+   * to each SQL statement.
+   * 
+ * + * string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for high. + */ + com.google.protobuf.ByteString getHighBytes(); + + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The low. + */ + java.lang.String getLow(); + /** + * + * + *
+   * Output only. The database service provides the least level of resources to
+   * each SQL statement.
+   * 
+ * + * string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for low. + */ + com.google.protobuf.ByteString getLowBytes(); + + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The medium. + */ + java.lang.String getMedium(); + /** + * + * + *
+   * Output only. The database service provides a lower level of resources to
+   * each SQL statement.
+   * 
+ * + * string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for medium. + */ + com.google.protobuf.ByteString getMediumBytes(); + + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProfilesList(); + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile getProfiles(int index); + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProfilesCount(); + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder> + getProfilesOrBuilderList(); + /** + * + * + *
+   * Output only. A list of connection string profiles to allow clients to
+   * group, filter, and select values based on the structured metadata.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder getProfilesOrBuilder( + int index); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionUrls.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionUrls.java new file mode 100644 index 000000000000..73be8b70906c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionUrls.java @@ -0,0 +1,1979 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The URLs for accessing Oracle Application Express (APEX) and SQL Developer
+ * Web with a browser from a Compute instance.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls} + */ +public final class AutonomousDatabaseConnectionUrls extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls) + AutonomousDatabaseConnectionUrlsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseConnectionUrls.newBuilder() to construct. + private AutonomousDatabaseConnectionUrls( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseConnectionUrls() { + apexUri_ = ""; + databaseTransformsUri_ = ""; + graphStudioUri_ = ""; + machineLearningNotebookUri_ = ""; + machineLearningUserManagementUri_ = ""; + mongoDbUri_ = ""; + ordsUri_ = ""; + sqlDevWebUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseConnectionUrls(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder.class); + } + + public static final int APEX_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apexUri_ = ""; + /** + * + * + *
+   * Output only. Oracle Application Express (APEX) URL.
+   * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apexUri. + */ + @java.lang.Override + public java.lang.String getApexUri() { + java.lang.Object ref = apexUri_; + 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(); + apexUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Oracle Application Express (APEX) URL.
+   * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apexUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApexUriBytes() { + java.lang.Object ref = apexUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apexUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_TRANSFORMS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseTransformsUri_ = ""; + /** + * + * + *
+   * Output only. The URL of the Database Transforms for the Autonomous
+   * Database.
+   * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseTransformsUri. + */ + @java.lang.Override + public java.lang.String getDatabaseTransformsUri() { + java.lang.Object ref = databaseTransformsUri_; + 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(); + databaseTransformsUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL of the Database Transforms for the Autonomous
+   * Database.
+   * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for databaseTransformsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseTransformsUriBytes() { + java.lang.Object ref = databaseTransformsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseTransformsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRAPH_STUDIO_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object graphStudioUri_ = ""; + /** + * + * + *
+   * Output only. The URL of the Graph Studio for the Autonomous Database.
+   * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The graphStudioUri. + */ + @java.lang.Override + public java.lang.String getGraphStudioUri() { + java.lang.Object ref = graphStudioUri_; + 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(); + graphStudioUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL of the Graph Studio for the Autonomous Database.
+   * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for graphStudioUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGraphStudioUriBytes() { + java.lang.Object ref = graphStudioUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + graphStudioUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MACHINE_LEARNING_NOTEBOOK_URI_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineLearningNotebookUri_ = ""; + /** + * + * + *
+   * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+   * Autonomous Database.
+   * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineLearningNotebookUri. + */ + @java.lang.Override + public java.lang.String getMachineLearningNotebookUri() { + java.lang.Object ref = machineLearningNotebookUri_; + 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(); + machineLearningNotebookUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+   * Autonomous Database.
+   * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for machineLearningNotebookUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineLearningNotebookUriBytes() { + java.lang.Object ref = machineLearningNotebookUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineLearningNotebookUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MACHINE_LEARNING_USER_MANAGEMENT_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineLearningUserManagementUri_ = ""; + /** + * + * + *
+   * Output only. The URL of Machine Learning user management the Autonomous
+   * Database.
+   * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineLearningUserManagementUri. + */ + @java.lang.Override + public java.lang.String getMachineLearningUserManagementUri() { + java.lang.Object ref = machineLearningUserManagementUri_; + 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(); + machineLearningUserManagementUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL of Machine Learning user management the Autonomous
+   * Database.
+   * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for machineLearningUserManagementUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineLearningUserManagementUriBytes() { + java.lang.Object ref = machineLearningUserManagementUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineLearningUserManagementUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONGO_DB_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object mongoDbUri_ = ""; + /** + * + * + *
+   * Output only. The URL of the MongoDB API for the Autonomous Database.
+   * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mongoDbUri. + */ + @java.lang.Override + public java.lang.String getMongoDbUri() { + java.lang.Object ref = mongoDbUri_; + 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(); + mongoDbUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL of the MongoDB API for the Autonomous Database.
+   * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mongoDbUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMongoDbUriBytes() { + java.lang.Object ref = mongoDbUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mongoDbUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDS_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object ordsUri_ = ""; + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+   * the Autonomous Database.
+   * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ordsUri. + */ + @java.lang.Override + public java.lang.String getOrdsUri() { + java.lang.Object ref = ordsUri_; + 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(); + ordsUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+   * the Autonomous Database.
+   * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ordsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrdsUriBytes() { + java.lang.Object ref = ordsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ordsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SQL_DEV_WEB_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlDevWebUri_ = ""; + /** + * + * + *
+   * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+   * Database.
+   * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sqlDevWebUri. + */ + @java.lang.Override + public java.lang.String getSqlDevWebUri() { + java.lang.Object ref = sqlDevWebUri_; + 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(); + sqlDevWebUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+   * Database.
+   * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sqlDevWebUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlDevWebUriBytes() { + java.lang.Object ref = sqlDevWebUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlDevWebUri_ = 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(apexUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apexUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseTransformsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, databaseTransformsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphStudioUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, graphStudioUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineLearningNotebookUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineLearningNotebookUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineLearningUserManagementUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, machineLearningUserManagementUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mongoDbUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mongoDbUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ordsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlDevWebUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sqlDevWebUri_); + } + 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(apexUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apexUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseTransformsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, databaseTransformsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphStudioUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, graphStudioUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineLearningNotebookUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineLearningNotebookUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineLearningUserManagementUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 5, machineLearningUserManagementUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mongoDbUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mongoDbUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ordsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlDevWebUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sqlDevWebUri_); + } + 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls) obj; + + if (!getApexUri().equals(other.getApexUri())) return false; + if (!getDatabaseTransformsUri().equals(other.getDatabaseTransformsUri())) return false; + if (!getGraphStudioUri().equals(other.getGraphStudioUri())) return false; + if (!getMachineLearningNotebookUri().equals(other.getMachineLearningNotebookUri())) + return false; + if (!getMachineLearningUserManagementUri().equals(other.getMachineLearningUserManagementUri())) + return false; + if (!getMongoDbUri().equals(other.getMongoDbUri())) return false; + if (!getOrdsUri().equals(other.getOrdsUri())) return false; + if (!getSqlDevWebUri().equals(other.getSqlDevWebUri())) 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) + APEX_URI_FIELD_NUMBER; + hash = (53 * hash) + getApexUri().hashCode(); + hash = (37 * hash) + DATABASE_TRANSFORMS_URI_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseTransformsUri().hashCode(); + hash = (37 * hash) + GRAPH_STUDIO_URI_FIELD_NUMBER; + hash = (53 * hash) + getGraphStudioUri().hashCode(); + hash = (37 * hash) + MACHINE_LEARNING_NOTEBOOK_URI_FIELD_NUMBER; + hash = (53 * hash) + getMachineLearningNotebookUri().hashCode(); + hash = (37 * hash) + MACHINE_LEARNING_USER_MANAGEMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getMachineLearningUserManagementUri().hashCode(); + hash = (37 * hash) + MONGO_DB_URI_FIELD_NUMBER; + hash = (53 * hash) + getMongoDbUri().hashCode(); + hash = (37 * hash) + ORDS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOrdsUri().hashCode(); + hash = (37 * hash) + SQL_DEV_WEB_URI_FIELD_NUMBER; + hash = (53 * hash) + getSqlDevWebUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls 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 URLs for accessing Oracle Application Express (APEX) and SQL Developer
+   * Web with a browser from a Compute instance.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apexUri_ = ""; + databaseTransformsUri_ = ""; + graphStudioUri_ = ""; + machineLearningNotebookUri_ = ""; + machineLearningUserManagementUri_ = ""; + mongoDbUri_ = ""; + ordsUri_ = ""; + sqlDevWebUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apexUri_ = apexUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.databaseTransformsUri_ = databaseTransformsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.graphStudioUri_ = graphStudioUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.machineLearningNotebookUri_ = machineLearningNotebookUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.machineLearningUserManagementUri_ = machineLearningUserManagementUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.mongoDbUri_ = mongoDbUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ordsUri_ = ordsUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.sqlDevWebUri_ = sqlDevWebUri_; + } + } + + @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.oracledatabase.v1.AutonomousDatabaseConnectionUrls) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls other) { + if (other + == com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + .getDefaultInstance()) return this; + if (!other.getApexUri().isEmpty()) { + apexUri_ = other.apexUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatabaseTransformsUri().isEmpty()) { + databaseTransformsUri_ = other.databaseTransformsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGraphStudioUri().isEmpty()) { + graphStudioUri_ = other.graphStudioUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMachineLearningNotebookUri().isEmpty()) { + machineLearningNotebookUri_ = other.machineLearningNotebookUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getMachineLearningUserManagementUri().isEmpty()) { + machineLearningUserManagementUri_ = other.machineLearningUserManagementUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getMongoDbUri().isEmpty()) { + mongoDbUri_ = other.mongoDbUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getOrdsUri().isEmpty()) { + ordsUri_ = other.ordsUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getSqlDevWebUri().isEmpty()) { + sqlDevWebUri_ = other.sqlDevWebUri_; + bitField0_ |= 0x00000080; + 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: + { + apexUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + databaseTransformsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + graphStudioUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + machineLearningNotebookUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + machineLearningUserManagementUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + mongoDbUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + ordsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + sqlDevWebUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + 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 apexUri_ = ""; + /** + * + * + *
+     * Output only. Oracle Application Express (APEX) URL.
+     * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apexUri. + */ + public java.lang.String getApexUri() { + java.lang.Object ref = apexUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apexUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Oracle Application Express (APEX) URL.
+     * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apexUri. + */ + public com.google.protobuf.ByteString getApexUriBytes() { + java.lang.Object ref = apexUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apexUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Oracle Application Express (APEX) URL.
+     * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apexUri to set. + * @return This builder for chaining. + */ + public Builder setApexUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apexUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Oracle Application Express (APEX) URL.
+     * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApexUri() { + apexUri_ = getDefaultInstance().getApexUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Oracle Application Express (APEX) URL.
+     * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apexUri to set. + * @return This builder for chaining. + */ + public Builder setApexUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apexUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object databaseTransformsUri_ = ""; + /** + * + * + *
+     * Output only. The URL of the Database Transforms for the Autonomous
+     * Database.
+     * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseTransformsUri. + */ + public java.lang.String getDatabaseTransformsUri() { + java.lang.Object ref = databaseTransformsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseTransformsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Database Transforms for the Autonomous
+     * Database.
+     * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for databaseTransformsUri. + */ + public com.google.protobuf.ByteString getDatabaseTransformsUriBytes() { + java.lang.Object ref = databaseTransformsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseTransformsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Database Transforms for the Autonomous
+     * Database.
+     * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The databaseTransformsUri to set. + * @return This builder for chaining. + */ + public Builder setDatabaseTransformsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseTransformsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Database Transforms for the Autonomous
+     * Database.
+     * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseTransformsUri() { + databaseTransformsUri_ = getDefaultInstance().getDatabaseTransformsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Database Transforms for the Autonomous
+     * Database.
+     * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for databaseTransformsUri to set. + * @return This builder for chaining. + */ + public Builder setDatabaseTransformsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseTransformsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object graphStudioUri_ = ""; + /** + * + * + *
+     * Output only. The URL of the Graph Studio for the Autonomous Database.
+     * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The graphStudioUri. + */ + public java.lang.String getGraphStudioUri() { + java.lang.Object ref = graphStudioUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + graphStudioUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Graph Studio for the Autonomous Database.
+     * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for graphStudioUri. + */ + public com.google.protobuf.ByteString getGraphStudioUriBytes() { + java.lang.Object ref = graphStudioUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + graphStudioUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Graph Studio for the Autonomous Database.
+     * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The graphStudioUri to set. + * @return This builder for chaining. + */ + public Builder setGraphStudioUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + graphStudioUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Graph Studio for the Autonomous Database.
+     * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGraphStudioUri() { + graphStudioUri_ = getDefaultInstance().getGraphStudioUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Graph Studio for the Autonomous Database.
+     * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for graphStudioUri to set. + * @return This builder for chaining. + */ + public Builder setGraphStudioUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + graphStudioUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object machineLearningNotebookUri_ = ""; + /** + * + * + *
+     * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+     * Autonomous Database.
+     * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineLearningNotebookUri. + */ + public java.lang.String getMachineLearningNotebookUri() { + java.lang.Object ref = machineLearningNotebookUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineLearningNotebookUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+     * Autonomous Database.
+     * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for machineLearningNotebookUri. + */ + public com.google.protobuf.ByteString getMachineLearningNotebookUriBytes() { + java.lang.Object ref = machineLearningNotebookUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineLearningNotebookUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+     * Autonomous Database.
+     * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The machineLearningNotebookUri to set. + * @return This builder for chaining. + */ + public Builder setMachineLearningNotebookUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineLearningNotebookUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+     * Autonomous Database.
+     * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMachineLearningNotebookUri() { + machineLearningNotebookUri_ = getDefaultInstance().getMachineLearningNotebookUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+     * Autonomous Database.
+     * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for machineLearningNotebookUri to set. + * @return This builder for chaining. + */ + public Builder setMachineLearningNotebookUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineLearningNotebookUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object machineLearningUserManagementUri_ = ""; + /** + * + * + *
+     * Output only. The URL of Machine Learning user management the Autonomous
+     * Database.
+     * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineLearningUserManagementUri. + */ + public java.lang.String getMachineLearningUserManagementUri() { + java.lang.Object ref = machineLearningUserManagementUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineLearningUserManagementUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL of Machine Learning user management the Autonomous
+     * Database.
+     * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for machineLearningUserManagementUri. + */ + public com.google.protobuf.ByteString getMachineLearningUserManagementUriBytes() { + java.lang.Object ref = machineLearningUserManagementUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineLearningUserManagementUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL of Machine Learning user management the Autonomous
+     * Database.
+     * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The machineLearningUserManagementUri to set. + * @return This builder for chaining. + */ + public Builder setMachineLearningUserManagementUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineLearningUserManagementUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of Machine Learning user management the Autonomous
+     * Database.
+     * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMachineLearningUserManagementUri() { + machineLearningUserManagementUri_ = + getDefaultInstance().getMachineLearningUserManagementUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of Machine Learning user management the Autonomous
+     * Database.
+     * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for machineLearningUserManagementUri to set. + * @return This builder for chaining. + */ + public Builder setMachineLearningUserManagementUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineLearningUserManagementUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object mongoDbUri_ = ""; + /** + * + * + *
+     * Output only. The URL of the MongoDB API for the Autonomous Database.
+     * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mongoDbUri. + */ + public java.lang.String getMongoDbUri() { + java.lang.Object ref = mongoDbUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mongoDbUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the MongoDB API for the Autonomous Database.
+     * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mongoDbUri. + */ + public com.google.protobuf.ByteString getMongoDbUriBytes() { + java.lang.Object ref = mongoDbUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mongoDbUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the MongoDB API for the Autonomous Database.
+     * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mongoDbUri to set. + * @return This builder for chaining. + */ + public Builder setMongoDbUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mongoDbUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the MongoDB API for the Autonomous Database.
+     * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMongoDbUri() { + mongoDbUri_ = getDefaultInstance().getMongoDbUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the MongoDB API for the Autonomous Database.
+     * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mongoDbUri to set. + * @return This builder for chaining. + */ + public Builder setMongoDbUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mongoDbUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object ordsUri_ = ""; + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+     * the Autonomous Database.
+     * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ordsUri. + */ + public java.lang.String getOrdsUri() { + java.lang.Object ref = ordsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ordsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+     * the Autonomous Database.
+     * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ordsUri. + */ + public com.google.protobuf.ByteString getOrdsUriBytes() { + java.lang.Object ref = ordsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ordsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+     * the Autonomous Database.
+     * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ordsUri to set. + * @return This builder for chaining. + */ + public Builder setOrdsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ordsUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+     * the Autonomous Database.
+     * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOrdsUri() { + ordsUri_ = getDefaultInstance().getOrdsUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+     * the Autonomous Database.
+     * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ordsUri to set. + * @return This builder for chaining. + */ + public Builder setOrdsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ordsUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object sqlDevWebUri_ = ""; + /** + * + * + *
+     * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+     * Database.
+     * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sqlDevWebUri. + */ + public java.lang.String getSqlDevWebUri() { + java.lang.Object ref = sqlDevWebUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlDevWebUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+     * Database.
+     * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sqlDevWebUri. + */ + public com.google.protobuf.ByteString getSqlDevWebUriBytes() { + java.lang.Object ref = sqlDevWebUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlDevWebUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+     * Database.
+     * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sqlDevWebUri to set. + * @return This builder for chaining. + */ + public Builder setSqlDevWebUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlDevWebUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+     * Database.
+     * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSqlDevWebUri() { + sqlDevWebUri_ = getDefaultInstance().getSqlDevWebUri(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+     * Database.
+     * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sqlDevWebUri to set. + * @return This builder for chaining. + */ + public Builder setSqlDevWebUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlDevWebUri_ = value; + bitField0_ |= 0x00000080; + 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseConnectionUrls 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.oracledatabase.v1.AutonomousDatabaseConnectionUrls + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionUrlsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionUrlsOrBuilder.java new file mode 100644 index 000000000000..4f4a6ff9d10b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseConnectionUrlsOrBuilder.java @@ -0,0 +1,242 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseConnectionUrlsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Oracle Application Express (APEX) URL.
+   * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apexUri. + */ + java.lang.String getApexUri(); + /** + * + * + *
+   * Output only. Oracle Application Express (APEX) URL.
+   * 
+ * + * string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apexUri. + */ + com.google.protobuf.ByteString getApexUriBytes(); + + /** + * + * + *
+   * Output only. The URL of the Database Transforms for the Autonomous
+   * Database.
+   * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseTransformsUri. + */ + java.lang.String getDatabaseTransformsUri(); + /** + * + * + *
+   * Output only. The URL of the Database Transforms for the Autonomous
+   * Database.
+   * 
+ * + * string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for databaseTransformsUri. + */ + com.google.protobuf.ByteString getDatabaseTransformsUriBytes(); + + /** + * + * + *
+   * Output only. The URL of the Graph Studio for the Autonomous Database.
+   * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The graphStudioUri. + */ + java.lang.String getGraphStudioUri(); + /** + * + * + *
+   * Output only. The URL of the Graph Studio for the Autonomous Database.
+   * 
+ * + * string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for graphStudioUri. + */ + com.google.protobuf.ByteString getGraphStudioUriBytes(); + + /** + * + * + *
+   * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+   * Autonomous Database.
+   * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineLearningNotebookUri. + */ + java.lang.String getMachineLearningNotebookUri(); + /** + * + * + *
+   * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the
+   * Autonomous Database.
+   * 
+ * + * string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for machineLearningNotebookUri. + */ + com.google.protobuf.ByteString getMachineLearningNotebookUriBytes(); + + /** + * + * + *
+   * Output only. The URL of Machine Learning user management the Autonomous
+   * Database.
+   * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineLearningUserManagementUri. + */ + java.lang.String getMachineLearningUserManagementUri(); + /** + * + * + *
+   * Output only. The URL of Machine Learning user management the Autonomous
+   * Database.
+   * 
+ * + * + * string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for machineLearningUserManagementUri. + */ + com.google.protobuf.ByteString getMachineLearningUserManagementUriBytes(); + + /** + * + * + *
+   * Output only. The URL of the MongoDB API for the Autonomous Database.
+   * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mongoDbUri. + */ + java.lang.String getMongoDbUri(); + /** + * + * + *
+   * Output only. The URL of the MongoDB API for the Autonomous Database.
+   * 
+ * + * string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mongoDbUri. + */ + com.google.protobuf.ByteString getMongoDbUriBytes(); + + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+   * the Autonomous Database.
+   * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ordsUri. + */ + java.lang.String getOrdsUri(); + /** + * + * + *
+   * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for
+   * the Autonomous Database.
+   * 
+ * + * string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ordsUri. + */ + com.google.protobuf.ByteString getOrdsUriBytes(); + + /** + * + * + *
+   * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+   * Database.
+   * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sqlDevWebUri. + */ + java.lang.String getSqlDevWebUri(); + /** + * + * + *
+   * Output only. The URL of the Oracle SQL Developer Web for the Autonomous
+   * Database.
+   * 
+ * + * string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sqlDevWebUri. + */ + com.google.protobuf.ByteString getSqlDevWebUriBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java new file mode 100644 index 000000000000..7b41f3b180dd --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java @@ -0,0 +1,231 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 AutonomousDatabaseName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTONOMOUS_DATABASE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autonomousDatabase; + + @Deprecated + protected AutonomousDatabaseName() { + project = null; + location = null; + autonomousDatabase = null; + } + + private AutonomousDatabaseName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autonomousDatabase = Preconditions.checkNotNull(builder.getAutonomousDatabase()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDatabase() { + return autonomousDatabase; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AutonomousDatabaseName of( + String project, String location, String autonomousDatabase) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDatabase(autonomousDatabase) + .build(); + } + + public static String format(String project, String location, String autonomousDatabase) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDatabase(autonomousDatabase) + .build() + .toString(); + } + + public static AutonomousDatabaseName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTONOMOUS_DATABASE.validatedMatch( + formattedString, "AutonomousDatabaseName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("autonomous_database")); + } + + 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 (AutonomousDatabaseName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTONOMOUS_DATABASE.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 (autonomousDatabase != null) { + fieldMapBuilder.put("autonomous_database", autonomousDatabase); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTONOMOUS_DATABASE.instantiate( + "project", project, "location", location, "autonomous_database", autonomousDatabase); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AutonomousDatabaseName that = ((AutonomousDatabaseName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.autonomousDatabase, that.autonomousDatabase); + } + 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(autonomousDatabase); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + */ + public static class Builder { + private String project; + private String location; + private String autonomousDatabase; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDatabase() { + return autonomousDatabase; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutonomousDatabase(String autonomousDatabase) { + this.autonomousDatabase = autonomousDatabase; + return this; + } + + private Builder(AutonomousDatabaseName autonomousDatabaseName) { + this.project = autonomousDatabaseName.project; + this.location = autonomousDatabaseName.location; + this.autonomousDatabase = autonomousDatabaseName.autonomousDatabase; + } + + public AutonomousDatabaseName build() { + return new AutonomousDatabaseName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java new file mode 100644 index 000000000000..3befb56ac359 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java @@ -0,0 +1,356 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabase) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Autonomous Database resource in the following
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Autonomous Database resource in the following
+   * format:
+   * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The name of the Autonomous Database. The database name must be
+   * unique in the project. The name must begin with a letter and can contain a
+   * maximum of 30 alphanumeric characters.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + java.lang.String getDatabase(); + /** + * + * + *
+   * Optional. The name of the Autonomous Database. The database name must be
+   * unique in the project. The name must begin with a letter and can contain a
+   * maximum of 30 alphanumeric characters.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+   * Optional. The display name for the Autonomous Database. The name does not
+   * have to be unique within your project.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. The display name for the Autonomous Database. The name does not
+   * have to be unique within your project.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The ID of the subscription entitlement associated with the
+   * Autonomous Database.
+   * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + /** + * + * + *
+   * Output only. The ID of the subscription entitlement associated with the
+   * Autonomous Database.
+   * 
+ * + * string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); + + /** + * + * + *
+   * Optional. The password for the default ADMIN user.
+   * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adminPassword. + */ + java.lang.String getAdminPassword(); + /** + * + * + *
+   * Optional. The password for the default ADMIN user.
+   * 
+ * + * string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adminPassword. + */ + com.google.protobuf.ByteString getAdminPasswordBytes(); + + /** + * + * + *
+   * Optional. The properties of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * + * + *
+   * Optional. The properties of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties getProperties(); + /** + * + * + *
+   * Optional. The properties of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * + * + *
+   * Optional. The labels or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. The labels or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.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 or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. The labels or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. The labels or tags associated with the Autonomous Database.
+   * 
+ * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Required. The name of the VPC network used by the Autonomous Database in
+   * the following format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Required. The name of the VPC network used by the Autonomous Database in
+   * the following format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Required. The subnet CIDR range for the Autonmous Database.
+   * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidr. + */ + java.lang.String getCidr(); + /** + * + * + *
+   * Required. The subnet CIDR range for the Autonmous Database.
+   * 
+ * + * string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidr. + */ + com.google.protobuf.ByteString getCidrBytes(); + + /** + * + * + *
+   * Output only. The date and time that the Autonomous Database was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The date and time that the Autonomous Database was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The date and time that the Autonomous Database was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java new file mode 100644 index 000000000000..33cb4a7bc20c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java @@ -0,0 +1,13687 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The properties of an Autonomous Database.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseProperties} + */ +public final class AutonomousDatabaseProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties) + AutonomousDatabasePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseProperties.newBuilder() to construct. + private AutonomousDatabaseProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseProperties() { + ocid_ = ""; + dbWorkload_ = 0; + dbEdition_ = 0; + characterSet_ = ""; + nCharacterSet_ = ""; + privateEndpointIp_ = ""; + privateEndpointLabel_ = ""; + dbVersion_ = ""; + licenseType_ = 0; + customerContacts_ = java.util.Collections.emptyList(); + secretId_ = ""; + vaultId_ = ""; + maintenanceScheduleType_ = 0; + lifecycleDetails_ = ""; + state_ = 0; + autonomousContainerDatabaseId_ = ""; + availableUpgradeVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + localDisasterRecoveryType_ = 0; + dataSafeState_ = 0; + databaseManagementState_ = 0; + openMode_ = 0; + operationsInsightsState_ = 0; + peerDbIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + permissionLevel_ = 0; + privateEndpoint_ = ""; + refreshableMode_ = 0; + refreshableState_ = 0; + role_ = 0; + scheduledOperationDetails_ = java.util.Collections.emptyList(); + sqlWebDeveloperUrl_ = ""; + supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ociUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder.class); + } + + /** + * + * + *
+   * The editions available for the Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition} + */ + public enum DatabaseEdition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * DATABASE_EDITION_UNSPECIFIED = 0; + */ + DATABASE_EDITION_UNSPECIFIED(0), + /** + * + * + *
+     * Standard Database Edition
+     * 
+ * + * STANDARD_EDITION = 1; + */ + STANDARD_EDITION(1), + /** + * + * + *
+     * Enterprise Database Edition
+     * 
+ * + * ENTERPRISE_EDITION = 2; + */ + ENTERPRISE_EDITION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * DATABASE_EDITION_UNSPECIFIED = 0; + */ + public static final int DATABASE_EDITION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Standard Database Edition
+     * 
+ * + * STANDARD_EDITION = 1; + */ + public static final int STANDARD_EDITION_VALUE = 1; + /** + * + * + *
+     * Enterprise Database Edition
+     * 
+ * + * ENTERPRISE_EDITION = 2; + */ + public static final int ENTERPRISE_EDITION_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 DatabaseEdition 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 DatabaseEdition forNumber(int value) { + switch (value) { + case 0: + return DATABASE_EDITION_UNSPECIFIED; + case 1: + return STANDARD_EDITION; + case 2: + return ENTERPRISE_EDITION; + 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 DatabaseEdition findValueByNumber(int number) { + return DatabaseEdition.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DatabaseEdition[] VALUES = values(); + + public static DatabaseEdition 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 DatabaseEdition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition) + } + + /** + * + * + *
+   * The license types available for the Autonomous Database.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType} + */ + public enum LicenseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * LICENSE_TYPE_UNSPECIFIED = 0; + */ + LICENSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * License included part of offer
+     * 
+ * + * LICENSE_INCLUDED = 1; + */ + LICENSE_INCLUDED(1), + /** + * + * + *
+     * Bring your own license
+     * 
+ * + * BRING_YOUR_OWN_LICENSE = 2; + */ + BRING_YOUR_OWN_LICENSE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * LICENSE_TYPE_UNSPECIFIED = 0; + */ + public static final int LICENSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * License included part of offer
+     * 
+ * + * LICENSE_INCLUDED = 1; + */ + public static final int LICENSE_INCLUDED_VALUE = 1; + /** + * + * + *
+     * Bring your own license
+     * 
+ * + * BRING_YOUR_OWN_LICENSE = 2; + */ + public static final int BRING_YOUR_OWN_LICENSE_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 LicenseType 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 LicenseType forNumber(int value) { + switch (value) { + case 0: + return LICENSE_TYPE_UNSPECIFIED; + case 1: + return LICENSE_INCLUDED; + case 2: + return BRING_YOUR_OWN_LICENSE; + 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 LicenseType findValueByNumber(int number) { + return LicenseType.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final LicenseType[] VALUES = values(); + + public static LicenseType 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 LicenseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType) + } + + /** + * + * + *
+   * The available maintenance schedules for the Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType} + */ + public enum MaintenanceScheduleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0; + */ + MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * An EARLY maintenance schedule patches the database before
+     * the regular scheduled maintenance.
+     * 
+ * + * EARLY = 1; + */ + EARLY(1), + /** + * + * + *
+     * A REGULAR maintenance schedule follows the normal maintenance cycle.
+     * 
+ * + * REGULAR = 2; + */ + REGULAR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0; + */ + public static final int MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * An EARLY maintenance schedule patches the database before
+     * the regular scheduled maintenance.
+     * 
+ * + * EARLY = 1; + */ + public static final int EARLY_VALUE = 1; + /** + * + * + *
+     * A REGULAR maintenance schedule follows the normal maintenance cycle.
+     * 
+ * + * REGULAR = 2; + */ + public static final int REGULAR_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 MaintenanceScheduleType 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 MaintenanceScheduleType forNumber(int value) { + switch (value) { + case 0: + return MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED; + case 1: + return EARLY; + case 2: + return REGULAR; + 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 MaintenanceScheduleType findValueByNumber(int number) { + return MaintenanceScheduleType.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final MaintenanceScheduleType[] VALUES = values(); + + public static MaintenanceScheduleType 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 MaintenanceScheduleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType) + } + + /** + * + * + *
+   * The types of local disaster recovery available for an Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType} + */ + public enum LocalDisasterRecoveryType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0; + */ + LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Autonomous Data Guard recovery.
+     * 
+ * + * ADG = 1; + */ + ADG(1), + /** + * + * + *
+     * Backup based recovery.
+     * 
+ * + * BACKUP_BASED = 2; + */ + BACKUP_BASED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Autonomous Data Guard recovery.
+     * 
+ * + * ADG = 1; + */ + public static final int ADG_VALUE = 1; + /** + * + * + *
+     * Backup based recovery.
+     * 
+ * + * BACKUP_BASED = 2; + */ + public static final int BACKUP_BASED_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 LocalDisasterRecoveryType 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 LocalDisasterRecoveryType forNumber(int value) { + switch (value) { + case 0: + return LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED; + case 1: + return ADG; + case 2: + return BACKUP_BASED; + 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 LocalDisasterRecoveryType findValueByNumber(int number) { + return LocalDisasterRecoveryType.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final LocalDisasterRecoveryType[] VALUES = values(); + + public static LocalDisasterRecoveryType 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 LocalDisasterRecoveryType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType) + } + + /** + * + * + *
+   * Varies states of the Data Safe registration for the Autonomous Database.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState} + */ + public enum DataSafeState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * DATA_SAFE_STATE_UNSPECIFIED = 0; + */ + DATA_SAFE_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Registering data safe state.
+     * 
+ * + * REGISTERING = 1; + */ + REGISTERING(1), + /** + * + * + *
+     * Registered data safe state.
+     * 
+ * + * REGISTERED = 2; + */ + REGISTERED(2), + /** + * + * + *
+     * Deregistering data safe state.
+     * 
+ * + * DEREGISTERING = 3; + */ + DEREGISTERING(3), + /** + * + * + *
+     * Not registered data safe state.
+     * 
+ * + * NOT_REGISTERED = 4; + */ + NOT_REGISTERED(4), + /** + * + * + *
+     * Failed data safe state.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * DATA_SAFE_STATE_UNSPECIFIED = 0; + */ + public static final int DATA_SAFE_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Registering data safe state.
+     * 
+ * + * REGISTERING = 1; + */ + public static final int REGISTERING_VALUE = 1; + /** + * + * + *
+     * Registered data safe state.
+     * 
+ * + * REGISTERED = 2; + */ + public static final int REGISTERED_VALUE = 2; + /** + * + * + *
+     * Deregistering data safe state.
+     * 
+ * + * DEREGISTERING = 3; + */ + public static final int DEREGISTERING_VALUE = 3; + /** + * + * + *
+     * Not registered data safe state.
+     * 
+ * + * NOT_REGISTERED = 4; + */ + public static final int NOT_REGISTERED_VALUE = 4; + /** + * + * + *
+     * Failed data safe state.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_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 DataSafeState 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 DataSafeState forNumber(int value) { + switch (value) { + case 0: + return DATA_SAFE_STATE_UNSPECIFIED; + case 1: + return REGISTERING; + case 2: + return REGISTERED; + case 3: + return DEREGISTERING; + case 4: + return NOT_REGISTERED; + case 5: + return FAILED; + 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 DataSafeState findValueByNumber(int number) { + return DataSafeState.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final DataSafeState[] VALUES = values(); + + public static DataSafeState 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 DataSafeState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState) + } + + /** + * + * + *
+   * The different states of database management for an Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState} + */ + public enum DatabaseManagementState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0; + */ + DATABASE_MANAGEMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Enabling Database Management state
+     * 
+ * + * ENABLING = 1; + */ + ENABLING(1), + /** + * + * + *
+     * Enabled Database Management state
+     * 
+ * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
+     * Disabling Database Management state
+     * 
+ * + * DISABLING = 3; + */ + DISABLING(3), + /** + * + * + *
+     * Not Enabled Database Management state
+     * 
+ * + * NOT_ENABLED = 4; + */ + NOT_ENABLED(4), + /** + * + * + *
+     * Failed enabling Database Management state
+     * 
+ * + * FAILED_ENABLING = 5; + */ + FAILED_ENABLING(5), + /** + * + * + *
+     * Failed disabling Database Management state
+     * 
+ * + * FAILED_DISABLING = 6; + */ + FAILED_DISABLING(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0; + */ + public static final int DATABASE_MANAGEMENT_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Enabling Database Management state
+     * 
+ * + * ENABLING = 1; + */ + public static final int ENABLING_VALUE = 1; + /** + * + * + *
+     * Enabled Database Management state
+     * 
+ * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + /** + * + * + *
+     * Disabling Database Management state
+     * 
+ * + * DISABLING = 3; + */ + public static final int DISABLING_VALUE = 3; + /** + * + * + *
+     * Not Enabled Database Management state
+     * 
+ * + * NOT_ENABLED = 4; + */ + public static final int NOT_ENABLED_VALUE = 4; + /** + * + * + *
+     * Failed enabling Database Management state
+     * 
+ * + * FAILED_ENABLING = 5; + */ + public static final int FAILED_ENABLING_VALUE = 5; + /** + * + * + *
+     * Failed disabling Database Management state
+     * 
+ * + * FAILED_DISABLING = 6; + */ + public static final int FAILED_DISABLING_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 DatabaseManagementState 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 DatabaseManagementState forNumber(int value) { + switch (value) { + case 0: + return DATABASE_MANAGEMENT_STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ENABLED; + case 3: + return DISABLING; + case 4: + return NOT_ENABLED; + case 5: + return FAILED_ENABLING; + case 6: + return FAILED_DISABLING; + 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 DatabaseManagementState findValueByNumber(int number) { + return DatabaseManagementState.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(5); + } + + private static final DatabaseManagementState[] VALUES = values(); + + public static DatabaseManagementState 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 DatabaseManagementState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState) + } + + /** + * + * + *
+   * This field indicates the modes of an Autonomous Database.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode} + */ + public enum OpenMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * OPEN_MODE_UNSPECIFIED = 0; + */ + OPEN_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Read Only Mode
+     * 
+ * + * READ_ONLY = 1; + */ + READ_ONLY(1), + /** + * + * + *
+     * Read Write Mode
+     * 
+ * + * READ_WRITE = 2; + */ + READ_WRITE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * OPEN_MODE_UNSPECIFIED = 0; + */ + public static final int OPEN_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Read Only Mode
+     * 
+ * + * READ_ONLY = 1; + */ + public static final int READ_ONLY_VALUE = 1; + /** + * + * + *
+     * Read Write Mode
+     * 
+ * + * READ_WRITE = 2; + */ + public static final int READ_WRITE_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 OpenMode 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 OpenMode forNumber(int value) { + switch (value) { + case 0: + return OPEN_MODE_UNSPECIFIED; + case 1: + return READ_ONLY; + case 2: + return READ_WRITE; + 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 OpenMode findValueByNumber(int number) { + return OpenMode.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(6); + } + + private static final OpenMode[] VALUES = values(); + + public static OpenMode 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 OpenMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode) + } + + /** + * + * + *
+   * The types of permission levels for an Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel} + */ + public enum PermissionLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * PERMISSION_LEVEL_UNSPECIFIED = 0; + */ + PERMISSION_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Restricted mode allows access only by admin users.
+     * 
+ * + * RESTRICTED = 1; + */ + RESTRICTED(1), + /** + * + * + *
+     * Normal access.
+     * 
+ * + * UNRESTRICTED = 2; + */ + UNRESTRICTED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * PERMISSION_LEVEL_UNSPECIFIED = 0; + */ + public static final int PERMISSION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Restricted mode allows access only by admin users.
+     * 
+ * + * RESTRICTED = 1; + */ + public static final int RESTRICTED_VALUE = 1; + /** + * + * + *
+     * Normal access.
+     * 
+ * + * UNRESTRICTED = 2; + */ + public static final int UNRESTRICTED_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 PermissionLevel 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 PermissionLevel forNumber(int value) { + switch (value) { + case 0: + return PERMISSION_LEVEL_UNSPECIFIED; + case 1: + return RESTRICTED; + case 2: + return UNRESTRICTED; + 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 PermissionLevel findValueByNumber(int number) { + return PermissionLevel.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(7); + } + + private static final PermissionLevel[] VALUES = values(); + + public static PermissionLevel 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 PermissionLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel) + } + + /** + * + * + *
+   * The refresh mode of the cloned Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode} + */ + public enum RefreshableMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default unspecified value.
+     * 
+ * + * REFRESHABLE_MODE_UNSPECIFIED = 0; + */ + REFRESHABLE_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * AUTOMATIC indicates that the cloned database is automatically
+     * refreshed with data from the source Autonomous Database.
+     * 
+ * + * AUTOMATIC = 1; + */ + AUTOMATIC(1), + /** + * + * + *
+     * MANUAL indicates that the cloned database is manually refreshed with
+     * data from the source Autonomous Database.
+     * 
+ * + * MANUAL = 2; + */ + MANUAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default unspecified value.
+     * 
+ * + * REFRESHABLE_MODE_UNSPECIFIED = 0; + */ + public static final int REFRESHABLE_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * AUTOMATIC indicates that the cloned database is automatically
+     * refreshed with data from the source Autonomous Database.
+     * 
+ * + * AUTOMATIC = 1; + */ + public static final int AUTOMATIC_VALUE = 1; + /** + * + * + *
+     * MANUAL indicates that the cloned database is manually refreshed with
+     * data from the source Autonomous Database.
+     * 
+ * + * MANUAL = 2; + */ + public static final int MANUAL_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 RefreshableMode 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 RefreshableMode forNumber(int value) { + switch (value) { + case 0: + return REFRESHABLE_MODE_UNSPECIFIED; + case 1: + return AUTOMATIC; + case 2: + return MANUAL; + 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 RefreshableMode findValueByNumber(int number) { + return RefreshableMode.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(8); + } + + private static final RefreshableMode[] VALUES = values(); + + public static RefreshableMode 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 RefreshableMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode) + } + + /** + * + * + *
+   * The refresh state of the cloned Autonomous Database.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState} + */ + public enum RefreshableState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * REFRESHABLE_STATE_UNSPECIFIED = 0; + */ + REFRESHABLE_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Refreshing
+     * 
+ * + * REFRESHING = 1; + */ + REFRESHING(1), + /** + * + * + *
+     * Not refreshed
+     * 
+ * + * NOT_REFRESHING = 2; + */ + NOT_REFRESHING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * REFRESHABLE_STATE_UNSPECIFIED = 0; + */ + public static final int REFRESHABLE_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Refreshing
+     * 
+ * + * REFRESHING = 1; + */ + public static final int REFRESHING_VALUE = 1; + /** + * + * + *
+     * Not refreshed
+     * 
+ * + * NOT_REFRESHING = 2; + */ + public static final int NOT_REFRESHING_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 RefreshableState 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 RefreshableState forNumber(int value) { + switch (value) { + case 0: + return REFRESHABLE_STATE_UNSPECIFIED; + case 1: + return REFRESHING; + case 2: + return NOT_REFRESHING; + 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 RefreshableState findValueByNumber(int number) { + return RefreshableState.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(9); + } + + private static final RefreshableState[] VALUES = values(); + + public static RefreshableState 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 RefreshableState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState) + } + + /** + * + * + *
+   * The Data Guard role of the Autonomous Database.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role} + */ + public enum Role implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + ROLE_UNSPECIFIED(0), + /** + * + * + *
+     * Primary role
+     * 
+ * + * PRIMARY = 1; + */ + PRIMARY(1), + /** + * + * + *
+     * Standby role
+     * 
+ * + * STANDBY = 2; + */ + STANDBY(2), + /** + * + * + *
+     * Disabled standby role
+     * 
+ * + * DISABLED_STANDBY = 3; + */ + DISABLED_STANDBY(3), + /** + * + * + *
+     * Backup copy role
+     * 
+ * + * BACKUP_COPY = 4; + */ + BACKUP_COPY(4), + /** + * + * + *
+     * Snapshot standby role
+     * 
+ * + * SNAPSHOT_STANDBY = 5; + */ + SNAPSHOT_STANDBY(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + public static final int ROLE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Primary role
+     * 
+ * + * PRIMARY = 1; + */ + public static final int PRIMARY_VALUE = 1; + /** + * + * + *
+     * Standby role
+     * 
+ * + * STANDBY = 2; + */ + public static final int STANDBY_VALUE = 2; + /** + * + * + *
+     * Disabled standby role
+     * 
+ * + * DISABLED_STANDBY = 3; + */ + public static final int DISABLED_STANDBY_VALUE = 3; + /** + * + * + *
+     * Backup copy role
+     * 
+ * + * BACKUP_COPY = 4; + */ + public static final int BACKUP_COPY_VALUE = 4; + /** + * + * + *
+     * Snapshot standby role
+     * 
+ * + * SNAPSHOT_STANDBY = 5; + */ + public static final int SNAPSHOT_STANDBY_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 Role 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 Role forNumber(int value) { + switch (value) { + case 0: + return ROLE_UNSPECIFIED; + case 1: + return PRIMARY; + case 2: + return STANDBY; + case 3: + return DISABLED_STANDBY; + case 4: + return BACKUP_COPY; + case 5: + return SNAPSHOT_STANDBY; + 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 Role findValueByNumber(int number) { + return Role.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.oracledatabase.v1.AutonomousDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(10); + } + + private static final Role[] VALUES = values(); + + public static Role 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 Role(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role) + } + + private int bitField0_; + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + /** + * + * + *
+   * Output only. OCID of the Autonomous Database.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCID of the Autonomous Database.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPUTE_COUNT_FIELD_NUMBER = 2; + private float computeCount_ = 0F; + /** + * + * + *
+   * Optional. The number of compute servers for the Autonomous Database.
+   * 
+ * + * float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The computeCount. + */ + @java.lang.Override + public float getComputeCount() { + return computeCount_; + } + + public static final int CPU_CORE_COUNT_FIELD_NUMBER = 3; + private int cpuCoreCount_ = 0; + /** + * + * + *
+   * Optional. The number of CPU cores to be made available to the database.
+   * 
+ * + * int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cpuCoreCount. + */ + @java.lang.Override + public int getCpuCoreCount() { + return cpuCoreCount_; + } + + public static final int DATA_STORAGE_SIZE_TB_FIELD_NUMBER = 4; + private int dataStorageSizeTb_ = 0; + /** + * + * + *
+   * Optional. The size of the data stored in the database, in terabytes.
+   * 
+ * + * int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeTb. + */ + @java.lang.Override + public int getDataStorageSizeTb() { + return dataStorageSizeTb_; + } + + public static final int DATA_STORAGE_SIZE_GB_FIELD_NUMBER = 63; + private int dataStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. The size of the data stored in the database, in gigabytes.
+   * 
+ * + * int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeGb. + */ + @java.lang.Override + public int getDataStorageSizeGb() { + return dataStorageSizeGb_; + } + + public static final int DB_WORKLOAD_FIELD_NUMBER = 5; + private int dbWorkload_ = 0; + /** + * + * + *
+   * Required. The workload type of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dbWorkload. + */ + @java.lang.Override + public int getDbWorkloadValue() { + return dbWorkload_; + } + /** + * + * + *
+   * Required. The workload type of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dbWorkload. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DBWorkload getDbWorkload() { + com.google.cloud.oracledatabase.v1.DBWorkload result = + com.google.cloud.oracledatabase.v1.DBWorkload.forNumber(dbWorkload_); + return result == null ? com.google.cloud.oracledatabase.v1.DBWorkload.UNRECOGNIZED : result; + } + + public static final int DB_EDITION_FIELD_NUMBER = 6; + private int dbEdition_ = 0; + /** + * + * + *
+   * Optional. The edition of the Autonomous Databases.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for dbEdition. + */ + @java.lang.Override + public int getDbEditionValue() { + return dbEdition_; + } + /** + * + * + *
+   * Optional. The edition of the Autonomous Databases.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbEdition. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + getDbEdition() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition.forNumber( + dbEdition_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + .UNRECOGNIZED + : result; + } + + public static final int CHARACTER_SET_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object characterSet_ = ""; + /** + * + * + *
+   * Optional. The character set for the Autonomous Database. The default is
+   * AL32UTF8.
+   * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The characterSet. + */ + @java.lang.Override + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + 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(); + characterSet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The character set for the Autonomous Database. The default is
+   * AL32UTF8.
+   * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for characterSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int N_CHARACTER_SET_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object nCharacterSet_ = ""; + /** + * + * + *
+   * Optional. The national character set for the Autonomous Database. The
+   * default is AL16UTF16.
+   * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nCharacterSet. + */ + @java.lang.Override + public java.lang.String getNCharacterSet() { + java.lang.Object ref = nCharacterSet_; + 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(); + nCharacterSet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The national character set for the Autonomous Database. The
+   * default is AL16UTF16.
+   * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nCharacterSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNCharacterSetBytes() { + java.lang.Object ref = nCharacterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nCharacterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_IP_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpointIp_ = ""; + /** + * + * + *
+   * Optional. The private endpoint IP address for the Autonomous Database.
+   * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateEndpointIp. + */ + @java.lang.Override + public java.lang.String getPrivateEndpointIp() { + java.lang.Object ref = privateEndpointIp_; + 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(); + privateEndpointIp_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The private endpoint IP address for the Autonomous Database.
+   * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateEndpointIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointIpBytes() { + java.lang.Object ref = privateEndpointIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_LABEL_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpointLabel_ = ""; + /** + * + * + *
+   * Optional. The private endpoint label for the Autonomous Database.
+   * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateEndpointLabel. + */ + @java.lang.Override + public java.lang.String getPrivateEndpointLabel() { + java.lang.Object ref = privateEndpointLabel_; + 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(); + privateEndpointLabel_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The private endpoint label for the Autonomous Database.
+   * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateEndpointLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointLabelBytes() { + java.lang.Object ref = privateEndpointLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpointLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_VERSION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbVersion_ = ""; + /** + * + * + *
+   * Optional. The Oracle Database version for the Autonomous Database.
+   * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbVersion. + */ + @java.lang.Override + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + 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(); + dbVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The Oracle Database version for the Autonomous Database.
+   * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_AUTO_SCALING_ENABLED_FIELD_NUMBER = 14; + private boolean isAutoScalingEnabled_ = false; + /** + * + * + *
+   * Optional. This field indicates if auto scaling is enabled for the
+   * Autonomous Database CPU core count.
+   * 
+ * + * bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isAutoScalingEnabled. + */ + @java.lang.Override + public boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled_; + } + + public static final int IS_STORAGE_AUTO_SCALING_ENABLED_FIELD_NUMBER = 15; + private boolean isStorageAutoScalingEnabled_ = false; + /** + * + * + *
+   * Optional. This field indicates if auto scaling is enabled for the
+   * Autonomous Database storage.
+   * 
+ * + * bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isStorageAutoScalingEnabled. + */ + @java.lang.Override + public boolean getIsStorageAutoScalingEnabled() { + return isStorageAutoScalingEnabled_; + } + + public static final int LICENSE_TYPE_FIELD_NUMBER = 16; + private int licenseType_ = 0; + /** + * + * + *
+   * Required. The license type used for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + /** + * + * + *
+   * Required. The license type used for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType + getLicenseType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType.forNumber( + licenseType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType.UNRECOGNIZED + : result; + } + + public static final int CUSTOMER_CONTACTS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List customerContacts_; + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomerContactsList() { + return customerContacts_; + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomerContactsOrBuilderList() { + return customerContacts_; + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomerContactsCount() { + return customerContacts_.size(); + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContact getCustomerContacts(int index) { + return customerContacts_.get(index); + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsOrBuilder( + int index) { + return customerContacts_.get(index); + } + + public static final int SECRET_ID_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretId_ = ""; + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+   * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secretId. + */ + @java.lang.Override + public java.lang.String getSecretId() { + java.lang.Object ref = secretId_; + 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(); + secretId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+   * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secretId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretIdBytes() { + java.lang.Object ref = secretId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VAULT_ID_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object vaultId_ = ""; + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault.
+   * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vaultId. + */ + @java.lang.Override + public java.lang.String getVaultId() { + java.lang.Object ref = vaultId_; + 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(); + vaultId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault.
+   * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vaultId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVaultIdBytes() { + java.lang.Object ref = vaultId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vaultId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_SCHEDULE_TYPE_FIELD_NUMBER = 20; + private int maintenanceScheduleType_ = 0; + /** + * + * + *
+   * Optional. The maintenance schedule of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for maintenanceScheduleType. + */ + @java.lang.Override + public int getMaintenanceScheduleTypeValue() { + return maintenanceScheduleType_; + } + /** + * + * + *
+   * Optional. The maintenance schedule of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceScheduleType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + getMaintenanceScheduleType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + .forNumber(maintenanceScheduleType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + .UNRECOGNIZED + : result; + } + + public static final int MTLS_CONNECTION_REQUIRED_FIELD_NUMBER = 34; + private boolean mtlsConnectionRequired_ = false; + /** + * + * + *
+   * Optional. This field specifies if the Autonomous Database requires mTLS
+   * connections.
+   * 
+ * + * bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mtlsConnectionRequired. + */ + @java.lang.Override + public boolean getMtlsConnectionRequired() { + return mtlsConnectionRequired_; + } + + public static final int BACKUP_RETENTION_PERIOD_DAYS_FIELD_NUMBER = 57; + private int backupRetentionPeriodDays_ = 0; + /** + * + * + *
+   * Optional. The retention period for the Autonomous Database. This field is
+   * specified in days, can range from 1 day to 60 days, and has a default value
+   * of 60 days.
+   * 
+ * + * int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupRetentionPeriodDays. + */ + @java.lang.Override + public int getBackupRetentionPeriodDays() { + return backupRetentionPeriodDays_; + } + + public static final int ACTUAL_USED_DATA_STORAGE_SIZE_TB_FIELD_NUMBER = 21; + private double actualUsedDataStorageSizeTb_ = 0D; + /** + * + * + *
+   * Output only. The amount of storage currently being used for user and system
+   * data, in terabytes.
+   * 
+ * + * + * double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actualUsedDataStorageSizeTb. + */ + @java.lang.Override + public double getActualUsedDataStorageSizeTb() { + return actualUsedDataStorageSizeTb_; + } + + public static final int ALLOCATED_STORAGE_SIZE_TB_FIELD_NUMBER = 22; + private double allocatedStorageSizeTb_ = 0D; + /** + * + * + *
+   * Output only. The amount of storage currently allocated for the database
+   * tables and billed for, rounded up in terabytes.
+   * 
+ * + * double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allocatedStorageSizeTb. + */ + @java.lang.Override + public double getAllocatedStorageSizeTb() { + return allocatedStorageSizeTb_; + } + + public static final int APEX_DETAILS_FIELD_NUMBER = 23; + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex apexDetails_; + /** + * + * + *
+   * Output only. The details for the Oracle APEX Application Development.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the apexDetails field is set. + */ + @java.lang.Override + public boolean hasApexDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The details for the Oracle APEX Application Development.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The apexDetails. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex getApexDetails() { + return apexDetails_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance() + : apexDetails_; + } + /** + * + * + *
+   * Output only. The details for the Oracle APEX Application Development.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder + getApexDetailsOrBuilder() { + return apexDetails_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance() + : apexDetails_; + } + + public static final int ARE_PRIMARY_ALLOWLISTED_IPS_USED_FIELD_NUMBER = 24; + private boolean arePrimaryAllowlistedIpsUsed_ = false; + /** + * + * + *
+   * Output only. This field indicates the status of Data Guard and Access
+   * control for the Autonomous Database. The field's value is null if Data
+   * Guard is disabled or Access Control is disabled. The field's value is TRUE
+   * if both Data Guard and Access Control are enabled, and the Autonomous
+   * Database is using primary IP access control list (ACL) for standby. The
+   * field's value is FALSE if both Data Guard and Access Control are enabled,
+   * and the Autonomous Database is using a different IP access control list
+   * (ACL) for standby compared to primary.
+   * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the arePrimaryAllowlistedIpsUsed field is set. + */ + @java.lang.Override + public boolean hasArePrimaryAllowlistedIpsUsed() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. This field indicates the status of Data Guard and Access
+   * control for the Autonomous Database. The field's value is null if Data
+   * Guard is disabled or Access Control is disabled. The field's value is TRUE
+   * if both Data Guard and Access Control are enabled, and the Autonomous
+   * Database is using primary IP access control list (ACL) for standby. The
+   * field's value is FALSE if both Data Guard and Access Control are enabled,
+   * and the Autonomous Database is using a different IP access control list
+   * (ACL) for standby compared to primary.
+   * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The arePrimaryAllowlistedIpsUsed. + */ + @java.lang.Override + public boolean getArePrimaryAllowlistedIpsUsed() { + return arePrimaryAllowlistedIpsUsed_; + } + + public static final int LIFECYCLE_DETAILS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object lifecycleDetails_ = ""; + /** + * + * + *
+   * Output only. The details of the current lifestyle state of the Autonomous
+   * Database.
+   * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + @java.lang.Override + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + 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(); + lifecycleDetails_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The details of the current lifestyle state of the Autonomous
+   * Database.
+   * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 26; + private int state_ = 0; + /** + * + * + *
+   * Output only. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.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. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.State getState() { + com.google.cloud.oracledatabase.v1.State result = + com.google.cloud.oracledatabase.v1.State.forNumber(state_); + return result == null ? com.google.cloud.oracledatabase.v1.State.UNRECOGNIZED : result; + } + + public static final int AUTONOMOUS_CONTAINER_DATABASE_ID_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private volatile java.lang.Object autonomousContainerDatabaseId_ = ""; + /** + * + * + *
+   * Output only. The Autonomous Container Database OCID.
+   * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The autonomousContainerDatabaseId. + */ + @java.lang.Override + public java.lang.String getAutonomousContainerDatabaseId() { + java.lang.Object ref = autonomousContainerDatabaseId_; + 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(); + autonomousContainerDatabaseId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Autonomous Container Database OCID.
+   * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for autonomousContainerDatabaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutonomousContainerDatabaseIdBytes() { + java.lang.Object ref = autonomousContainerDatabaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousContainerDatabaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVAILABLE_UPGRADE_VERSIONS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList availableUpgradeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableUpgradeVersions. + */ + public com.google.protobuf.ProtocolStringList getAvailableUpgradeVersionsList() { + return availableUpgradeVersions_; + } + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableUpgradeVersions. + */ + public int getAvailableUpgradeVersionsCount() { + return availableUpgradeVersions_.size(); + } + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableUpgradeVersions at the given index. + */ + public java.lang.String getAvailableUpgradeVersions(int index) { + return availableUpgradeVersions_.get(index); + } + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the availableUpgradeVersions at the given index. + */ + public com.google.protobuf.ByteString getAvailableUpgradeVersionsBytes(int index) { + return availableUpgradeVersions_.getByteString(index); + } + + public static final int CONNECTION_STRINGS_FIELD_NUMBER = 29; + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connectionStrings_; + /** + * + * + *
+   * Output only. The connection strings used to connect to an Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectionStrings field is set. + */ + @java.lang.Override + public boolean hasConnectionStrings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. The connection strings used to connect to an Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionStrings. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + getConnectionStrings() { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance() + : connectionStrings_; + } + /** + * + * + *
+   * Output only. The connection strings used to connect to an Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder + getConnectionStringsOrBuilder() { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance() + : connectionStrings_; + } + + public static final int CONNECTION_URLS_FIELD_NUMBER = 30; + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connectionUrls_; + /** + * + * + *
+   * Output only. The Oracle Connection URLs for an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectionUrls field is set. + */ + @java.lang.Override + public boolean hasConnectionUrls() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Output only. The Oracle Connection URLs for an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionUrls. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls getConnectionUrls() { + return connectionUrls_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.getDefaultInstance() + : connectionUrls_; + } + /** + * + * + *
+   * Output only. The Oracle Connection URLs for an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder + getConnectionUrlsOrBuilder() { + return connectionUrls_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.getDefaultInstance() + : connectionUrls_; + } + + public static final int FAILED_DATA_RECOVERY_DURATION_FIELD_NUMBER = 31; + private com.google.protobuf.Duration failedDataRecoveryDuration_; + /** + * + * + *
+   * Output only. This field indicates the number of seconds of data loss during
+   * a Data Guard failover.
+   * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the failedDataRecoveryDuration field is set. + */ + @java.lang.Override + public boolean hasFailedDataRecoveryDuration() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. This field indicates the number of seconds of data loss during
+   * a Data Guard failover.
+   * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The failedDataRecoveryDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getFailedDataRecoveryDuration() { + return failedDataRecoveryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : failedDataRecoveryDuration_; + } + /** + * + * + *
+   * Output only. This field indicates the number of seconds of data loss during
+   * a Data Guard failover.
+   * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getFailedDataRecoveryDurationOrBuilder() { + return failedDataRecoveryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : failedDataRecoveryDuration_; + } + + public static final int MEMORY_TABLE_GBS_FIELD_NUMBER = 32; + private int memoryTableGbs_ = 0; + /** + * + * + *
+   * Output only. The memory assigned to in-memory tables in an Autonomous
+   * Database.
+   * 
+ * + * int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memoryTableGbs. + */ + @java.lang.Override + public int getMemoryTableGbs() { + return memoryTableGbs_; + } + + public static final int IS_LOCAL_DATA_GUARD_ENABLED_FIELD_NUMBER = 33; + private boolean isLocalDataGuardEnabled_ = false; + /** + * + * + *
+   * Output only. This field indicates whether the Autonomous Database has local
+   * (in-region) Data Guard enabled.
+   * 
+ * + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The isLocalDataGuardEnabled. + */ + @java.lang.Override + public boolean getIsLocalDataGuardEnabled() { + return isLocalDataGuardEnabled_; + } + + public static final int LOCAL_ADG_AUTO_FAILOVER_MAX_DATA_LOSS_LIMIT_FIELD_NUMBER = 35; + private int localAdgAutoFailoverMaxDataLossLimit_ = 0; + /** + * + * + *
+   * Output only. This field indicates the maximum data loss limit for an
+   * Autonomous Database, in seconds.
+   * 
+ * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localAdgAutoFailoverMaxDataLossLimit. + */ + @java.lang.Override + public int getLocalAdgAutoFailoverMaxDataLossLimit() { + return localAdgAutoFailoverMaxDataLossLimit_; + } + + public static final int LOCAL_STANDBY_DB_FIELD_NUMBER = 36; + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary localStandbyDb_; + /** + * + * + *
+   * Output only. The details of the Autonomous Data Guard standby database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the localStandbyDb field is set. + */ + @java.lang.Override + public boolean hasLocalStandbyDb() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Output only. The details of the Autonomous Data Guard standby database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localStandbyDb. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary getLocalStandbyDb() { + return localStandbyDb_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.getDefaultInstance() + : localStandbyDb_; + } + /** + * + * + *
+   * Output only. The details of the Autonomous Data Guard standby database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder + getLocalStandbyDbOrBuilder() { + return localStandbyDb_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.getDefaultInstance() + : localStandbyDb_; + } + + public static final int MEMORY_PER_ORACLE_COMPUTE_UNIT_GBS_FIELD_NUMBER = 37; + private int memoryPerOracleComputeUnitGbs_ = 0; + /** + * + * + *
+   * Output only. The amount of memory enabled per ECPU, in gigabytes.
+   * 
+ * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The memoryPerOracleComputeUnitGbs. + */ + @java.lang.Override + public int getMemoryPerOracleComputeUnitGbs() { + return memoryPerOracleComputeUnitGbs_; + } + + public static final int LOCAL_DISASTER_RECOVERY_TYPE_FIELD_NUMBER = 38; + private int localDisasterRecoveryType_ = 0; + /** + * + * + *
+   * Output only. This field indicates the local disaster recovery (DR) type of
+   * an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for localDisasterRecoveryType. + */ + @java.lang.Override + public int getLocalDisasterRecoveryTypeValue() { + return localDisasterRecoveryType_; + } + /** + * + * + *
+   * Output only. This field indicates the local disaster recovery (DR) type of
+   * an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localDisasterRecoveryType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + getLocalDisasterRecoveryType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .LocalDisasterRecoveryType.forNumber(localDisasterRecoveryType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + .UNRECOGNIZED + : result; + } + + public static final int DATA_SAFE_STATE_FIELD_NUMBER = 39; + private int dataSafeState_ = 0; + /** + * + * + *
+   * Output only. The current state of the Data Safe registration for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataSafeState. + */ + @java.lang.Override + public int getDataSafeStateValue() { + return dataSafeState_; + } + /** + * + * + *
+   * Output only. The current state of the Data Safe registration for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSafeState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + getDataSafeState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState.forNumber( + dataSafeState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState.UNRECOGNIZED + : result; + } + + public static final int DATABASE_MANAGEMENT_STATE_FIELD_NUMBER = 40; + private int databaseManagementState_ = 0; + /** + * + * + *
+   * Output only. The current state of database management for the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for databaseManagementState. + */ + @java.lang.Override + public int getDatabaseManagementStateValue() { + return databaseManagementState_; + } + /** + * + * + *
+   * Output only. The current state of database management for the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + getDatabaseManagementState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + .forNumber(databaseManagementState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + .UNRECOGNIZED + : result; + } + + public static final int OPEN_MODE_FIELD_NUMBER = 41; + private int openMode_ = 0; + /** + * + * + *
+   * Output only. This field indicates the current mode of the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + @java.lang.Override + public int getOpenModeValue() { + return openMode_; + } + /** + * + * + *
+   * Output only. This field indicates the current mode of the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The openMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode getOpenMode() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.forNumber( + openMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.UNRECOGNIZED + : result; + } + + public static final int OPERATIONS_INSIGHTS_STATE_FIELD_NUMBER = 42; + private int operationsInsightsState_ = 0; + /** + * + * + *
+   * Output only. This field indicates the state of Operations Insights for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + @java.lang.Override + public int getOperationsInsightsStateValue() { + return operationsInsightsState_; + } + /** + * + * + *
+   * Output only. This field indicates the state of Operations Insights for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OperationsInsightsState getOperationsInsightsState() { + com.google.cloud.oracledatabase.v1.OperationsInsightsState result = + com.google.cloud.oracledatabase.v1.OperationsInsightsState.forNumber( + operationsInsightsState_); + return result == null + ? com.google.cloud.oracledatabase.v1.OperationsInsightsState.UNRECOGNIZED + : result; + } + + public static final int PEER_DB_IDS_FIELD_NUMBER = 43; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList peerDbIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the peerDbIds. + */ + public com.google.protobuf.ProtocolStringList getPeerDbIdsList() { + return peerDbIds_; + } + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of peerDbIds. + */ + public int getPeerDbIdsCount() { + return peerDbIds_.size(); + } + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The peerDbIds at the given index. + */ + public java.lang.String getPeerDbIds(int index) { + return peerDbIds_.get(index); + } + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the peerDbIds at the given index. + */ + public com.google.protobuf.ByteString getPeerDbIdsBytes(int index) { + return peerDbIds_.getByteString(index); + } + + public static final int PERMISSION_LEVEL_FIELD_NUMBER = 44; + private int permissionLevel_ = 0; + /** + * + * + *
+   * Output only. The permission level of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for permissionLevel. + */ + @java.lang.Override + public int getPermissionLevelValue() { + return permissionLevel_; + } + /** + * + * + *
+   * Output only. The permission level of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The permissionLevel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + getPermissionLevel() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel.forNumber( + permissionLevel_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + .UNRECOGNIZED + : result; + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 45; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+   * Output only. The private endpoint for the Autonomous Database.
+   * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateEndpoint. + */ + @java.lang.Override + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + 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(); + privateEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The private endpoint for the Autonomous Database.
+   * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFRESHABLE_MODE_FIELD_NUMBER = 46; + private int refreshableMode_ = 0; + /** + * + * + *
+   * Output only. The refresh mode of the cloned Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for refreshableMode. + */ + @java.lang.Override + public int getRefreshableModeValue() { + return refreshableMode_; + } + /** + * + * + *
+   * Output only. The refresh mode of the cloned Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The refreshableMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + getRefreshableMode() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode.forNumber( + refreshableMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + .UNRECOGNIZED + : result; + } + + public static final int REFRESHABLE_STATE_FIELD_NUMBER = 47; + private int refreshableState_ = 0; + /** + * + * + *
+   * Output only. The refresh State of the clone.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for refreshableState. + */ + @java.lang.Override + public int getRefreshableStateValue() { + return refreshableState_; + } + /** + * + * + *
+   * Output only. The refresh State of the clone.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The refreshableState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + getRefreshableState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState.forNumber( + refreshableState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .UNRECOGNIZED + : result; + } + + public static final int ROLE_FIELD_NUMBER = 48; + private int role_ = 0; + /** + * + * + *
+   * Output only. The Data Guard role of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override + public int getRoleValue() { + return role_; + } + /** + * + * + *
+   * Output only. The Data Guard role of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The role. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role getRole() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.forNumber(role_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.UNRECOGNIZED + : result; + } + + public static final int SCHEDULED_OPERATION_DETAILS_FIELD_NUMBER = 64; + + @SuppressWarnings("serial") + private java.util.List + scheduledOperationDetails_; + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getScheduledOperationDetailsList() { + return scheduledOperationDetails_; + } + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + getScheduledOperationDetailsOrBuilderList() { + return scheduledOperationDetails_; + } + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getScheduledOperationDetailsCount() { + return scheduledOperationDetails_.size(); + } + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails getScheduledOperationDetails( + int index) { + return scheduledOperationDetails_.get(index); + } + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder + getScheduledOperationDetailsOrBuilder(int index) { + return scheduledOperationDetails_.get(index); + } + + public static final int SQL_WEB_DEVELOPER_URL_FIELD_NUMBER = 50; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlWebDeveloperUrl_ = ""; + /** + * + * + *
+   * Output only. The SQL Web Developer URL for the Autonomous Database.
+   * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sqlWebDeveloperUrl. + */ + @java.lang.Override + public java.lang.String getSqlWebDeveloperUrl() { + java.lang.Object ref = sqlWebDeveloperUrl_; + 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(); + sqlWebDeveloperUrl_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The SQL Web Developer URL for the Autonomous Database.
+   * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sqlWebDeveloperUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlWebDeveloperUrlBytes() { + java.lang.Object ref = sqlWebDeveloperUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlWebDeveloperUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORTED_CLONE_REGIONS_FIELD_NUMBER = 51; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList supportedCloneRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the supportedCloneRegions. + */ + public com.google.protobuf.ProtocolStringList getSupportedCloneRegionsList() { + return supportedCloneRegions_; + } + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of supportedCloneRegions. + */ + public int getSupportedCloneRegionsCount() { + return supportedCloneRegions_.size(); + } + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The supportedCloneRegions at the given index. + */ + public java.lang.String getSupportedCloneRegions(int index) { + return supportedCloneRegions_.get(index); + } + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedCloneRegions at the given index. + */ + public com.google.protobuf.ByteString getSupportedCloneRegionsBytes(int index) { + return supportedCloneRegions_.getByteString(index); + } + + public static final int USED_DATA_STORAGE_SIZE_TBS_FIELD_NUMBER = 53; + private int usedDataStorageSizeTbs_ = 0; + /** + * + * + *
+   * Output only. The storage space used by Autonomous Database, in gigabytes.
+   * 
+ * + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usedDataStorageSizeTbs. + */ + @java.lang.Override + public int getUsedDataStorageSizeTbs() { + return usedDataStorageSizeTbs_; + } + + public static final int OCI_URL_FIELD_NUMBER = 54; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUrl_ = ""; + /** + * + * + *
+   * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+   * Database.
+   * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + @java.lang.Override + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + 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(); + ociUrl_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+   * Database.
+   * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_AUTO_BACKUP_STORAGE_SIZE_GBS_FIELD_NUMBER = 59; + private float totalAutoBackupStorageSizeGbs_ = 0F; + /** + * + * + *
+   * Output only. The storage space used by automatic backups of Autonomous
+   * Database, in gigabytes.
+   * 
+ * + * + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalAutoBackupStorageSizeGbs. + */ + @java.lang.Override + public float getTotalAutoBackupStorageSizeGbs() { + return totalAutoBackupStorageSizeGbs_; + } + + public static final int NEXT_LONG_TERM_BACKUP_TIME_FIELD_NUMBER = 60; + private com.google.protobuf.Timestamp nextLongTermBackupTime_; + /** + * + * + *
+   * Output only. The long term backup schedule of the Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextLongTermBackupTime field is set. + */ + @java.lang.Override + public boolean hasNextLongTermBackupTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Output only. The long term backup schedule of the Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextLongTermBackupTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getNextLongTermBackupTime() { + return nextLongTermBackupTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextLongTermBackupTime_; + } + /** + * + * + *
+   * Output only. The long term backup schedule of the Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder() { + return nextLongTermBackupTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextLongTermBackupTime_; + } + + public static final int MAINTENANCE_BEGIN_TIME_FIELD_NUMBER = 65; + private com.google.protobuf.Timestamp maintenanceBeginTime_; + /** + * + * + *
+   * Output only. The date and time when maintenance will begin.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceBeginTime field is set. + */ + @java.lang.Override + public boolean hasMaintenanceBeginTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Output only. The date and time when maintenance will begin.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceBeginTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMaintenanceBeginTime() { + return maintenanceBeginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceBeginTime_; + } + /** + * + * + *
+   * Output only. The date and time when maintenance will begin.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder() { + return maintenanceBeginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceBeginTime_; + } + + public static final int MAINTENANCE_END_TIME_FIELD_NUMBER = 66; + private com.google.protobuf.Timestamp maintenanceEndTime_; + /** + * + * + *
+   * Output only. The date and time when maintenance will end.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceEndTime field is set. + */ + @java.lang.Override + public boolean hasMaintenanceEndTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Output only. The date and time when maintenance will end.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMaintenanceEndTime() { + return maintenanceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceEndTime_; + } + /** + * + * + *
+   * Output only. The date and time when maintenance will end.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder() { + return maintenanceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceEndTime_; + } + + 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(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (java.lang.Float.floatToRawIntBits(computeCount_) != 0) { + output.writeFloat(2, computeCount_); + } + if (cpuCoreCount_ != 0) { + output.writeInt32(3, cpuCoreCount_); + } + if (dataStorageSizeTb_ != 0) { + output.writeInt32(4, dataStorageSizeTb_); + } + if (dbWorkload_ + != com.google.cloud.oracledatabase.v1.DBWorkload.DB_WORKLOAD_UNSPECIFIED.getNumber()) { + output.writeEnum(5, dbWorkload_); + } + if (dbEdition_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + .DATABASE_EDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, dbEdition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, characterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nCharacterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, nCharacterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointLabel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, privateEndpointLabel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dbVersion_); + } + if (isAutoScalingEnabled_ != false) { + output.writeBool(14, isAutoScalingEnabled_); + } + if (isStorageAutoScalingEnabled_ != false) { + output.writeBool(15, isStorageAutoScalingEnabled_); + } + if (licenseType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType + .LICENSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, licenseType_); + } + for (int i = 0; i < customerContacts_.size(); i++) { + output.writeMessage(17, customerContacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, secretId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaultId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, vaultId_); + } + if (maintenanceScheduleType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + .MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(20, maintenanceScheduleType_); + } + if (java.lang.Double.doubleToRawLongBits(actualUsedDataStorageSizeTb_) != 0) { + output.writeDouble(21, actualUsedDataStorageSizeTb_); + } + if (java.lang.Double.doubleToRawLongBits(allocatedStorageSizeTb_) != 0) { + output.writeDouble(22, allocatedStorageSizeTb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(23, getApexDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(24, arePrimaryAllowlistedIpsUsed_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, lifecycleDetails_); + } + if (state_ != com.google.cloud.oracledatabase.v1.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(26, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousContainerDatabaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 27, autonomousContainerDatabaseId_); + } + for (int i = 0; i < availableUpgradeVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 28, availableUpgradeVersions_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(29, getConnectionStrings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(30, getConnectionUrls()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(31, getFailedDataRecoveryDuration()); + } + if (memoryTableGbs_ != 0) { + output.writeInt32(32, memoryTableGbs_); + } + if (isLocalDataGuardEnabled_ != false) { + output.writeBool(33, isLocalDataGuardEnabled_); + } + if (mtlsConnectionRequired_ != false) { + output.writeBool(34, mtlsConnectionRequired_); + } + if (localAdgAutoFailoverMaxDataLossLimit_ != 0) { + output.writeInt32(35, localAdgAutoFailoverMaxDataLossLimit_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(36, getLocalStandbyDb()); + } + if (memoryPerOracleComputeUnitGbs_ != 0) { + output.writeInt32(37, memoryPerOracleComputeUnitGbs_); + } + if (localDisasterRecoveryType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + .LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(38, localDisasterRecoveryType_); + } + if (dataSafeState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + .DATA_SAFE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(39, dataSafeState_); + } + if (databaseManagementState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + .DATABASE_MANAGEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(40, databaseManagementState_); + } + if (openMode_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode + .OPEN_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(41, openMode_); + } + if (operationsInsightsState_ + != com.google.cloud.oracledatabase.v1.OperationsInsightsState + .OPERATIONS_INSIGHTS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(42, operationsInsightsState_); + } + for (int i = 0; i < peerDbIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 43, peerDbIds_.getRaw(i)); + } + if (permissionLevel_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + .PERMISSION_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(44, permissionLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 45, privateEndpoint_); + } + if (refreshableMode_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + .REFRESHABLE_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(46, refreshableMode_); + } + if (refreshableState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .REFRESHABLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(47, refreshableState_); + } + if (role_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.ROLE_UNSPECIFIED + .getNumber()) { + output.writeEnum(48, role_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlWebDeveloperUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 50, sqlWebDeveloperUrl_); + } + for (int i = 0; i < supportedCloneRegions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 51, supportedCloneRegions_.getRaw(i)); + } + if (usedDataStorageSizeTbs_ != 0) { + output.writeInt32(53, usedDataStorageSizeTbs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 54, ociUrl_); + } + if (backupRetentionPeriodDays_ != 0) { + output.writeInt32(57, backupRetentionPeriodDays_); + } + if (java.lang.Float.floatToRawIntBits(totalAutoBackupStorageSizeGbs_) != 0) { + output.writeFloat(59, totalAutoBackupStorageSizeGbs_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(60, getNextLongTermBackupTime()); + } + if (dataStorageSizeGb_ != 0) { + output.writeInt32(63, dataStorageSizeGb_); + } + for (int i = 0; i < scheduledOperationDetails_.size(); i++) { + output.writeMessage(64, scheduledOperationDetails_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(65, getMaintenanceBeginTime()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(66, getMaintenanceEndTime()); + } + 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(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (java.lang.Float.floatToRawIntBits(computeCount_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, computeCount_); + } + if (cpuCoreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, cpuCoreCount_); + } + if (dataStorageSizeTb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, dataStorageSizeTb_); + } + if (dbWorkload_ + != com.google.cloud.oracledatabase.v1.DBWorkload.DB_WORKLOAD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, dbWorkload_); + } + if (dbEdition_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + .DATABASE_EDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, dbEdition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, characterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nCharacterSet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, nCharacterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, privateEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointLabel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, privateEndpointLabel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, dbVersion_); + } + if (isAutoScalingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, isAutoScalingEnabled_); + } + if (isStorageAutoScalingEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(15, isStorageAutoScalingEnabled_); + } + if (licenseType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType + .LICENSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, licenseType_); + } + for (int i = 0; i < customerContacts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, customerContacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, secretId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaultId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, vaultId_); + } + if (maintenanceScheduleType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + .MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, maintenanceScheduleType_); + } + if (java.lang.Double.doubleToRawLongBits(actualUsedDataStorageSizeTb_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(21, actualUsedDataStorageSizeTb_); + } + if (java.lang.Double.doubleToRawLongBits(allocatedStorageSizeTb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, allocatedStorageSizeTb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getApexDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(24, arePrimaryAllowlistedIpsUsed_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, lifecycleDetails_); + } + if (state_ != com.google.cloud.oracledatabase.v1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousContainerDatabaseId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 27, autonomousContainerDatabaseId_); + } + { + int dataSize = 0; + for (int i = 0; i < availableUpgradeVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(availableUpgradeVersions_.getRaw(i)); + } + size += dataSize; + size += 2 * getAvailableUpgradeVersionsList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getConnectionStrings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getConnectionUrls()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, getFailedDataRecoveryDuration()); + } + if (memoryTableGbs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(32, memoryTableGbs_); + } + if (isLocalDataGuardEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, isLocalDataGuardEnabled_); + } + if (mtlsConnectionRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, mtlsConnectionRequired_); + } + if (localAdgAutoFailoverMaxDataLossLimit_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 35, localAdgAutoFailoverMaxDataLossLimit_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getLocalStandbyDb()); + } + if (memoryPerOracleComputeUnitGbs_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 37, memoryPerOracleComputeUnitGbs_); + } + if (localDisasterRecoveryType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + .LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, localDisasterRecoveryType_); + } + if (dataSafeState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + .DATA_SAFE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(39, dataSafeState_); + } + if (databaseManagementState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + .DATABASE_MANAGEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(40, databaseManagementState_); + } + if (openMode_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode + .OPEN_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(41, openMode_); + } + if (operationsInsightsState_ + != com.google.cloud.oracledatabase.v1.OperationsInsightsState + .OPERATIONS_INSIGHTS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(42, operationsInsightsState_); + } + { + int dataSize = 0; + for (int i = 0; i < peerDbIds_.size(); i++) { + dataSize += computeStringSizeNoTag(peerDbIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getPeerDbIdsList().size(); + } + if (permissionLevel_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + .PERMISSION_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(44, permissionLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(45, privateEndpoint_); + } + if (refreshableMode_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + .REFRESHABLE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(46, refreshableMode_); + } + if (refreshableState_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .REFRESHABLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(47, refreshableState_); + } + if (role_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.ROLE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(48, role_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlWebDeveloperUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, sqlWebDeveloperUrl_); + } + { + int dataSize = 0; + for (int i = 0; i < supportedCloneRegions_.size(); i++) { + dataSize += computeStringSizeNoTag(supportedCloneRegions_.getRaw(i)); + } + size += dataSize; + size += 2 * getSupportedCloneRegionsList().size(); + } + if (usedDataStorageSizeTbs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(53, usedDataStorageSizeTbs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(54, ociUrl_); + } + if (backupRetentionPeriodDays_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(57, backupRetentionPeriodDays_); + } + if (java.lang.Float.floatToRawIntBits(totalAutoBackupStorageSizeGbs_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 59, totalAutoBackupStorageSizeGbs_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(60, getNextLongTermBackupTime()); + } + if (dataStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(63, dataStorageSizeGb_); + } + for (int i = 0; i < scheduledOperationDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 64, scheduledOperationDetails_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(65, getMaintenanceBeginTime()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(66, getMaintenanceEndTime()); + } + 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.oracledatabase.v1.AutonomousDatabaseProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (java.lang.Float.floatToIntBits(getComputeCount()) + != java.lang.Float.floatToIntBits(other.getComputeCount())) return false; + if (getCpuCoreCount() != other.getCpuCoreCount()) return false; + if (getDataStorageSizeTb() != other.getDataStorageSizeTb()) return false; + if (getDataStorageSizeGb() != other.getDataStorageSizeGb()) return false; + if (dbWorkload_ != other.dbWorkload_) return false; + if (dbEdition_ != other.dbEdition_) return false; + if (!getCharacterSet().equals(other.getCharacterSet())) return false; + if (!getNCharacterSet().equals(other.getNCharacterSet())) return false; + if (!getPrivateEndpointIp().equals(other.getPrivateEndpointIp())) return false; + if (!getPrivateEndpointLabel().equals(other.getPrivateEndpointLabel())) return false; + if (!getDbVersion().equals(other.getDbVersion())) return false; + if (getIsAutoScalingEnabled() != other.getIsAutoScalingEnabled()) return false; + if (getIsStorageAutoScalingEnabled() != other.getIsStorageAutoScalingEnabled()) return false; + if (licenseType_ != other.licenseType_) return false; + if (!getCustomerContactsList().equals(other.getCustomerContactsList())) return false; + if (!getSecretId().equals(other.getSecretId())) return false; + if (!getVaultId().equals(other.getVaultId())) return false; + if (maintenanceScheduleType_ != other.maintenanceScheduleType_) return false; + if (getMtlsConnectionRequired() != other.getMtlsConnectionRequired()) return false; + if (getBackupRetentionPeriodDays() != other.getBackupRetentionPeriodDays()) return false; + if (java.lang.Double.doubleToLongBits(getActualUsedDataStorageSizeTb()) + != java.lang.Double.doubleToLongBits(other.getActualUsedDataStorageSizeTb())) return false; + if (java.lang.Double.doubleToLongBits(getAllocatedStorageSizeTb()) + != java.lang.Double.doubleToLongBits(other.getAllocatedStorageSizeTb())) return false; + if (hasApexDetails() != other.hasApexDetails()) return false; + if (hasApexDetails()) { + if (!getApexDetails().equals(other.getApexDetails())) return false; + } + if (hasArePrimaryAllowlistedIpsUsed() != other.hasArePrimaryAllowlistedIpsUsed()) return false; + if (hasArePrimaryAllowlistedIpsUsed()) { + if (getArePrimaryAllowlistedIpsUsed() != other.getArePrimaryAllowlistedIpsUsed()) + return false; + } + if (!getLifecycleDetails().equals(other.getLifecycleDetails())) return false; + if (state_ != other.state_) return false; + if (!getAutonomousContainerDatabaseId().equals(other.getAutonomousContainerDatabaseId())) + return false; + if (!getAvailableUpgradeVersionsList().equals(other.getAvailableUpgradeVersionsList())) + return false; + if (hasConnectionStrings() != other.hasConnectionStrings()) return false; + if (hasConnectionStrings()) { + if (!getConnectionStrings().equals(other.getConnectionStrings())) return false; + } + if (hasConnectionUrls() != other.hasConnectionUrls()) return false; + if (hasConnectionUrls()) { + if (!getConnectionUrls().equals(other.getConnectionUrls())) return false; + } + if (hasFailedDataRecoveryDuration() != other.hasFailedDataRecoveryDuration()) return false; + if (hasFailedDataRecoveryDuration()) { + if (!getFailedDataRecoveryDuration().equals(other.getFailedDataRecoveryDuration())) + return false; + } + if (getMemoryTableGbs() != other.getMemoryTableGbs()) return false; + if (getIsLocalDataGuardEnabled() != other.getIsLocalDataGuardEnabled()) return false; + if (getLocalAdgAutoFailoverMaxDataLossLimit() + != other.getLocalAdgAutoFailoverMaxDataLossLimit()) return false; + if (hasLocalStandbyDb() != other.hasLocalStandbyDb()) return false; + if (hasLocalStandbyDb()) { + if (!getLocalStandbyDb().equals(other.getLocalStandbyDb())) return false; + } + if (getMemoryPerOracleComputeUnitGbs() != other.getMemoryPerOracleComputeUnitGbs()) + return false; + if (localDisasterRecoveryType_ != other.localDisasterRecoveryType_) return false; + if (dataSafeState_ != other.dataSafeState_) return false; + if (databaseManagementState_ != other.databaseManagementState_) return false; + if (openMode_ != other.openMode_) return false; + if (operationsInsightsState_ != other.operationsInsightsState_) return false; + if (!getPeerDbIdsList().equals(other.getPeerDbIdsList())) return false; + if (permissionLevel_ != other.permissionLevel_) return false; + if (!getPrivateEndpoint().equals(other.getPrivateEndpoint())) return false; + if (refreshableMode_ != other.refreshableMode_) return false; + if (refreshableState_ != other.refreshableState_) return false; + if (role_ != other.role_) return false; + if (!getScheduledOperationDetailsList().equals(other.getScheduledOperationDetailsList())) + return false; + if (!getSqlWebDeveloperUrl().equals(other.getSqlWebDeveloperUrl())) return false; + if (!getSupportedCloneRegionsList().equals(other.getSupportedCloneRegionsList())) return false; + if (getUsedDataStorageSizeTbs() != other.getUsedDataStorageSizeTbs()) return false; + if (!getOciUrl().equals(other.getOciUrl())) return false; + if (java.lang.Float.floatToIntBits(getTotalAutoBackupStorageSizeGbs()) + != java.lang.Float.floatToIntBits(other.getTotalAutoBackupStorageSizeGbs())) return false; + if (hasNextLongTermBackupTime() != other.hasNextLongTermBackupTime()) return false; + if (hasNextLongTermBackupTime()) { + if (!getNextLongTermBackupTime().equals(other.getNextLongTermBackupTime())) return false; + } + if (hasMaintenanceBeginTime() != other.hasMaintenanceBeginTime()) return false; + if (hasMaintenanceBeginTime()) { + if (!getMaintenanceBeginTime().equals(other.getMaintenanceBeginTime())) return false; + } + if (hasMaintenanceEndTime() != other.hasMaintenanceEndTime()) return false; + if (hasMaintenanceEndTime()) { + if (!getMaintenanceEndTime().equals(other.getMaintenanceEndTime())) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + COMPUTE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getComputeCount()); + hash = (37 * hash) + CPU_CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCpuCoreCount(); + hash = (37 * hash) + DATA_STORAGE_SIZE_TB_FIELD_NUMBER; + hash = (53 * hash) + getDataStorageSizeTb(); + hash = (37 * hash) + DATA_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDataStorageSizeGb(); + hash = (37 * hash) + DB_WORKLOAD_FIELD_NUMBER; + hash = (53 * hash) + dbWorkload_; + hash = (37 * hash) + DB_EDITION_FIELD_NUMBER; + hash = (53 * hash) + dbEdition_; + hash = (37 * hash) + CHARACTER_SET_FIELD_NUMBER; + hash = (53 * hash) + getCharacterSet().hashCode(); + hash = (37 * hash) + N_CHARACTER_SET_FIELD_NUMBER; + hash = (53 * hash) + getNCharacterSet().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_IP_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpointIp().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpointLabel().hashCode(); + hash = (37 * hash) + DB_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDbVersion().hashCode(); + hash = (37 * hash) + IS_AUTO_SCALING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAutoScalingEnabled()); + hash = (37 * hash) + IS_STORAGE_AUTO_SCALING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsStorageAutoScalingEnabled()); + hash = (37 * hash) + LICENSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + licenseType_; + if (getCustomerContactsCount() > 0) { + hash = (37 * hash) + CUSTOMER_CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getCustomerContactsList().hashCode(); + } + hash = (37 * hash) + SECRET_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecretId().hashCode(); + hash = (37 * hash) + VAULT_ID_FIELD_NUMBER; + hash = (53 * hash) + getVaultId().hashCode(); + hash = (37 * hash) + MAINTENANCE_SCHEDULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + maintenanceScheduleType_; + hash = (37 * hash) + MTLS_CONNECTION_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMtlsConnectionRequired()); + hash = (37 * hash) + BACKUP_RETENTION_PERIOD_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getBackupRetentionPeriodDays(); + hash = (37 * hash) + ACTUAL_USED_DATA_STORAGE_SIZE_TB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getActualUsedDataStorageSizeTb())); + hash = (37 * hash) + ALLOCATED_STORAGE_SIZE_TB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAllocatedStorageSizeTb())); + if (hasApexDetails()) { + hash = (37 * hash) + APEX_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getApexDetails().hashCode(); + } + if (hasArePrimaryAllowlistedIpsUsed()) { + hash = (37 * hash) + ARE_PRIMARY_ALLOWLISTED_IPS_USED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArePrimaryAllowlistedIpsUsed()); + } + hash = (37 * hash) + LIFECYCLE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLifecycleDetails().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + AUTONOMOUS_CONTAINER_DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousContainerDatabaseId().hashCode(); + if (getAvailableUpgradeVersionsCount() > 0) { + hash = (37 * hash) + AVAILABLE_UPGRADE_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAvailableUpgradeVersionsList().hashCode(); + } + if (hasConnectionStrings()) { + hash = (37 * hash) + CONNECTION_STRINGS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionStrings().hashCode(); + } + if (hasConnectionUrls()) { + hash = (37 * hash) + CONNECTION_URLS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionUrls().hashCode(); + } + if (hasFailedDataRecoveryDuration()) { + hash = (37 * hash) + FAILED_DATA_RECOVERY_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getFailedDataRecoveryDuration().hashCode(); + } + hash = (37 * hash) + MEMORY_TABLE_GBS_FIELD_NUMBER; + hash = (53 * hash) + getMemoryTableGbs(); + hash = (37 * hash) + IS_LOCAL_DATA_GUARD_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLocalDataGuardEnabled()); + hash = (37 * hash) + LOCAL_ADG_AUTO_FAILOVER_MAX_DATA_LOSS_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLocalAdgAutoFailoverMaxDataLossLimit(); + if (hasLocalStandbyDb()) { + hash = (37 * hash) + LOCAL_STANDBY_DB_FIELD_NUMBER; + hash = (53 * hash) + getLocalStandbyDb().hashCode(); + } + hash = (37 * hash) + MEMORY_PER_ORACLE_COMPUTE_UNIT_GBS_FIELD_NUMBER; + hash = (53 * hash) + getMemoryPerOracleComputeUnitGbs(); + hash = (37 * hash) + LOCAL_DISASTER_RECOVERY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + localDisasterRecoveryType_; + hash = (37 * hash) + DATA_SAFE_STATE_FIELD_NUMBER; + hash = (53 * hash) + dataSafeState_; + hash = (37 * hash) + DATABASE_MANAGEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + databaseManagementState_; + hash = (37 * hash) + OPEN_MODE_FIELD_NUMBER; + hash = (53 * hash) + openMode_; + hash = (37 * hash) + OPERATIONS_INSIGHTS_STATE_FIELD_NUMBER; + hash = (53 * hash) + operationsInsightsState_; + if (getPeerDbIdsCount() > 0) { + hash = (37 * hash) + PEER_DB_IDS_FIELD_NUMBER; + hash = (53 * hash) + getPeerDbIdsList().hashCode(); + } + hash = (37 * hash) + PERMISSION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + permissionLevel_; + hash = (37 * hash) + PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoint().hashCode(); + hash = (37 * hash) + REFRESHABLE_MODE_FIELD_NUMBER; + hash = (53 * hash) + refreshableMode_; + hash = (37 * hash) + REFRESHABLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + refreshableState_; + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + if (getScheduledOperationDetailsCount() > 0) { + hash = (37 * hash) + SCHEDULED_OPERATION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getScheduledOperationDetailsList().hashCode(); + } + hash = (37 * hash) + SQL_WEB_DEVELOPER_URL_FIELD_NUMBER; + hash = (53 * hash) + getSqlWebDeveloperUrl().hashCode(); + if (getSupportedCloneRegionsCount() > 0) { + hash = (37 * hash) + SUPPORTED_CLONE_REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getSupportedCloneRegionsList().hashCode(); + } + hash = (37 * hash) + USED_DATA_STORAGE_SIZE_TBS_FIELD_NUMBER; + hash = (53 * hash) + getUsedDataStorageSizeTbs(); + hash = (37 * hash) + OCI_URL_FIELD_NUMBER; + hash = (53 * hash) + getOciUrl().hashCode(); + hash = (37 * hash) + TOTAL_AUTO_BACKUP_STORAGE_SIZE_GBS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalAutoBackupStorageSizeGbs()); + if (hasNextLongTermBackupTime()) { + hash = (37 * hash) + NEXT_LONG_TERM_BACKUP_TIME_FIELD_NUMBER; + hash = (53 * hash) + getNextLongTermBackupTime().hashCode(); + } + if (hasMaintenanceBeginTime()) { + hash = (37 * hash) + MAINTENANCE_BEGIN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceBeginTime().hashCode(); + } + if (hasMaintenanceEndTime()) { + hash = (37 * hash) + MAINTENANCE_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties 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.oracledatabase.v1.AutonomousDatabaseProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties 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.oracledatabase.v1.AutonomousDatabaseProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties 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.oracledatabase.v1.AutonomousDatabaseProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties 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.oracledatabase.v1.AutonomousDatabaseProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties 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.oracledatabase.v1.AutonomousDatabaseProperties 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 properties of an Autonomous Database.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties) + com.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomerContactsFieldBuilder(); + getApexDetailsFieldBuilder(); + getConnectionStringsFieldBuilder(); + getConnectionUrlsFieldBuilder(); + getFailedDataRecoveryDurationFieldBuilder(); + getLocalStandbyDbFieldBuilder(); + getScheduledOperationDetailsFieldBuilder(); + getNextLongTermBackupTimeFieldBuilder(); + getMaintenanceBeginTimeFieldBuilder(); + getMaintenanceEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + ocid_ = ""; + computeCount_ = 0F; + cpuCoreCount_ = 0; + dataStorageSizeTb_ = 0; + dataStorageSizeGb_ = 0; + dbWorkload_ = 0; + dbEdition_ = 0; + characterSet_ = ""; + nCharacterSet_ = ""; + privateEndpointIp_ = ""; + privateEndpointLabel_ = ""; + dbVersion_ = ""; + isAutoScalingEnabled_ = false; + isStorageAutoScalingEnabled_ = false; + licenseType_ = 0; + if (customerContactsBuilder_ == null) { + customerContacts_ = java.util.Collections.emptyList(); + } else { + customerContacts_ = null; + customerContactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + secretId_ = ""; + vaultId_ = ""; + maintenanceScheduleType_ = 0; + mtlsConnectionRequired_ = false; + backupRetentionPeriodDays_ = 0; + actualUsedDataStorageSizeTb_ = 0D; + allocatedStorageSizeTb_ = 0D; + apexDetails_ = null; + if (apexDetailsBuilder_ != null) { + apexDetailsBuilder_.dispose(); + apexDetailsBuilder_ = null; + } + arePrimaryAllowlistedIpsUsed_ = false; + lifecycleDetails_ = ""; + state_ = 0; + autonomousContainerDatabaseId_ = ""; + availableUpgradeVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + connectionStrings_ = null; + if (connectionStringsBuilder_ != null) { + connectionStringsBuilder_.dispose(); + connectionStringsBuilder_ = null; + } + connectionUrls_ = null; + if (connectionUrlsBuilder_ != null) { + connectionUrlsBuilder_.dispose(); + connectionUrlsBuilder_ = null; + } + failedDataRecoveryDuration_ = null; + if (failedDataRecoveryDurationBuilder_ != null) { + failedDataRecoveryDurationBuilder_.dispose(); + failedDataRecoveryDurationBuilder_ = null; + } + memoryTableGbs_ = 0; + isLocalDataGuardEnabled_ = false; + localAdgAutoFailoverMaxDataLossLimit_ = 0; + localStandbyDb_ = null; + if (localStandbyDbBuilder_ != null) { + localStandbyDbBuilder_.dispose(); + localStandbyDbBuilder_ = null; + } + memoryPerOracleComputeUnitGbs_ = 0; + localDisasterRecoveryType_ = 0; + dataSafeState_ = 0; + databaseManagementState_ = 0; + openMode_ = 0; + operationsInsightsState_ = 0; + peerDbIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + permissionLevel_ = 0; + privateEndpoint_ = ""; + refreshableMode_ = 0; + refreshableState_ = 0; + role_ = 0; + if (scheduledOperationDetailsBuilder_ == null) { + scheduledOperationDetails_ = java.util.Collections.emptyList(); + } else { + scheduledOperationDetails_ = null; + scheduledOperationDetailsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00010000); + sqlWebDeveloperUrl_ = ""; + supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + usedDataStorageSizeTbs_ = 0; + ociUrl_ = ""; + totalAutoBackupStorageSizeGbs_ = 0F; + nextLongTermBackupTime_ = null; + if (nextLongTermBackupTimeBuilder_ != null) { + nextLongTermBackupTimeBuilder_.dispose(); + nextLongTermBackupTimeBuilder_ = null; + } + maintenanceBeginTime_ = null; + if (maintenanceBeginTimeBuilder_ != null) { + maintenanceBeginTimeBuilder_.dispose(); + maintenanceBeginTimeBuilder_ = null; + } + maintenanceEndTime_ = null; + if (maintenanceEndTimeBuilder_ != null) { + maintenanceEndTimeBuilder_.dispose(); + maintenanceEndTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties result) { + if (customerContactsBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0)) { + customerContacts_ = java.util.Collections.unmodifiableList(customerContacts_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.customerContacts_ = customerContacts_; + } else { + result.customerContacts_ = customerContactsBuilder_.build(); + } + if (scheduledOperationDetailsBuilder_ == null) { + if (((bitField1_ & 0x00010000) != 0)) { + scheduledOperationDetails_ = + java.util.Collections.unmodifiableList(scheduledOperationDetails_); + bitField1_ = (bitField1_ & ~0x00010000); + } + result.scheduledOperationDetails_ = scheduledOperationDetails_; + } else { + result.scheduledOperationDetails_ = scheduledOperationDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.computeCount_ = computeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cpuCoreCount_ = cpuCoreCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataStorageSizeTb_ = dataStorageSizeTb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataStorageSizeGb_ = dataStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dbWorkload_ = dbWorkload_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dbEdition_ = dbEdition_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.characterSet_ = characterSet_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.nCharacterSet_ = nCharacterSet_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.privateEndpointIp_ = privateEndpointIp_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.privateEndpointLabel_ = privateEndpointLabel_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.dbVersion_ = dbVersion_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isAutoScalingEnabled_ = isAutoScalingEnabled_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.isStorageAutoScalingEnabled_ = isStorageAutoScalingEnabled_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.licenseType_ = licenseType_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.secretId_ = secretId_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.vaultId_ = vaultId_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.maintenanceScheduleType_ = maintenanceScheduleType_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.mtlsConnectionRequired_ = mtlsConnectionRequired_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.backupRetentionPeriodDays_ = backupRetentionPeriodDays_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.actualUsedDataStorageSizeTb_ = actualUsedDataStorageSizeTb_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.allocatedStorageSizeTb_ = allocatedStorageSizeTb_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00800000) != 0)) { + result.apexDetails_ = + apexDetailsBuilder_ == null ? apexDetails_ : apexDetailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.arePrimaryAllowlistedIpsUsed_ = arePrimaryAllowlistedIpsUsed_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.lifecycleDetails_ = lifecycleDetails_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.autonomousContainerDatabaseId_ = autonomousContainerDatabaseId_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + availableUpgradeVersions_.makeImmutable(); + result.availableUpgradeVersions_ = availableUpgradeVersions_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.connectionStrings_ = + connectionStringsBuilder_ == null + ? connectionStrings_ + : connectionStringsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.connectionUrls_ = + connectionUrlsBuilder_ == null ? connectionUrls_ : connectionUrlsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.failedDataRecoveryDuration_ = + failedDataRecoveryDurationBuilder_ == null + ? failedDataRecoveryDuration_ + : failedDataRecoveryDurationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.memoryTableGbs_ = memoryTableGbs_; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.isLocalDataGuardEnabled_ = isLocalDataGuardEnabled_; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.localAdgAutoFailoverMaxDataLossLimit_ = localAdgAutoFailoverMaxDataLossLimit_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000008) != 0)) { + result.localStandbyDb_ = + localStandbyDbBuilder_ == null ? localStandbyDb_ : localStandbyDbBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.memoryPerOracleComputeUnitGbs_ = memoryPerOracleComputeUnitGbs_; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.localDisasterRecoveryType_ = localDisasterRecoveryType_; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.dataSafeState_ = dataSafeState_; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.databaseManagementState_ = databaseManagementState_; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.openMode_ = openMode_; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.operationsInsightsState_ = operationsInsightsState_; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + peerDbIds_.makeImmutable(); + result.peerDbIds_ = peerDbIds_; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.permissionLevel_ = permissionLevel_; + } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.privateEndpoint_ = privateEndpoint_; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.refreshableMode_ = refreshableMode_; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.refreshableState_ = refreshableState_; + } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.role_ = role_; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + result.sqlWebDeveloperUrl_ = sqlWebDeveloperUrl_; + } + if (((from_bitField1_ & 0x00040000) != 0)) { + supportedCloneRegions_.makeImmutable(); + result.supportedCloneRegions_ = supportedCloneRegions_; + } + if (((from_bitField1_ & 0x00080000) != 0)) { + result.usedDataStorageSizeTbs_ = usedDataStorageSizeTbs_; + } + if (((from_bitField1_ & 0x00100000) != 0)) { + result.ociUrl_ = ociUrl_; + } + if (((from_bitField1_ & 0x00200000) != 0)) { + result.totalAutoBackupStorageSizeGbs_ = totalAutoBackupStorageSizeGbs_; + } + if (((from_bitField1_ & 0x00400000) != 0)) { + result.nextLongTermBackupTime_ = + nextLongTermBackupTimeBuilder_ == null + ? nextLongTermBackupTime_ + : nextLongTermBackupTimeBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField1_ & 0x00800000) != 0)) { + result.maintenanceBeginTime_ = + maintenanceBeginTimeBuilder_ == null + ? maintenanceBeginTime_ + : maintenanceBeginTimeBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField1_ & 0x01000000) != 0)) { + result.maintenanceEndTime_ = + maintenanceEndTimeBuilder_ == null + ? maintenanceEndTime_ + : maintenanceEndTimeBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + 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.oracledatabase.v1.AutonomousDatabaseProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties other) { + if (other + == com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.getDefaultInstance()) + return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getComputeCount() != 0F) { + setComputeCount(other.getComputeCount()); + } + if (other.getCpuCoreCount() != 0) { + setCpuCoreCount(other.getCpuCoreCount()); + } + if (other.getDataStorageSizeTb() != 0) { + setDataStorageSizeTb(other.getDataStorageSizeTb()); + } + if (other.getDataStorageSizeGb() != 0) { + setDataStorageSizeGb(other.getDataStorageSizeGb()); + } + if (other.dbWorkload_ != 0) { + setDbWorkloadValue(other.getDbWorkloadValue()); + } + if (other.dbEdition_ != 0) { + setDbEditionValue(other.getDbEditionValue()); + } + if (!other.getCharacterSet().isEmpty()) { + characterSet_ = other.characterSet_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getNCharacterSet().isEmpty()) { + nCharacterSet_ = other.nCharacterSet_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getPrivateEndpointIp().isEmpty()) { + privateEndpointIp_ = other.privateEndpointIp_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getPrivateEndpointLabel().isEmpty()) { + privateEndpointLabel_ = other.privateEndpointLabel_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getDbVersion().isEmpty()) { + dbVersion_ = other.dbVersion_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.getIsAutoScalingEnabled() != false) { + setIsAutoScalingEnabled(other.getIsAutoScalingEnabled()); + } + if (other.getIsStorageAutoScalingEnabled() != false) { + setIsStorageAutoScalingEnabled(other.getIsStorageAutoScalingEnabled()); + } + if (other.licenseType_ != 0) { + setLicenseTypeValue(other.getLicenseTypeValue()); + } + if (customerContactsBuilder_ == null) { + if (!other.customerContacts_.isEmpty()) { + if (customerContacts_.isEmpty()) { + customerContacts_ = other.customerContacts_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureCustomerContactsIsMutable(); + customerContacts_.addAll(other.customerContacts_); + } + onChanged(); + } + } else { + if (!other.customerContacts_.isEmpty()) { + if (customerContactsBuilder_.isEmpty()) { + customerContactsBuilder_.dispose(); + customerContactsBuilder_ = null; + customerContacts_ = other.customerContacts_; + bitField0_ = (bitField0_ & ~0x00008000); + customerContactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomerContactsFieldBuilder() + : null; + } else { + customerContactsBuilder_.addAllMessages(other.customerContacts_); + } + } + } + if (!other.getSecretId().isEmpty()) { + secretId_ = other.secretId_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.getVaultId().isEmpty()) { + vaultId_ = other.vaultId_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.maintenanceScheduleType_ != 0) { + setMaintenanceScheduleTypeValue(other.getMaintenanceScheduleTypeValue()); + } + if (other.getMtlsConnectionRequired() != false) { + setMtlsConnectionRequired(other.getMtlsConnectionRequired()); + } + if (other.getBackupRetentionPeriodDays() != 0) { + setBackupRetentionPeriodDays(other.getBackupRetentionPeriodDays()); + } + if (other.getActualUsedDataStorageSizeTb() != 0D) { + setActualUsedDataStorageSizeTb(other.getActualUsedDataStorageSizeTb()); + } + if (other.getAllocatedStorageSizeTb() != 0D) { + setAllocatedStorageSizeTb(other.getAllocatedStorageSizeTb()); + } + if (other.hasApexDetails()) { + mergeApexDetails(other.getApexDetails()); + } + if (other.hasArePrimaryAllowlistedIpsUsed()) { + setArePrimaryAllowlistedIpsUsed(other.getArePrimaryAllowlistedIpsUsed()); + } + if (!other.getLifecycleDetails().isEmpty()) { + lifecycleDetails_ = other.lifecycleDetails_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getAutonomousContainerDatabaseId().isEmpty()) { + autonomousContainerDatabaseId_ = other.autonomousContainerDatabaseId_; + bitField0_ |= 0x08000000; + onChanged(); + } + if (!other.availableUpgradeVersions_.isEmpty()) { + if (availableUpgradeVersions_.isEmpty()) { + availableUpgradeVersions_ = other.availableUpgradeVersions_; + bitField0_ |= 0x10000000; + } else { + ensureAvailableUpgradeVersionsIsMutable(); + availableUpgradeVersions_.addAll(other.availableUpgradeVersions_); + } + onChanged(); + } + if (other.hasConnectionStrings()) { + mergeConnectionStrings(other.getConnectionStrings()); + } + if (other.hasConnectionUrls()) { + mergeConnectionUrls(other.getConnectionUrls()); + } + if (other.hasFailedDataRecoveryDuration()) { + mergeFailedDataRecoveryDuration(other.getFailedDataRecoveryDuration()); + } + if (other.getMemoryTableGbs() != 0) { + setMemoryTableGbs(other.getMemoryTableGbs()); + } + if (other.getIsLocalDataGuardEnabled() != false) { + setIsLocalDataGuardEnabled(other.getIsLocalDataGuardEnabled()); + } + if (other.getLocalAdgAutoFailoverMaxDataLossLimit() != 0) { + setLocalAdgAutoFailoverMaxDataLossLimit(other.getLocalAdgAutoFailoverMaxDataLossLimit()); + } + if (other.hasLocalStandbyDb()) { + mergeLocalStandbyDb(other.getLocalStandbyDb()); + } + if (other.getMemoryPerOracleComputeUnitGbs() != 0) { + setMemoryPerOracleComputeUnitGbs(other.getMemoryPerOracleComputeUnitGbs()); + } + if (other.localDisasterRecoveryType_ != 0) { + setLocalDisasterRecoveryTypeValue(other.getLocalDisasterRecoveryTypeValue()); + } + if (other.dataSafeState_ != 0) { + setDataSafeStateValue(other.getDataSafeStateValue()); + } + if (other.databaseManagementState_ != 0) { + setDatabaseManagementStateValue(other.getDatabaseManagementStateValue()); + } + if (other.openMode_ != 0) { + setOpenModeValue(other.getOpenModeValue()); + } + if (other.operationsInsightsState_ != 0) { + setOperationsInsightsStateValue(other.getOperationsInsightsStateValue()); + } + if (!other.peerDbIds_.isEmpty()) { + if (peerDbIds_.isEmpty()) { + peerDbIds_ = other.peerDbIds_; + bitField1_ |= 0x00000400; + } else { + ensurePeerDbIdsIsMutable(); + peerDbIds_.addAll(other.peerDbIds_); + } + onChanged(); + } + if (other.permissionLevel_ != 0) { + setPermissionLevelValue(other.getPermissionLevelValue()); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + bitField1_ |= 0x00001000; + onChanged(); + } + if (other.refreshableMode_ != 0) { + setRefreshableModeValue(other.getRefreshableModeValue()); + } + if (other.refreshableState_ != 0) { + setRefreshableStateValue(other.getRefreshableStateValue()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (scheduledOperationDetailsBuilder_ == null) { + if (!other.scheduledOperationDetails_.isEmpty()) { + if (scheduledOperationDetails_.isEmpty()) { + scheduledOperationDetails_ = other.scheduledOperationDetails_; + bitField1_ = (bitField1_ & ~0x00010000); + } else { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.addAll(other.scheduledOperationDetails_); + } + onChanged(); + } + } else { + if (!other.scheduledOperationDetails_.isEmpty()) { + if (scheduledOperationDetailsBuilder_.isEmpty()) { + scheduledOperationDetailsBuilder_.dispose(); + scheduledOperationDetailsBuilder_ = null; + scheduledOperationDetails_ = other.scheduledOperationDetails_; + bitField1_ = (bitField1_ & ~0x00010000); + scheduledOperationDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScheduledOperationDetailsFieldBuilder() + : null; + } else { + scheduledOperationDetailsBuilder_.addAllMessages(other.scheduledOperationDetails_); + } + } + } + if (!other.getSqlWebDeveloperUrl().isEmpty()) { + sqlWebDeveloperUrl_ = other.sqlWebDeveloperUrl_; + bitField1_ |= 0x00020000; + onChanged(); + } + if (!other.supportedCloneRegions_.isEmpty()) { + if (supportedCloneRegions_.isEmpty()) { + supportedCloneRegions_ = other.supportedCloneRegions_; + bitField1_ |= 0x00040000; + } else { + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.addAll(other.supportedCloneRegions_); + } + onChanged(); + } + if (other.getUsedDataStorageSizeTbs() != 0) { + setUsedDataStorageSizeTbs(other.getUsedDataStorageSizeTbs()); + } + if (!other.getOciUrl().isEmpty()) { + ociUrl_ = other.ociUrl_; + bitField1_ |= 0x00100000; + onChanged(); + } + if (other.getTotalAutoBackupStorageSizeGbs() != 0F) { + setTotalAutoBackupStorageSizeGbs(other.getTotalAutoBackupStorageSizeGbs()); + } + if (other.hasNextLongTermBackupTime()) { + mergeNextLongTermBackupTime(other.getNextLongTermBackupTime()); + } + if (other.hasMaintenanceBeginTime()) { + mergeMaintenanceBeginTime(other.getMaintenanceBeginTime()); + } + if (other.hasMaintenanceEndTime()) { + mergeMaintenanceEndTime(other.getMaintenanceEndTime()); + } + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + computeCount_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 24: + { + cpuCoreCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + dataStorageSizeTb_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + dbWorkload_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 48: + { + dbEdition_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 66: + { + characterSet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + nCharacterSet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + privateEndpointIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + privateEndpointLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + dbVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 112: + { + isAutoScalingEnabled_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + isStorageAutoScalingEnabled_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: + { + licenseType_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 138: + { + com.google.cloud.oracledatabase.v1.CustomerContact m = + input.readMessage( + com.google.cloud.oracledatabase.v1.CustomerContact.parser(), + extensionRegistry); + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.add(m); + } else { + customerContactsBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + secretId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 146 + case 154: + { + vaultId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 154 + case 160: + { + maintenanceScheduleType_ = input.readEnum(); + bitField0_ |= 0x00040000; + break; + } // case 160 + case 169: + { + actualUsedDataStorageSizeTb_ = input.readDouble(); + bitField0_ |= 0x00200000; + break; + } // case 169 + case 177: + { + allocatedStorageSizeTb_ = input.readDouble(); + bitField0_ |= 0x00400000; + break; + } // case 177 + case 186: + { + input.readMessage(getApexDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 186 + case 192: + { + arePrimaryAllowlistedIpsUsed_ = input.readBool(); + bitField0_ |= 0x01000000; + break; + } // case 192 + case 202: + { + lifecycleDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 202 + case 208: + { + state_ = input.readEnum(); + bitField0_ |= 0x04000000; + break; + } // case 208 + case 218: + { + autonomousContainerDatabaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 218 + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAvailableUpgradeVersionsIsMutable(); + availableUpgradeVersions_.add(s); + break; + } // case 226 + case 234: + { + input.readMessage( + getConnectionStringsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 234 + case 242: + { + input.readMessage(getConnectionUrlsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 242 + case 250: + { + input.readMessage( + getFailedDataRecoveryDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 250 + case 256: + { + memoryTableGbs_ = input.readInt32(); + bitField1_ |= 0x00000001; + break; + } // case 256 + case 264: + { + isLocalDataGuardEnabled_ = input.readBool(); + bitField1_ |= 0x00000002; + break; + } // case 264 + case 272: + { + mtlsConnectionRequired_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 272 + case 280: + { + localAdgAutoFailoverMaxDataLossLimit_ = input.readInt32(); + bitField1_ |= 0x00000004; + break; + } // case 280 + case 290: + { + input.readMessage(getLocalStandbyDbFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 290 + case 296: + { + memoryPerOracleComputeUnitGbs_ = input.readInt32(); + bitField1_ |= 0x00000010; + break; + } // case 296 + case 304: + { + localDisasterRecoveryType_ = input.readEnum(); + bitField1_ |= 0x00000020; + break; + } // case 304 + case 312: + { + dataSafeState_ = input.readEnum(); + bitField1_ |= 0x00000040; + break; + } // case 312 + case 320: + { + databaseManagementState_ = input.readEnum(); + bitField1_ |= 0x00000080; + break; + } // case 320 + case 328: + { + openMode_ = input.readEnum(); + bitField1_ |= 0x00000100; + break; + } // case 328 + case 336: + { + operationsInsightsState_ = input.readEnum(); + bitField1_ |= 0x00000200; + break; + } // case 336 + case 346: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePeerDbIdsIsMutable(); + peerDbIds_.add(s); + break; + } // case 346 + case 352: + { + permissionLevel_ = input.readEnum(); + bitField1_ |= 0x00000800; + break; + } // case 352 + case 362: + { + privateEndpoint_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00001000; + break; + } // case 362 + case 368: + { + refreshableMode_ = input.readEnum(); + bitField1_ |= 0x00002000; + break; + } // case 368 + case 376: + { + refreshableState_ = input.readEnum(); + bitField1_ |= 0x00004000; + break; + } // case 376 + case 384: + { + role_ = input.readEnum(); + bitField1_ |= 0x00008000; + break; + } // case 384 + case 402: + { + sqlWebDeveloperUrl_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00020000; + break; + } // case 402 + case 410: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.add(s); + break; + } // case 410 + case 424: + { + usedDataStorageSizeTbs_ = input.readInt32(); + bitField1_ |= 0x00080000; + break; + } // case 424 + case 434: + { + ociUrl_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00100000; + break; + } // case 434 + case 456: + { + backupRetentionPeriodDays_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 456 + case 477: + { + totalAutoBackupStorageSizeGbs_ = input.readFloat(); + bitField1_ |= 0x00200000; + break; + } // case 477 + case 482: + { + input.readMessage( + getNextLongTermBackupTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00400000; + break; + } // case 482 + case 504: + { + dataStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 504 + case 514: + { + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails m = + input.readMessage( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.parser(), + extensionRegistry); + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(m); + } else { + scheduledOperationDetailsBuilder_.addMessage(m); + } + break; + } // case 514 + case 522: + { + input.readMessage( + getMaintenanceBeginTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00800000; + break; + } // case 522 + case 530: + { + input.readMessage( + getMaintenanceEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x01000000; + break; + } // case 530 + 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 bitField1_; + + private java.lang.Object ocid_ = ""; + /** + * + * + *
+     * Output only. OCID of the Autonomous Database.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of the Autonomous Database.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float computeCount_; + /** + * + * + *
+     * Optional. The number of compute servers for the Autonomous Database.
+     * 
+ * + * float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The computeCount. + */ + @java.lang.Override + public float getComputeCount() { + return computeCount_; + } + /** + * + * + *
+     * Optional. The number of compute servers for the Autonomous Database.
+     * 
+ * + * float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The computeCount to set. + * @return This builder for chaining. + */ + public Builder setComputeCount(float value) { + + computeCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of compute servers for the Autonomous Database.
+     * 
+ * + * float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComputeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + computeCount_ = 0F; + onChanged(); + return this; + } + + private int cpuCoreCount_; + /** + * + * + *
+     * Optional. The number of CPU cores to be made available to the database.
+     * 
+ * + * int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cpuCoreCount. + */ + @java.lang.Override + public int getCpuCoreCount() { + return cpuCoreCount_; + } + /** + * + * + *
+     * Optional. The number of CPU cores to be made available to the database.
+     * 
+ * + * int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cpuCoreCount to set. + * @return This builder for chaining. + */ + public Builder setCpuCoreCount(int value) { + + cpuCoreCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of CPU cores to be made available to the database.
+     * 
+ * + * int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCpuCoreCount() { + bitField0_ = (bitField0_ & ~0x00000004); + cpuCoreCount_ = 0; + onChanged(); + return this; + } + + private int dataStorageSizeTb_; + /** + * + * + *
+     * Optional. The size of the data stored in the database, in terabytes.
+     * 
+ * + * int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeTb. + */ + @java.lang.Override + public int getDataStorageSizeTb() { + return dataStorageSizeTb_; + } + /** + * + * + *
+     * Optional. The size of the data stored in the database, in terabytes.
+     * 
+ * + * int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataStorageSizeTb to set. + * @return This builder for chaining. + */ + public Builder setDataStorageSizeTb(int value) { + + dataStorageSizeTb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The size of the data stored in the database, in terabytes.
+     * 
+ * + * int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageSizeTb() { + bitField0_ = (bitField0_ & ~0x00000008); + dataStorageSizeTb_ = 0; + onChanged(); + return this; + } + + private int dataStorageSizeGb_; + /** + * + * + *
+     * Optional. The size of the data stored in the database, in gigabytes.
+     * 
+ * + * int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeGb. + */ + @java.lang.Override + public int getDataStorageSizeGb() { + return dataStorageSizeGb_; + } + /** + * + * + *
+     * Optional. The size of the data stored in the database, in gigabytes.
+     * 
+ * + * int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDataStorageSizeGb(int value) { + + dataStorageSizeGb_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The size of the data stored in the database, in gigabytes.
+     * 
+ * + * int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000010); + dataStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int dbWorkload_ = 0; + /** + * + * + *
+     * Required. The workload type of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dbWorkload. + */ + @java.lang.Override + public int getDbWorkloadValue() { + return dbWorkload_; + } + /** + * + * + *
+     * Required. The workload type of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for dbWorkload to set. + * @return This builder for chaining. + */ + public Builder setDbWorkloadValue(int value) { + dbWorkload_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workload type of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dbWorkload. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DBWorkload getDbWorkload() { + com.google.cloud.oracledatabase.v1.DBWorkload result = + com.google.cloud.oracledatabase.v1.DBWorkload.forNumber(dbWorkload_); + return result == null ? com.google.cloud.oracledatabase.v1.DBWorkload.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. The workload type of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The dbWorkload to set. + * @return This builder for chaining. + */ + public Builder setDbWorkload(com.google.cloud.oracledatabase.v1.DBWorkload value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + dbWorkload_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workload type of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDbWorkload() { + bitField0_ = (bitField0_ & ~0x00000020); + dbWorkload_ = 0; + onChanged(); + return this; + } + + private int dbEdition_ = 0; + /** + * + * + *
+     * Optional. The edition of the Autonomous Databases.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for dbEdition. + */ + @java.lang.Override + public int getDbEditionValue() { + return dbEdition_; + } + /** + * + * + *
+     * Optional. The edition of the Autonomous Databases.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for dbEdition to set. + * @return This builder for chaining. + */ + public Builder setDbEditionValue(int value) { + dbEdition_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The edition of the Autonomous Databases.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbEdition. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + getDbEdition() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition.forNumber( + dbEdition_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The edition of the Autonomous Databases.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The dbEdition to set. + * @return This builder for chaining. + */ + public Builder setDbEdition( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + dbEdition_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The edition of the Autonomous Databases.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDbEdition() { + bitField0_ = (bitField0_ & ~0x00000040); + dbEdition_ = 0; + onChanged(); + return this; + } + + private java.lang.Object characterSet_ = ""; + /** + * + * + *
+     * Optional. The character set for the Autonomous Database. The default is
+     * AL32UTF8.
+     * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The characterSet. + */ + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characterSet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The character set for the Autonomous Database. The default is
+     * AL32UTF8.
+     * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for characterSet. + */ + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The character set for the Autonomous Database. The default is
+     * AL32UTF8.
+     * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + characterSet_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The character set for the Autonomous Database. The default is
+     * AL32UTF8.
+     * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCharacterSet() { + characterSet_ = getDefaultInstance().getCharacterSet(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The character set for the Autonomous Database. The default is
+     * AL32UTF8.
+     * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + characterSet_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object nCharacterSet_ = ""; + /** + * + * + *
+     * Optional. The national character set for the Autonomous Database. The
+     * default is AL16UTF16.
+     * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nCharacterSet. + */ + public java.lang.String getNCharacterSet() { + java.lang.Object ref = nCharacterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nCharacterSet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The national character set for the Autonomous Database. The
+     * default is AL16UTF16.
+     * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nCharacterSet. + */ + public com.google.protobuf.ByteString getNCharacterSetBytes() { + java.lang.Object ref = nCharacterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nCharacterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The national character set for the Autonomous Database. The
+     * default is AL16UTF16.
+     * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nCharacterSet to set. + * @return This builder for chaining. + */ + public Builder setNCharacterSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nCharacterSet_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The national character set for the Autonomous Database. The
+     * default is AL16UTF16.
+     * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNCharacterSet() { + nCharacterSet_ = getDefaultInstance().getNCharacterSet(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The national character set for the Autonomous Database. The
+     * default is AL16UTF16.
+     * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nCharacterSet to set. + * @return This builder for chaining. + */ + public Builder setNCharacterSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nCharacterSet_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object privateEndpointIp_ = ""; + /** + * + * + *
+     * Optional. The private endpoint IP address for the Autonomous Database.
+     * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateEndpointIp. + */ + public java.lang.String getPrivateEndpointIp() { + java.lang.Object ref = privateEndpointIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The private endpoint IP address for the Autonomous Database.
+     * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateEndpointIp. + */ + public com.google.protobuf.ByteString getPrivateEndpointIpBytes() { + java.lang.Object ref = privateEndpointIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The private endpoint IP address for the Autonomous Database.
+     * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The privateEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpointIp_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The private endpoint IP address for the Autonomous Database.
+     * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpointIp() { + privateEndpointIp_ = getDefaultInstance().getPrivateEndpointIp(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The private endpoint IP address for the Autonomous Database.
+     * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for privateEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateEndpointIp_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object privateEndpointLabel_ = ""; + /** + * + * + *
+     * Optional. The private endpoint label for the Autonomous Database.
+     * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateEndpointLabel. + */ + public java.lang.String getPrivateEndpointLabel() { + java.lang.Object ref = privateEndpointLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The private endpoint label for the Autonomous Database.
+     * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateEndpointLabel. + */ + public com.google.protobuf.ByteString getPrivateEndpointLabelBytes() { + java.lang.Object ref = privateEndpointLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpointLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The private endpoint label for the Autonomous Database.
+     * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The privateEndpointLabel to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpointLabel_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The private endpoint label for the Autonomous Database.
+     * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpointLabel() { + privateEndpointLabel_ = getDefaultInstance().getPrivateEndpointLabel(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The private endpoint label for the Autonomous Database.
+     * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for privateEndpointLabel to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateEndpointLabel_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object dbVersion_ = ""; + /** + * + * + *
+     * Optional. The Oracle Database version for the Autonomous Database.
+     * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbVersion. + */ + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The Oracle Database version for the Autonomous Database.
+     * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbVersion. + */ + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The Oracle Database version for the Autonomous Database.
+     * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbVersion_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Oracle Database version for the Autonomous Database.
+     * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbVersion() { + dbVersion_ = getDefaultInstance().getDbVersion(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Oracle Database version for the Autonomous Database.
+     * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbVersion_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private boolean isAutoScalingEnabled_; + /** + * + * + *
+     * Optional. This field indicates if auto scaling is enabled for the
+     * Autonomous Database CPU core count.
+     * 
+ * + * bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isAutoScalingEnabled. + */ + @java.lang.Override + public boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled_; + } + /** + * + * + *
+     * Optional. This field indicates if auto scaling is enabled for the
+     * Autonomous Database CPU core count.
+     * 
+ * + * bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isAutoScalingEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsAutoScalingEnabled(boolean value) { + + isAutoScalingEnabled_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This field indicates if auto scaling is enabled for the
+     * Autonomous Database CPU core count.
+     * 
+ * + * bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsAutoScalingEnabled() { + bitField0_ = (bitField0_ & ~0x00001000); + isAutoScalingEnabled_ = false; + onChanged(); + return this; + } + + private boolean isStorageAutoScalingEnabled_; + /** + * + * + *
+     * Optional. This field indicates if auto scaling is enabled for the
+     * Autonomous Database storage.
+     * 
+ * + * bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isStorageAutoScalingEnabled. + */ + @java.lang.Override + public boolean getIsStorageAutoScalingEnabled() { + return isStorageAutoScalingEnabled_; + } + /** + * + * + *
+     * Optional. This field indicates if auto scaling is enabled for the
+     * Autonomous Database storage.
+     * 
+ * + * bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isStorageAutoScalingEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsStorageAutoScalingEnabled(boolean value) { + + isStorageAutoScalingEnabled_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This field indicates if auto scaling is enabled for the
+     * Autonomous Database storage.
+     * 
+ * + * bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsStorageAutoScalingEnabled() { + bitField0_ = (bitField0_ & ~0x00002000); + isStorageAutoScalingEnabled_ = false; + onChanged(); + return this; + } + + private int licenseType_ = 0; + /** + * + * + *
+     * Required. The license type used for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + /** + * + * + *
+     * Required. The license type used for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseTypeValue(int value) { + licenseType_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The license type used for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType + getLicenseType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType.forNumber( + licenseType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The license type used for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseType( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + licenseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The license type used for the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseType() { + bitField0_ = (bitField0_ & ~0x00004000); + licenseType_ = 0; + onChanged(); + return this; + } + + private java.util.List customerContacts_ = + java.util.Collections.emptyList(); + + private void ensureCustomerContactsIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + customerContacts_ = + new java.util.ArrayList( + customerContacts_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CustomerContact, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder, + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder> + customerContactsBuilder_; + + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomerContactsList() { + if (customerContactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customerContacts_); + } else { + return customerContactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomerContactsCount() { + if (customerContactsBuilder_ == null) { + return customerContacts_.size(); + } else { + return customerContactsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact getCustomerContacts(int index) { + if (customerContactsBuilder_ == null) { + return customerContacts_.get(index); + } else { + return customerContactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact value) { + if (customerContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomerContactsIsMutable(); + customerContacts_.set(index, value); + onChanged(); + } else { + customerContactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact.Builder builderForValue) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.set(index, builderForValue.build()); + onChanged(); + } else { + customerContactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts(com.google.cloud.oracledatabase.v1.CustomerContact value) { + if (customerContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomerContactsIsMutable(); + customerContacts_.add(value); + onChanged(); + } else { + customerContactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact value) { + if (customerContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomerContactsIsMutable(); + customerContacts_.add(index, value); + onChanged(); + } else { + customerContactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts( + com.google.cloud.oracledatabase.v1.CustomerContact.Builder builderForValue) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.add(builderForValue.build()); + onChanged(); + } else { + customerContactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact.Builder builderForValue) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.add(index, builderForValue.build()); + onChanged(); + } else { + customerContactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomerContacts( + java.lang.Iterable values) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customerContacts_); + onChanged(); + } else { + customerContactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerContacts() { + if (customerContactsBuilder_ == null) { + customerContacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + customerContactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomerContacts(int index) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.remove(index); + onChanged(); + } else { + customerContactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact.Builder getCustomerContactsBuilder( + int index) { + return getCustomerContactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsOrBuilder( + int index) { + if (customerContactsBuilder_ == null) { + return customerContacts_.get(index); + } else { + return customerContactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomerContactsOrBuilderList() { + if (customerContactsBuilder_ != null) { + return customerContactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customerContacts_); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact.Builder addCustomerContactsBuilder() { + return getCustomerContactsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.CustomerContact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact.Builder addCustomerContactsBuilder( + int index) { + return getCustomerContactsFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.CustomerContact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomerContactsBuilderList() { + return getCustomerContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CustomerContact, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder, + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder> + getCustomerContactsFieldBuilder() { + if (customerContactsBuilder_ == null) { + customerContactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CustomerContact, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder, + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder>( + customerContacts_, + ((bitField0_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); + customerContacts_ = null; + } + return customerContactsBuilder_; + } + + private java.lang.Object secretId_ = ""; + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+     * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secretId. + */ + public java.lang.String getSecretId() { + java.lang.Object ref = secretId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+     * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secretId. + */ + public com.google.protobuf.ByteString getSecretIdBytes() { + java.lang.Object ref = secretId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+     * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The secretId to set. + * @return This builder for chaining. + */ + public Builder setSecretId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretId_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+     * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSecretId() { + secretId_ = getDefaultInstance().getSecretId(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+     * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for secretId to set. + * @return This builder for chaining. + */ + public Builder setSecretIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretId_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object vaultId_ = ""; + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault.
+     * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vaultId. + */ + public java.lang.String getVaultId() { + java.lang.Object ref = vaultId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vaultId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault.
+     * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vaultId. + */ + public com.google.protobuf.ByteString getVaultIdBytes() { + java.lang.Object ref = vaultId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vaultId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault.
+     * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The vaultId to set. + * @return This builder for chaining. + */ + public Builder setVaultId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vaultId_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault.
+     * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVaultId() { + vaultId_ = getDefaultInstance().getVaultId(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID of the Oracle Cloud Infrastructure vault.
+     * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for vaultId to set. + * @return This builder for chaining. + */ + public Builder setVaultIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vaultId_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private int maintenanceScheduleType_ = 0; + /** + * + * + *
+     * Optional. The maintenance schedule of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for maintenanceScheduleType. + */ + @java.lang.Override + public int getMaintenanceScheduleTypeValue() { + return maintenanceScheduleType_; + } + /** + * + * + *
+     * Optional. The maintenance schedule of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for maintenanceScheduleType to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceScheduleTypeValue(int value) { + maintenanceScheduleType_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maintenance schedule of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceScheduleType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + getMaintenanceScheduleType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .MaintenanceScheduleType.forNumber(maintenanceScheduleType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The maintenance schedule of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maintenanceScheduleType to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceScheduleType( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; + maintenanceScheduleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maintenance schedule of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaintenanceScheduleType() { + bitField0_ = (bitField0_ & ~0x00040000); + maintenanceScheduleType_ = 0; + onChanged(); + return this; + } + + private boolean mtlsConnectionRequired_; + /** + * + * + *
+     * Optional. This field specifies if the Autonomous Database requires mTLS
+     * connections.
+     * 
+ * + * bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mtlsConnectionRequired. + */ + @java.lang.Override + public boolean getMtlsConnectionRequired() { + return mtlsConnectionRequired_; + } + /** + * + * + *
+     * Optional. This field specifies if the Autonomous Database requires mTLS
+     * connections.
+     * 
+ * + * bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mtlsConnectionRequired to set. + * @return This builder for chaining. + */ + public Builder setMtlsConnectionRequired(boolean value) { + + mtlsConnectionRequired_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This field specifies if the Autonomous Database requires mTLS
+     * connections.
+     * 
+ * + * bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMtlsConnectionRequired() { + bitField0_ = (bitField0_ & ~0x00080000); + mtlsConnectionRequired_ = false; + onChanged(); + return this; + } + + private int backupRetentionPeriodDays_; + /** + * + * + *
+     * Optional. The retention period for the Autonomous Database. This field is
+     * specified in days, can range from 1 day to 60 days, and has a default value
+     * of 60 days.
+     * 
+ * + * int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backupRetentionPeriodDays. + */ + @java.lang.Override + public int getBackupRetentionPeriodDays() { + return backupRetentionPeriodDays_; + } + /** + * + * + *
+     * Optional. The retention period for the Autonomous Database. This field is
+     * specified in days, can range from 1 day to 60 days, and has a default value
+     * of 60 days.
+     * 
+ * + * int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The backupRetentionPeriodDays to set. + * @return This builder for chaining. + */ + public Builder setBackupRetentionPeriodDays(int value) { + + backupRetentionPeriodDays_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retention period for the Autonomous Database. This field is
+     * specified in days, can range from 1 day to 60 days, and has a default value
+     * of 60 days.
+     * 
+ * + * int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBackupRetentionPeriodDays() { + bitField0_ = (bitField0_ & ~0x00100000); + backupRetentionPeriodDays_ = 0; + onChanged(); + return this; + } + + private double actualUsedDataStorageSizeTb_; + /** + * + * + *
+     * Output only. The amount of storage currently being used for user and system
+     * data, in terabytes.
+     * 
+ * + * + * double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actualUsedDataStorageSizeTb. + */ + @java.lang.Override + public double getActualUsedDataStorageSizeTb() { + return actualUsedDataStorageSizeTb_; + } + /** + * + * + *
+     * Output only. The amount of storage currently being used for user and system
+     * data, in terabytes.
+     * 
+ * + * + * double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The actualUsedDataStorageSizeTb to set. + * @return This builder for chaining. + */ + public Builder setActualUsedDataStorageSizeTb(double value) { + + actualUsedDataStorageSizeTb_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of storage currently being used for user and system
+     * data, in terabytes.
+     * 
+ * + * + * double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearActualUsedDataStorageSizeTb() { + bitField0_ = (bitField0_ & ~0x00200000); + actualUsedDataStorageSizeTb_ = 0D; + onChanged(); + return this; + } + + private double allocatedStorageSizeTb_; + /** + * + * + *
+     * Output only. The amount of storage currently allocated for the database
+     * tables and billed for, rounded up in terabytes.
+     * 
+ * + * double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allocatedStorageSizeTb. + */ + @java.lang.Override + public double getAllocatedStorageSizeTb() { + return allocatedStorageSizeTb_; + } + /** + * + * + *
+     * Output only. The amount of storage currently allocated for the database
+     * tables and billed for, rounded up in terabytes.
+     * 
+ * + * double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The allocatedStorageSizeTb to set. + * @return This builder for chaining. + */ + public Builder setAllocatedStorageSizeTb(double value) { + + allocatedStorageSizeTb_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of storage currently allocated for the database
+     * tables and billed for, rounded up in terabytes.
+     * 
+ * + * double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllocatedStorageSizeTb() { + bitField0_ = (bitField0_ & ~0x00400000); + allocatedStorageSizeTb_ = 0D; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex apexDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder> + apexDetailsBuilder_; + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the apexDetails field is set. + */ + public boolean hasApexDetails() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The apexDetails. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex getApexDetails() { + if (apexDetailsBuilder_ == null) { + return apexDetails_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance() + : apexDetails_; + } else { + return apexDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApexDetails(com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex value) { + if (apexDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apexDetails_ = value; + } else { + apexDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApexDetails( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder builderForValue) { + if (apexDetailsBuilder_ == null) { + apexDetails_ = builderForValue.build(); + } else { + apexDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApexDetails( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex value) { + if (apexDetailsBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && apexDetails_ != null + && apexDetails_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance()) { + getApexDetailsBuilder().mergeFrom(value); + } else { + apexDetails_ = value; + } + } else { + apexDetailsBuilder_.mergeFrom(value); + } + if (apexDetails_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApexDetails() { + bitField0_ = (bitField0_ & ~0x00800000); + apexDetails_ = null; + if (apexDetailsBuilder_ != null) { + apexDetailsBuilder_.dispose(); + apexDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder + getApexDetailsBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getApexDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder + getApexDetailsOrBuilder() { + if (apexDetailsBuilder_ != null) { + return apexDetailsBuilder_.getMessageOrBuilder(); + } else { + return apexDetails_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.getDefaultInstance() + : apexDetails_; + } + } + /** + * + * + *
+     * Output only. The details for the Oracle APEX Application Development.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder> + getApexDetailsFieldBuilder() { + if (apexDetailsBuilder_ == null) { + apexDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder>( + getApexDetails(), getParentForChildren(), isClean()); + apexDetails_ = null; + } + return apexDetailsBuilder_; + } + + private boolean arePrimaryAllowlistedIpsUsed_; + /** + * + * + *
+     * Output only. This field indicates the status of Data Guard and Access
+     * control for the Autonomous Database. The field's value is null if Data
+     * Guard is disabled or Access Control is disabled. The field's value is TRUE
+     * if both Data Guard and Access Control are enabled, and the Autonomous
+     * Database is using primary IP access control list (ACL) for standby. The
+     * field's value is FALSE if both Data Guard and Access Control are enabled,
+     * and the Autonomous Database is using a different IP access control list
+     * (ACL) for standby compared to primary.
+     * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the arePrimaryAllowlistedIpsUsed field is set. + */ + @java.lang.Override + public boolean hasArePrimaryAllowlistedIpsUsed() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * + * + *
+     * Output only. This field indicates the status of Data Guard and Access
+     * control for the Autonomous Database. The field's value is null if Data
+     * Guard is disabled or Access Control is disabled. The field's value is TRUE
+     * if both Data Guard and Access Control are enabled, and the Autonomous
+     * Database is using primary IP access control list (ACL) for standby. The
+     * field's value is FALSE if both Data Guard and Access Control are enabled,
+     * and the Autonomous Database is using a different IP access control list
+     * (ACL) for standby compared to primary.
+     * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The arePrimaryAllowlistedIpsUsed. + */ + @java.lang.Override + public boolean getArePrimaryAllowlistedIpsUsed() { + return arePrimaryAllowlistedIpsUsed_; + } + /** + * + * + *
+     * Output only. This field indicates the status of Data Guard and Access
+     * control for the Autonomous Database. The field's value is null if Data
+     * Guard is disabled or Access Control is disabled. The field's value is TRUE
+     * if both Data Guard and Access Control are enabled, and the Autonomous
+     * Database is using primary IP access control list (ACL) for standby. The
+     * field's value is FALSE if both Data Guard and Access Control are enabled,
+     * and the Autonomous Database is using a different IP access control list
+     * (ACL) for standby compared to primary.
+     * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The arePrimaryAllowlistedIpsUsed to set. + * @return This builder for chaining. + */ + public Builder setArePrimaryAllowlistedIpsUsed(boolean value) { + + arePrimaryAllowlistedIpsUsed_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the status of Data Guard and Access
+     * control for the Autonomous Database. The field's value is null if Data
+     * Guard is disabled or Access Control is disabled. The field's value is TRUE
+     * if both Data Guard and Access Control are enabled, and the Autonomous
+     * Database is using primary IP access control list (ACL) for standby. The
+     * field's value is FALSE if both Data Guard and Access Control are enabled,
+     * and the Autonomous Database is using a different IP access control list
+     * (ACL) for standby compared to primary.
+     * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArePrimaryAllowlistedIpsUsed() { + bitField0_ = (bitField0_ & ~0x01000000); + arePrimaryAllowlistedIpsUsed_ = false; + onChanged(); + return this; + } + + private java.lang.Object lifecycleDetails_ = ""; + /** + * + * + *
+     * Output only. The details of the current lifestyle state of the Autonomous
+     * Database.
+     * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lifecycleDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The details of the current lifestyle state of the Autonomous
+     * Database.
+     * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The details of the current lifestyle state of the Autonomous
+     * Database.
+     * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lifecycleDetails_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details of the current lifestyle state of the Autonomous
+     * Database.
+     * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLifecycleDetails() { + lifecycleDetails_ = getDefaultInstance().getLifecycleDetails(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details of the current lifestyle state of the Autonomous
+     * Database.
+     * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lifecycleDetails_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.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. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.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_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.State getState() { + com.google.cloud.oracledatabase.v1.State result = + com.google.cloud.oracledatabase.v1.State.forNumber(state_); + return result == null ? com.google.cloud.oracledatabase.v1.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x04000000; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x04000000); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object autonomousContainerDatabaseId_ = ""; + /** + * + * + *
+     * Output only. The Autonomous Container Database OCID.
+     * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The autonomousContainerDatabaseId. + */ + public java.lang.String getAutonomousContainerDatabaseId() { + java.lang.Object ref = autonomousContainerDatabaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autonomousContainerDatabaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Autonomous Container Database OCID.
+     * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for autonomousContainerDatabaseId. + */ + public com.google.protobuf.ByteString getAutonomousContainerDatabaseIdBytes() { + java.lang.Object ref = autonomousContainerDatabaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousContainerDatabaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Autonomous Container Database OCID.
+     * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The autonomousContainerDatabaseId to set. + * @return This builder for chaining. + */ + public Builder setAutonomousContainerDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autonomousContainerDatabaseId_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Autonomous Container Database OCID.
+     * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutonomousContainerDatabaseId() { + autonomousContainerDatabaseId_ = getDefaultInstance().getAutonomousContainerDatabaseId(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Autonomous Container Database OCID.
+     * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for autonomousContainerDatabaseId to set. + * @return This builder for chaining. + */ + public Builder setAutonomousContainerDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autonomousContainerDatabaseId_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList availableUpgradeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAvailableUpgradeVersionsIsMutable() { + if (!availableUpgradeVersions_.isModifiable()) { + availableUpgradeVersions_ = + new com.google.protobuf.LazyStringArrayList(availableUpgradeVersions_); + } + bitField0_ |= 0x10000000; + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableUpgradeVersions. + */ + public com.google.protobuf.ProtocolStringList getAvailableUpgradeVersionsList() { + availableUpgradeVersions_.makeImmutable(); + return availableUpgradeVersions_; + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableUpgradeVersions. + */ + public int getAvailableUpgradeVersionsCount() { + return availableUpgradeVersions_.size(); + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableUpgradeVersions at the given index. + */ + public java.lang.String getAvailableUpgradeVersions(int index) { + return availableUpgradeVersions_.get(index); + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the availableUpgradeVersions at the given index. + */ + public com.google.protobuf.ByteString getAvailableUpgradeVersionsBytes(int index) { + return availableUpgradeVersions_.getByteString(index); + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The availableUpgradeVersions to set. + * @return This builder for chaining. + */ + public Builder setAvailableUpgradeVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableUpgradeVersionsIsMutable(); + availableUpgradeVersions_.set(index, value); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableUpgradeVersions to add. + * @return This builder for chaining. + */ + public Builder addAvailableUpgradeVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableUpgradeVersionsIsMutable(); + availableUpgradeVersions_.add(value); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The availableUpgradeVersions to add. + * @return This builder for chaining. + */ + public Builder addAllAvailableUpgradeVersions(java.lang.Iterable values) { + ensureAvailableUpgradeVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableUpgradeVersions_); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableUpgradeVersions() { + availableUpgradeVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x10000000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available Oracle Database upgrade versions for an
+     * Autonomous Database.
+     * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the availableUpgradeVersions to add. + * @return This builder for chaining. + */ + public Builder addAvailableUpgradeVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAvailableUpgradeVersionsIsMutable(); + availableUpgradeVersions_.add(value); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + connectionStrings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder> + connectionStringsBuilder_; + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectionStrings field is set. + */ + public boolean hasConnectionStrings() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionStrings. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + getConnectionStrings() { + if (connectionStringsBuilder_ == null) { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance() + : connectionStrings_; + } else { + return connectionStringsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionStrings( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings value) { + if (connectionStringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionStrings_ = value; + } else { + connectionStringsBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionStrings( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder + builderForValue) { + if (connectionStringsBuilder_ == null) { + connectionStrings_ = builderForValue.build(); + } else { + connectionStringsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConnectionStrings( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings value) { + if (connectionStringsBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) + && connectionStrings_ != null + && connectionStrings_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance()) { + getConnectionStringsBuilder().mergeFrom(value); + } else { + connectionStrings_ = value; + } + } else { + connectionStringsBuilder_.mergeFrom(value); + } + if (connectionStrings_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectionStrings() { + bitField0_ = (bitField0_ & ~0x20000000); + connectionStrings_ = null; + if (connectionStringsBuilder_ != null) { + connectionStringsBuilder_.dispose(); + connectionStringsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder + getConnectionStringsBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getConnectionStringsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder + getConnectionStringsOrBuilder() { + if (connectionStringsBuilder_ != null) { + return connectionStringsBuilder_.getMessageOrBuilder(); + } else { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + .getDefaultInstance() + : connectionStrings_; + } + } + /** + * + * + *
+     * Output only. The connection strings used to connect to an Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder> + getConnectionStringsFieldBuilder() { + if (connectionStringsBuilder_ == null) { + connectionStringsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder>( + getConnectionStrings(), getParentForChildren(), isClean()); + connectionStrings_ = null; + } + return connectionStringsBuilder_; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connectionUrls_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder> + connectionUrlsBuilder_; + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectionUrls field is set. + */ + public boolean hasConnectionUrls() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionUrls. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls getConnectionUrls() { + if (connectionUrlsBuilder_ == null) { + return connectionUrls_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + .getDefaultInstance() + : connectionUrls_; + } else { + return connectionUrlsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionUrls( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls value) { + if (connectionUrlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionUrls_ = value; + } else { + connectionUrlsBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionUrls( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder + builderForValue) { + if (connectionUrlsBuilder_ == null) { + connectionUrls_ = builderForValue.build(); + } else { + connectionUrlsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConnectionUrls( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls value) { + if (connectionUrlsBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && connectionUrls_ != null + && connectionUrls_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + .getDefaultInstance()) { + getConnectionUrlsBuilder().mergeFrom(value); + } else { + connectionUrls_ = value; + } + } else { + connectionUrlsBuilder_.mergeFrom(value); + } + if (connectionUrls_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectionUrls() { + bitField0_ = (bitField0_ & ~0x40000000); + connectionUrls_ = null; + if (connectionUrlsBuilder_ != null) { + connectionUrlsBuilder_.dispose(); + connectionUrlsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder + getConnectionUrlsBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getConnectionUrlsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder + getConnectionUrlsOrBuilder() { + if (connectionUrlsBuilder_ != null) { + return connectionUrlsBuilder_.getMessageOrBuilder(); + } else { + return connectionUrls_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + .getDefaultInstance() + : connectionUrls_; + } + } + /** + * + * + *
+     * Output only. The Oracle Connection URLs for an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder> + getConnectionUrlsFieldBuilder() { + if (connectionUrlsBuilder_ == null) { + connectionUrlsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder>( + getConnectionUrls(), getParentForChildren(), isClean()); + connectionUrls_ = null; + } + return connectionUrlsBuilder_; + } + + private com.google.protobuf.Duration failedDataRecoveryDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + failedDataRecoveryDurationBuilder_; + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the failedDataRecoveryDuration field is set. + */ + public boolean hasFailedDataRecoveryDuration() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The failedDataRecoveryDuration. + */ + public com.google.protobuf.Duration getFailedDataRecoveryDuration() { + if (failedDataRecoveryDurationBuilder_ == null) { + return failedDataRecoveryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : failedDataRecoveryDuration_; + } else { + return failedDataRecoveryDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFailedDataRecoveryDuration(com.google.protobuf.Duration value) { + if (failedDataRecoveryDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failedDataRecoveryDuration_ = value; + } else { + failedDataRecoveryDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFailedDataRecoveryDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (failedDataRecoveryDurationBuilder_ == null) { + failedDataRecoveryDuration_ = builderForValue.build(); + } else { + failedDataRecoveryDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFailedDataRecoveryDuration(com.google.protobuf.Duration value) { + if (failedDataRecoveryDurationBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && failedDataRecoveryDuration_ != null + && failedDataRecoveryDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getFailedDataRecoveryDurationBuilder().mergeFrom(value); + } else { + failedDataRecoveryDuration_ = value; + } + } else { + failedDataRecoveryDurationBuilder_.mergeFrom(value); + } + if (failedDataRecoveryDuration_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFailedDataRecoveryDuration() { + bitField0_ = (bitField0_ & ~0x80000000); + failedDataRecoveryDuration_ = null; + if (failedDataRecoveryDurationBuilder_ != null) { + failedDataRecoveryDurationBuilder_.dispose(); + failedDataRecoveryDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getFailedDataRecoveryDurationBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getFailedDataRecoveryDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getFailedDataRecoveryDurationOrBuilder() { + if (failedDataRecoveryDurationBuilder_ != null) { + return failedDataRecoveryDurationBuilder_.getMessageOrBuilder(); + } else { + return failedDataRecoveryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : failedDataRecoveryDuration_; + } + } + /** + * + * + *
+     * Output only. This field indicates the number of seconds of data loss during
+     * a Data Guard failover.
+     * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getFailedDataRecoveryDurationFieldBuilder() { + if (failedDataRecoveryDurationBuilder_ == null) { + failedDataRecoveryDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getFailedDataRecoveryDuration(), getParentForChildren(), isClean()); + failedDataRecoveryDuration_ = null; + } + return failedDataRecoveryDurationBuilder_; + } + + private int memoryTableGbs_; + /** + * + * + *
+     * Output only. The memory assigned to in-memory tables in an Autonomous
+     * Database.
+     * 
+ * + * int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memoryTableGbs. + */ + @java.lang.Override + public int getMemoryTableGbs() { + return memoryTableGbs_; + } + /** + * + * + *
+     * Output only. The memory assigned to in-memory tables in an Autonomous
+     * Database.
+     * 
+ * + * int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The memoryTableGbs to set. + * @return This builder for chaining. + */ + public Builder setMemoryTableGbs(int value) { + + memoryTableGbs_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The memory assigned to in-memory tables in an Autonomous
+     * Database.
+     * 
+ * + * int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMemoryTableGbs() { + bitField1_ = (bitField1_ & ~0x00000001); + memoryTableGbs_ = 0; + onChanged(); + return this; + } + + private boolean isLocalDataGuardEnabled_; + /** + * + * + *
+     * Output only. This field indicates whether the Autonomous Database has local
+     * (in-region) Data Guard enabled.
+     * 
+ * + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The isLocalDataGuardEnabled. + */ + @java.lang.Override + public boolean getIsLocalDataGuardEnabled() { + return isLocalDataGuardEnabled_; + } + /** + * + * + *
+     * Output only. This field indicates whether the Autonomous Database has local
+     * (in-region) Data Guard enabled.
+     * 
+ * + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The isLocalDataGuardEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsLocalDataGuardEnabled(boolean value) { + + isLocalDataGuardEnabled_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates whether the Autonomous Database has local
+     * (in-region) Data Guard enabled.
+     * 
+ * + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsLocalDataGuardEnabled() { + bitField1_ = (bitField1_ & ~0x00000002); + isLocalDataGuardEnabled_ = false; + onChanged(); + return this; + } + + private int localAdgAutoFailoverMaxDataLossLimit_; + /** + * + * + *
+     * Output only. This field indicates the maximum data loss limit for an
+     * Autonomous Database, in seconds.
+     * 
+ * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localAdgAutoFailoverMaxDataLossLimit. + */ + @java.lang.Override + public int getLocalAdgAutoFailoverMaxDataLossLimit() { + return localAdgAutoFailoverMaxDataLossLimit_; + } + /** + * + * + *
+     * Output only. This field indicates the maximum data loss limit for an
+     * Autonomous Database, in seconds.
+     * 
+ * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The localAdgAutoFailoverMaxDataLossLimit to set. + * @return This builder for chaining. + */ + public Builder setLocalAdgAutoFailoverMaxDataLossLimit(int value) { + + localAdgAutoFailoverMaxDataLossLimit_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the maximum data loss limit for an
+     * Autonomous Database, in seconds.
+     * 
+ * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLocalAdgAutoFailoverMaxDataLossLimit() { + bitField1_ = (bitField1_ & ~0x00000004); + localAdgAutoFailoverMaxDataLossLimit_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary localStandbyDb_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder> + localStandbyDbBuilder_; + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the localStandbyDb field is set. + */ + public boolean hasLocalStandbyDb() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localStandbyDb. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary getLocalStandbyDb() { + if (localStandbyDbBuilder_ == null) { + return localStandbyDb_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance() + : localStandbyDb_; + } else { + return localStandbyDbBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocalStandbyDb( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary value) { + if (localStandbyDbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localStandbyDb_ = value; + } else { + localStandbyDbBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocalStandbyDb( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder + builderForValue) { + if (localStandbyDbBuilder_ == null) { + localStandbyDb_ = builderForValue.build(); + } else { + localStandbyDbBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLocalStandbyDb( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary value) { + if (localStandbyDbBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) + && localStandbyDb_ != null + && localStandbyDb_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance()) { + getLocalStandbyDbBuilder().mergeFrom(value); + } else { + localStandbyDb_ = value; + } + } else { + localStandbyDbBuilder_.mergeFrom(value); + } + if (localStandbyDb_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocalStandbyDb() { + bitField1_ = (bitField1_ & ~0x00000008); + localStandbyDb_ = null; + if (localStandbyDbBuilder_ != null) { + localStandbyDbBuilder_.dispose(); + localStandbyDbBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder + getLocalStandbyDbBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getLocalStandbyDbFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder + getLocalStandbyDbOrBuilder() { + if (localStandbyDbBuilder_ != null) { + return localStandbyDbBuilder_.getMessageOrBuilder(); + } else { + return localStandbyDb_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance() + : localStandbyDb_; + } + } + /** + * + * + *
+     * Output only. The details of the Autonomous Data Guard standby database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder> + getLocalStandbyDbFieldBuilder() { + if (localStandbyDbBuilder_ == null) { + localStandbyDbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder>( + getLocalStandbyDb(), getParentForChildren(), isClean()); + localStandbyDb_ = null; + } + return localStandbyDbBuilder_; + } + + private int memoryPerOracleComputeUnitGbs_; + /** + * + * + *
+     * Output only. The amount of memory enabled per ECPU, in gigabytes.
+     * 
+ * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The memoryPerOracleComputeUnitGbs. + */ + @java.lang.Override + public int getMemoryPerOracleComputeUnitGbs() { + return memoryPerOracleComputeUnitGbs_; + } + /** + * + * + *
+     * Output only. The amount of memory enabled per ECPU, in gigabytes.
+     * 
+ * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The memoryPerOracleComputeUnitGbs to set. + * @return This builder for chaining. + */ + public Builder setMemoryPerOracleComputeUnitGbs(int value) { + + memoryPerOracleComputeUnitGbs_ = value; + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of memory enabled per ECPU, in gigabytes.
+     * 
+ * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMemoryPerOracleComputeUnitGbs() { + bitField1_ = (bitField1_ & ~0x00000010); + memoryPerOracleComputeUnitGbs_ = 0; + onChanged(); + return this; + } + + private int localDisasterRecoveryType_ = 0; + /** + * + * + *
+     * Output only. This field indicates the local disaster recovery (DR) type of
+     * an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for localDisasterRecoveryType. + */ + @java.lang.Override + public int getLocalDisasterRecoveryTypeValue() { + return localDisasterRecoveryType_; + } + /** + * + * + *
+     * Output only. This field indicates the local disaster recovery (DR) type of
+     * an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for localDisasterRecoveryType to set. + * @return This builder for chaining. + */ + public Builder setLocalDisasterRecoveryTypeValue(int value) { + localDisasterRecoveryType_ = value; + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the local disaster recovery (DR) type of
+     * an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localDisasterRecoveryType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + getLocalDisasterRecoveryType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .LocalDisasterRecoveryType.forNumber(localDisasterRecoveryType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .LocalDisasterRecoveryType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. This field indicates the local disaster recovery (DR) type of
+     * an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The localDisasterRecoveryType to set. + * @return This builder for chaining. + */ + public Builder setLocalDisasterRecoveryType( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000020; + localDisasterRecoveryType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the local disaster recovery (DR) type of
+     * an Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLocalDisasterRecoveryType() { + bitField1_ = (bitField1_ & ~0x00000020); + localDisasterRecoveryType_ = 0; + onChanged(); + return this; + } + + private int dataSafeState_ = 0; + /** + * + * + *
+     * Output only. The current state of the Data Safe registration for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataSafeState. + */ + @java.lang.Override + public int getDataSafeStateValue() { + return dataSafeState_; + } + /** + * + * + *
+     * Output only. The current state of the Data Safe registration for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dataSafeState to set. + * @return This builder for chaining. + */ + public Builder setDataSafeStateValue(int value) { + dataSafeState_ = value; + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of the Data Safe registration for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSafeState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + getDataSafeState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState.forNumber( + dataSafeState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The current state of the Data Safe registration for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataSafeState to set. + * @return This builder for chaining. + */ + public Builder setDataSafeState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000040; + dataSafeState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of the Data Safe registration for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataSafeState() { + bitField1_ = (bitField1_ & ~0x00000040); + dataSafeState_ = 0; + onChanged(); + return this; + } + + private int databaseManagementState_ = 0; + /** + * + * + *
+     * Output only. The current state of database management for the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for databaseManagementState. + */ + @java.lang.Override + public int getDatabaseManagementStateValue() { + return databaseManagementState_; + } + /** + * + * + *
+     * Output only. The current state of database management for the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for databaseManagementState to set. + * @return This builder for chaining. + */ + public Builder setDatabaseManagementStateValue(int value) { + databaseManagementState_ = value; + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of database management for the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + getDatabaseManagementState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .DatabaseManagementState.forNumber(databaseManagementState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The current state of database management for the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The databaseManagementState to set. + * @return This builder for chaining. + */ + public Builder setDatabaseManagementState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000080; + databaseManagementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of database management for the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDatabaseManagementState() { + bitField1_ = (bitField1_ & ~0x00000080); + databaseManagementState_ = 0; + onChanged(); + return this; + } + + private int openMode_ = 0; + /** + * + * + *
+     * Output only. This field indicates the current mode of the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + @java.lang.Override + public int getOpenModeValue() { + return openMode_; + } + /** + * + * + *
+     * Output only. This field indicates the current mode of the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for openMode to set. + * @return This builder for chaining. + */ + public Builder setOpenModeValue(int value) { + openMode_ = value; + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the current mode of the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The openMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode getOpenMode() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.forNumber( + openMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. This field indicates the current mode of the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The openMode to set. + * @return This builder for chaining. + */ + public Builder setOpenMode( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000100; + openMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the current mode of the Autonomous
+     * Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOpenMode() { + bitField1_ = (bitField1_ & ~0x00000100); + openMode_ = 0; + onChanged(); + return this; + } + + private int operationsInsightsState_ = 0; + /** + * + * + *
+     * Output only. This field indicates the state of Operations Insights for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + @java.lang.Override + public int getOperationsInsightsStateValue() { + return operationsInsightsState_; + } + /** + * + * + *
+     * Output only. This field indicates the state of Operations Insights for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for operationsInsightsState to set. + * @return This builder for chaining. + */ + public Builder setOperationsInsightsStateValue(int value) { + operationsInsightsState_ = value; + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the state of Operations Insights for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OperationsInsightsState getOperationsInsightsState() { + com.google.cloud.oracledatabase.v1.OperationsInsightsState result = + com.google.cloud.oracledatabase.v1.OperationsInsightsState.forNumber( + operationsInsightsState_); + return result == null + ? com.google.cloud.oracledatabase.v1.OperationsInsightsState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. This field indicates the state of Operations Insights for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The operationsInsightsState to set. + * @return This builder for chaining. + */ + public Builder setOperationsInsightsState( + com.google.cloud.oracledatabase.v1.OperationsInsightsState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000200; + operationsInsightsState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the state of Operations Insights for the
+     * Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperationsInsightsState() { + bitField1_ = (bitField1_ & ~0x00000200); + operationsInsightsState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList peerDbIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePeerDbIdsIsMutable() { + if (!peerDbIds_.isModifiable()) { + peerDbIds_ = new com.google.protobuf.LazyStringArrayList(peerDbIds_); + } + bitField1_ |= 0x00000400; + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the peerDbIds. + */ + public com.google.protobuf.ProtocolStringList getPeerDbIdsList() { + peerDbIds_.makeImmutable(); + return peerDbIds_; + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of peerDbIds. + */ + public int getPeerDbIdsCount() { + return peerDbIds_.size(); + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The peerDbIds at the given index. + */ + public java.lang.String getPeerDbIds(int index) { + return peerDbIds_.get(index); + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the peerDbIds at the given index. + */ + public com.google.protobuf.ByteString getPeerDbIdsBytes(int index) { + return peerDbIds_.getByteString(index); + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The peerDbIds to set. + * @return This builder for chaining. + */ + public Builder setPeerDbIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerDbIdsIsMutable(); + peerDbIds_.set(index, value); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The peerDbIds to add. + * @return This builder for chaining. + */ + public Builder addPeerDbIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerDbIdsIsMutable(); + peerDbIds_.add(value); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The peerDbIds to add. + * @return This builder for chaining. + */ + public Builder addAllPeerDbIds(java.lang.Iterable values) { + ensurePeerDbIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerDbIds_); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPeerDbIds() { + peerDbIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00000400); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of OCIDs of standby databases located in Autonomous
+     * Data Guard remote regions that are associated with the source database.
+     * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the peerDbIds to add. + * @return This builder for chaining. + */ + public Builder addPeerDbIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerDbIdsIsMutable(); + peerDbIds_.add(value); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + private int permissionLevel_ = 0; + /** + * + * + *
+     * Output only. The permission level of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for permissionLevel. + */ + @java.lang.Override + public int getPermissionLevelValue() { + return permissionLevel_; + } + /** + * + * + *
+     * Output only. The permission level of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for permissionLevel to set. + * @return This builder for chaining. + */ + public Builder setPermissionLevelValue(int value) { + permissionLevel_ = value; + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The permission level of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The permissionLevel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + getPermissionLevel() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel.forNumber( + permissionLevel_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The permission level of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The permissionLevel to set. + * @return This builder for chaining. + */ + public Builder setPermissionLevel( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000800; + permissionLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The permission level of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPermissionLevel() { + bitField1_ = (bitField1_ & ~0x00000800); + permissionLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+     * Output only. The private endpoint for the Autonomous Database.
+     * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateEndpoint. + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The private endpoint for the Autonomous Database.
+     * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateEndpoint. + */ + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The private endpoint for the Autonomous Database.
+     * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpoint_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The private endpoint for the Autonomous Database.
+     * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpoint() { + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + bitField1_ = (bitField1_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The private endpoint for the Autonomous Database.
+     * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateEndpoint_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + private int refreshableMode_ = 0; + /** + * + * + *
+     * Output only. The refresh mode of the cloned Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for refreshableMode. + */ + @java.lang.Override + public int getRefreshableModeValue() { + return refreshableMode_; + } + /** + * + * + *
+     * Output only. The refresh mode of the cloned Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for refreshableMode to set. + * @return This builder for chaining. + */ + public Builder setRefreshableModeValue(int value) { + refreshableMode_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The refresh mode of the cloned Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The refreshableMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + getRefreshableMode() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode.forNumber( + refreshableMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The refresh mode of the cloned Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The refreshableMode to set. + * @return This builder for chaining. + */ + public Builder setRefreshableMode( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00002000; + refreshableMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The refresh mode of the cloned Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRefreshableMode() { + bitField1_ = (bitField1_ & ~0x00002000); + refreshableMode_ = 0; + onChanged(); + return this; + } + + private int refreshableState_ = 0; + /** + * + * + *
+     * Output only. The refresh State of the clone.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for refreshableState. + */ + @java.lang.Override + public int getRefreshableStateValue() { + return refreshableState_; + } + /** + * + * + *
+     * Output only. The refresh State of the clone.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for refreshableState to set. + * @return This builder for chaining. + */ + public Builder setRefreshableStateValue(int value) { + refreshableState_ = value; + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The refresh State of the clone.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The refreshableState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + getRefreshableState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .forNumber(refreshableState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The refresh State of the clone.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The refreshableState to set. + * @return This builder for chaining. + */ + public Builder setRefreshableState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00004000; + refreshableState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The refresh State of the clone.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRefreshableState() { + bitField1_ = (bitField1_ & ~0x00004000); + refreshableState_ = 0; + onChanged(); + return this; + } + + private int role_ = 0; + /** + * + * + *
+     * Output only. The Data Guard role of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override + public int getRoleValue() { + return role_; + } + /** + * + * + *
+     * Output only. The Data Guard role of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. + */ + public Builder setRoleValue(int value) { + role_ = value; + bitField1_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Data Guard role of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The role. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role getRole() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.forNumber(role_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The Data Guard role of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00008000; + role_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Data Guard role of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRole() { + bitField1_ = (bitField1_ & ~0x00008000); + role_ = 0; + onChanged(); + return this; + } + + private java.util.List + scheduledOperationDetails_ = java.util.Collections.emptyList(); + + private void ensureScheduledOperationDetailsIsMutable() { + if (!((bitField1_ & 0x00010000) != 0)) { + scheduledOperationDetails_ = + new java.util.ArrayList( + scheduledOperationDetails_); + bitField1_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + scheduledOperationDetailsBuilder_; + + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getScheduledOperationDetailsList() { + if (scheduledOperationDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(scheduledOperationDetails_); + } else { + return scheduledOperationDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getScheduledOperationDetailsCount() { + if (scheduledOperationDetailsBuilder_ == null) { + return scheduledOperationDetails_.size(); + } else { + return scheduledOperationDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails + getScheduledOperationDetails(int index) { + if (scheduledOperationDetailsBuilder_ == null) { + return scheduledOperationDetails_.get(index); + } else { + return scheduledOperationDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setScheduledOperationDetails( + int index, com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { + if (scheduledOperationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.set(index, value); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setScheduledOperationDetails( + int index, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addScheduledOperationDetails( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { + if (scheduledOperationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(value); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addScheduledOperationDetails( + int index, com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { + if (scheduledOperationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(index, value); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addScheduledOperationDetails( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(builderForValue.build()); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addScheduledOperationDetails( + int index, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllScheduledOperationDetails( + java.lang.Iterable + values) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scheduledOperationDetails_); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearScheduledOperationDetails() { + if (scheduledOperationDetailsBuilder_ == null) { + scheduledOperationDetails_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00010000); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeScheduledOperationDetails(int index) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.remove(index); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder + getScheduledOperationDetailsBuilder(int index) { + return getScheduledOperationDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder + getScheduledOperationDetailsOrBuilder(int index) { + if (scheduledOperationDetailsBuilder_ == null) { + return scheduledOperationDetails_.get(index); + } else { + return scheduledOperationDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + getScheduledOperationDetailsOrBuilderList() { + if (scheduledOperationDetailsBuilder_ != null) { + return scheduledOperationDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scheduledOperationDetails_); + } + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder + addScheduledOperationDetailsBuilder() { + return getScheduledOperationDetailsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder + addScheduledOperationDetailsBuilder(int index) { + return getScheduledOperationDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The list and details of the scheduled operations of the
+     * Autonomous Database.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getScheduledOperationDetailsBuilderList() { + return getScheduledOperationDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + getScheduledOperationDetailsFieldBuilder() { + if (scheduledOperationDetailsBuilder_ == null) { + scheduledOperationDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder>( + scheduledOperationDetails_, + ((bitField1_ & 0x00010000) != 0), + getParentForChildren(), + isClean()); + scheduledOperationDetails_ = null; + } + return scheduledOperationDetailsBuilder_; + } + + private java.lang.Object sqlWebDeveloperUrl_ = ""; + /** + * + * + *
+     * Output only. The SQL Web Developer URL for the Autonomous Database.
+     * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sqlWebDeveloperUrl. + */ + public java.lang.String getSqlWebDeveloperUrl() { + java.lang.Object ref = sqlWebDeveloperUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlWebDeveloperUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The SQL Web Developer URL for the Autonomous Database.
+     * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sqlWebDeveloperUrl. + */ + public com.google.protobuf.ByteString getSqlWebDeveloperUrlBytes() { + java.lang.Object ref = sqlWebDeveloperUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlWebDeveloperUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The SQL Web Developer URL for the Autonomous Database.
+     * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sqlWebDeveloperUrl to set. + * @return This builder for chaining. + */ + public Builder setSqlWebDeveloperUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlWebDeveloperUrl_ = value; + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The SQL Web Developer URL for the Autonomous Database.
+     * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSqlWebDeveloperUrl() { + sqlWebDeveloperUrl_ = getDefaultInstance().getSqlWebDeveloperUrl(); + bitField1_ = (bitField1_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The SQL Web Developer URL for the Autonomous Database.
+     * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sqlWebDeveloperUrl to set. + * @return This builder for chaining. + */ + public Builder setSqlWebDeveloperUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlWebDeveloperUrl_ = value; + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList supportedCloneRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSupportedCloneRegionsIsMutable() { + if (!supportedCloneRegions_.isModifiable()) { + supportedCloneRegions_ = + new com.google.protobuf.LazyStringArrayList(supportedCloneRegions_); + } + bitField1_ |= 0x00040000; + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the supportedCloneRegions. + */ + public com.google.protobuf.ProtocolStringList getSupportedCloneRegionsList() { + supportedCloneRegions_.makeImmutable(); + return supportedCloneRegions_; + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of supportedCloneRegions. + */ + public int getSupportedCloneRegionsCount() { + return supportedCloneRegions_.size(); + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The supportedCloneRegions at the given index. + */ + public java.lang.String getSupportedCloneRegions(int index) { + return supportedCloneRegions_.get(index); + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedCloneRegions at the given index. + */ + public com.google.protobuf.ByteString getSupportedCloneRegionsBytes(int index) { + return supportedCloneRegions_.getByteString(index); + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The supportedCloneRegions to set. + * @return This builder for chaining. + */ + public Builder setSupportedCloneRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.set(index, value); + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The supportedCloneRegions to add. + * @return This builder for chaining. + */ + public Builder addSupportedCloneRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.add(value); + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The supportedCloneRegions to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedCloneRegions(java.lang.Iterable values) { + ensureSupportedCloneRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedCloneRegions_); + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportedCloneRegions() { + supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00040000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The list of available regions that can be used to create a
+     * clone for the Autonomous Database.
+     * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the supportedCloneRegions to add. + * @return This builder for chaining. + */ + public Builder addSupportedCloneRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.add(value); + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + + private int usedDataStorageSizeTbs_; + /** + * + * + *
+     * Output only. The storage space used by Autonomous Database, in gigabytes.
+     * 
+ * + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usedDataStorageSizeTbs. + */ + @java.lang.Override + public int getUsedDataStorageSizeTbs() { + return usedDataStorageSizeTbs_; + } + /** + * + * + *
+     * Output only. The storage space used by Autonomous Database, in gigabytes.
+     * 
+ * + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The usedDataStorageSizeTbs to set. + * @return This builder for chaining. + */ + public Builder setUsedDataStorageSizeTbs(int value) { + + usedDataStorageSizeTbs_ = value; + bitField1_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The storage space used by Autonomous Database, in gigabytes.
+     * 
+ * + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUsedDataStorageSizeTbs() { + bitField1_ = (bitField1_ & ~0x00080000); + usedDataStorageSizeTbs_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ociUrl_ = ""; + /** + * + * + *
+     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+     * Database.
+     * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+     * Database.
+     * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+     * Database.
+     * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUrl_ = value; + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+     * Database.
+     * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField1_ = (bitField1_ & ~0x00100000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+     * Database.
+     * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUrl_ = value; + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + + private float totalAutoBackupStorageSizeGbs_; + /** + * + * + *
+     * Output only. The storage space used by automatic backups of Autonomous
+     * Database, in gigabytes.
+     * 
+ * + * + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalAutoBackupStorageSizeGbs. + */ + @java.lang.Override + public float getTotalAutoBackupStorageSizeGbs() { + return totalAutoBackupStorageSizeGbs_; + } + /** + * + * + *
+     * Output only. The storage space used by automatic backups of Autonomous
+     * Database, in gigabytes.
+     * 
+ * + * + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalAutoBackupStorageSizeGbs to set. + * @return This builder for chaining. + */ + public Builder setTotalAutoBackupStorageSizeGbs(float value) { + + totalAutoBackupStorageSizeGbs_ = value; + bitField1_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The storage space used by automatic backups of Autonomous
+     * Database, in gigabytes.
+     * 
+ * + * + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalAutoBackupStorageSizeGbs() { + bitField1_ = (bitField1_ & ~0x00200000); + totalAutoBackupStorageSizeGbs_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp nextLongTermBackupTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextLongTermBackupTimeBuilder_; + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextLongTermBackupTime field is set. + */ + public boolean hasNextLongTermBackupTime() { + return ((bitField1_ & 0x00400000) != 0); + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextLongTermBackupTime. + */ + public com.google.protobuf.Timestamp getNextLongTermBackupTime() { + if (nextLongTermBackupTimeBuilder_ == null) { + return nextLongTermBackupTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextLongTermBackupTime_; + } else { + return nextLongTermBackupTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextLongTermBackupTime(com.google.protobuf.Timestamp value) { + if (nextLongTermBackupTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextLongTermBackupTime_ = value; + } else { + nextLongTermBackupTimeBuilder_.setMessage(value); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextLongTermBackupTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (nextLongTermBackupTimeBuilder_ == null) { + nextLongTermBackupTime_ = builderForValue.build(); + } else { + nextLongTermBackupTimeBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNextLongTermBackupTime(com.google.protobuf.Timestamp value) { + if (nextLongTermBackupTimeBuilder_ == null) { + if (((bitField1_ & 0x00400000) != 0) + && nextLongTermBackupTime_ != null + && nextLongTermBackupTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getNextLongTermBackupTimeBuilder().mergeFrom(value); + } else { + nextLongTermBackupTime_ = value; + } + } else { + nextLongTermBackupTimeBuilder_.mergeFrom(value); + } + if (nextLongTermBackupTime_ != null) { + bitField1_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNextLongTermBackupTime() { + bitField1_ = (bitField1_ & ~0x00400000); + nextLongTermBackupTime_ = null; + if (nextLongTermBackupTimeBuilder_ != null) { + nextLongTermBackupTimeBuilder_.dispose(); + nextLongTermBackupTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getNextLongTermBackupTimeBuilder() { + bitField1_ |= 0x00400000; + onChanged(); + return getNextLongTermBackupTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder() { + if (nextLongTermBackupTimeBuilder_ != null) { + return nextLongTermBackupTimeBuilder_.getMessageOrBuilder(); + } else { + return nextLongTermBackupTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextLongTermBackupTime_; + } + } + /** + * + * + *
+     * Output only. The long term backup schedule of the Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getNextLongTermBackupTimeFieldBuilder() { + if (nextLongTermBackupTimeBuilder_ == null) { + nextLongTermBackupTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextLongTermBackupTime(), getParentForChildren(), isClean()); + nextLongTermBackupTime_ = null; + } + return nextLongTermBackupTimeBuilder_; + } + + private com.google.protobuf.Timestamp maintenanceBeginTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + maintenanceBeginTimeBuilder_; + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceBeginTime field is set. + */ + public boolean hasMaintenanceBeginTime() { + return ((bitField1_ & 0x00800000) != 0); + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceBeginTime. + */ + public com.google.protobuf.Timestamp getMaintenanceBeginTime() { + if (maintenanceBeginTimeBuilder_ == null) { + return maintenanceBeginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceBeginTime_; + } else { + return maintenanceBeginTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp value) { + if (maintenanceBeginTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceBeginTime_ = value; + } else { + maintenanceBeginTimeBuilder_.setMessage(value); + } + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (maintenanceBeginTimeBuilder_ == null) { + maintenanceBeginTime_ = builderForValue.build(); + } else { + maintenanceBeginTimeBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMaintenanceBeginTime(com.google.protobuf.Timestamp value) { + if (maintenanceBeginTimeBuilder_ == null) { + if (((bitField1_ & 0x00800000) != 0) + && maintenanceBeginTime_ != null + && maintenanceBeginTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMaintenanceBeginTimeBuilder().mergeFrom(value); + } else { + maintenanceBeginTime_ = value; + } + } else { + maintenanceBeginTimeBuilder_.mergeFrom(value); + } + if (maintenanceBeginTime_ != null) { + bitField1_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMaintenanceBeginTime() { + bitField1_ = (bitField1_ & ~0x00800000); + maintenanceBeginTime_ = null; + if (maintenanceBeginTimeBuilder_ != null) { + maintenanceBeginTimeBuilder_.dispose(); + maintenanceBeginTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getMaintenanceBeginTimeBuilder() { + bitField1_ |= 0x00800000; + onChanged(); + return getMaintenanceBeginTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder() { + if (maintenanceBeginTimeBuilder_ != null) { + return maintenanceBeginTimeBuilder_.getMessageOrBuilder(); + } else { + return maintenanceBeginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceBeginTime_; + } + } + /** + * + * + *
+     * Output only. The date and time when maintenance will begin.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMaintenanceBeginTimeFieldBuilder() { + if (maintenanceBeginTimeBuilder_ == null) { + maintenanceBeginTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMaintenanceBeginTime(), getParentForChildren(), isClean()); + maintenanceBeginTime_ = null; + } + return maintenanceBeginTimeBuilder_; + } + + private com.google.protobuf.Timestamp maintenanceEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + maintenanceEndTimeBuilder_; + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceEndTime field is set. + */ + public boolean hasMaintenanceEndTime() { + return ((bitField1_ & 0x01000000) != 0); + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceEndTime. + */ + public com.google.protobuf.Timestamp getMaintenanceEndTime() { + if (maintenanceEndTimeBuilder_ == null) { + return maintenanceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceEndTime_; + } else { + return maintenanceEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMaintenanceEndTime(com.google.protobuf.Timestamp value) { + if (maintenanceEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceEndTime_ = value; + } else { + maintenanceEndTimeBuilder_.setMessage(value); + } + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMaintenanceEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (maintenanceEndTimeBuilder_ == null) { + maintenanceEndTime_ = builderForValue.build(); + } else { + maintenanceEndTimeBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMaintenanceEndTime(com.google.protobuf.Timestamp value) { + if (maintenanceEndTimeBuilder_ == null) { + if (((bitField1_ & 0x01000000) != 0) + && maintenanceEndTime_ != null + && maintenanceEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMaintenanceEndTimeBuilder().mergeFrom(value); + } else { + maintenanceEndTime_ = value; + } + } else { + maintenanceEndTimeBuilder_.mergeFrom(value); + } + if (maintenanceEndTime_ != null) { + bitField1_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMaintenanceEndTime() { + bitField1_ = (bitField1_ & ~0x01000000); + maintenanceEndTime_ = null; + if (maintenanceEndTimeBuilder_ != null) { + maintenanceEndTimeBuilder_.dispose(); + maintenanceEndTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getMaintenanceEndTimeBuilder() { + bitField1_ |= 0x01000000; + onChanged(); + return getMaintenanceEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder() { + if (maintenanceEndTimeBuilder_ != null) { + return maintenanceEndTimeBuilder_.getMessageOrBuilder(); + } else { + return maintenanceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceEndTime_; + } + } + /** + * + * + *
+     * Output only. The date and time when maintenance will end.
+     * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMaintenanceEndTimeFieldBuilder() { + if (maintenanceEndTimeBuilder_ == null) { + maintenanceEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMaintenanceEndTime(), getParentForChildren(), isClean()); + maintenanceEndTime_ = null; + } + return maintenanceEndTimeBuilder_; + } + + @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.oracledatabase.v1.AutonomousDatabaseProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseProperties 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.oracledatabase.v1.AutonomousDatabaseProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java new file mode 100644 index 000000000000..5479d44c0c61 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java @@ -0,0 +1,1712 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabasePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. OCID of the Autonomous Database.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + /** + * + * + *
+   * Output only. OCID of the Autonomous Database.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
+   * Optional. The number of compute servers for the Autonomous Database.
+   * 
+ * + * float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The computeCount. + */ + float getComputeCount(); + + /** + * + * + *
+   * Optional. The number of CPU cores to be made available to the database.
+   * 
+ * + * int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cpuCoreCount. + */ + int getCpuCoreCount(); + + /** + * + * + *
+   * Optional. The size of the data stored in the database, in terabytes.
+   * 
+ * + * int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeTb. + */ + int getDataStorageSizeTb(); + + /** + * + * + *
+   * Optional. The size of the data stored in the database, in gigabytes.
+   * 
+ * + * int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeGb. + */ + int getDataStorageSizeGb(); + + /** + * + * + *
+   * Required. The workload type of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dbWorkload. + */ + int getDbWorkloadValue(); + /** + * + * + *
+   * Required. The workload type of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dbWorkload. + */ + com.google.cloud.oracledatabase.v1.DBWorkload getDbWorkload(); + + /** + * + * + *
+   * Optional. The edition of the Autonomous Databases.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for dbEdition. + */ + int getDbEditionValue(); + /** + * + * + *
+   * Optional. The edition of the Autonomous Databases.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbEdition. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition getDbEdition(); + + /** + * + * + *
+   * Optional. The character set for the Autonomous Database. The default is
+   * AL32UTF8.
+   * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The characterSet. + */ + java.lang.String getCharacterSet(); + /** + * + * + *
+   * Optional. The character set for the Autonomous Database. The default is
+   * AL32UTF8.
+   * 
+ * + * string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for characterSet. + */ + com.google.protobuf.ByteString getCharacterSetBytes(); + + /** + * + * + *
+   * Optional. The national character set for the Autonomous Database. The
+   * default is AL16UTF16.
+   * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nCharacterSet. + */ + java.lang.String getNCharacterSet(); + /** + * + * + *
+   * Optional. The national character set for the Autonomous Database. The
+   * default is AL16UTF16.
+   * 
+ * + * string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nCharacterSet. + */ + com.google.protobuf.ByteString getNCharacterSetBytes(); + + /** + * + * + *
+   * Optional. The private endpoint IP address for the Autonomous Database.
+   * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateEndpointIp. + */ + java.lang.String getPrivateEndpointIp(); + /** + * + * + *
+   * Optional. The private endpoint IP address for the Autonomous Database.
+   * 
+ * + * string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateEndpointIp. + */ + com.google.protobuf.ByteString getPrivateEndpointIpBytes(); + + /** + * + * + *
+   * Optional. The private endpoint label for the Autonomous Database.
+   * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateEndpointLabel. + */ + java.lang.String getPrivateEndpointLabel(); + /** + * + * + *
+   * Optional. The private endpoint label for the Autonomous Database.
+   * 
+ * + * string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateEndpointLabel. + */ + com.google.protobuf.ByteString getPrivateEndpointLabelBytes(); + + /** + * + * + *
+   * Optional. The Oracle Database version for the Autonomous Database.
+   * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbVersion. + */ + java.lang.String getDbVersion(); + /** + * + * + *
+   * Optional. The Oracle Database version for the Autonomous Database.
+   * 
+ * + * string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbVersion. + */ + com.google.protobuf.ByteString getDbVersionBytes(); + + /** + * + * + *
+   * Optional. This field indicates if auto scaling is enabled for the
+   * Autonomous Database CPU core count.
+   * 
+ * + * bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isAutoScalingEnabled. + */ + boolean getIsAutoScalingEnabled(); + + /** + * + * + *
+   * Optional. This field indicates if auto scaling is enabled for the
+   * Autonomous Database storage.
+   * 
+ * + * bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isStorageAutoScalingEnabled. + */ + boolean getIsStorageAutoScalingEnabled(); + + /** + * + * + *
+   * Required. The license type used for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + int getLicenseTypeValue(); + /** + * + * + *
+   * Required. The license type used for the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType getLicenseType(); + + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomerContactsList(); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.CustomerContact getCustomerContacts(int index); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomerContactsCount(); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomerContactsOrBuilderList(); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+   * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secretId. + */ + java.lang.String getSecretId(); + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault secret.
+   * 
+ * + * string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secretId. + */ + com.google.protobuf.ByteString getSecretIdBytes(); + + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault.
+   * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vaultId. + */ + java.lang.String getVaultId(); + /** + * + * + *
+   * Optional. The ID of the Oracle Cloud Infrastructure vault.
+   * 
+ * + * string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vaultId. + */ + com.google.protobuf.ByteString getVaultIdBytes(); + + /** + * + * + *
+   * Optional. The maintenance schedule of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for maintenanceScheduleType. + */ + int getMaintenanceScheduleTypeValue(); + /** + * + * + *
+   * Optional. The maintenance schedule of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceScheduleType. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + getMaintenanceScheduleType(); + + /** + * + * + *
+   * Optional. This field specifies if the Autonomous Database requires mTLS
+   * connections.
+   * 
+ * + * bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mtlsConnectionRequired. + */ + boolean getMtlsConnectionRequired(); + + /** + * + * + *
+   * Optional. The retention period for the Autonomous Database. This field is
+   * specified in days, can range from 1 day to 60 days, and has a default value
+   * of 60 days.
+   * 
+ * + * int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupRetentionPeriodDays. + */ + int getBackupRetentionPeriodDays(); + + /** + * + * + *
+   * Output only. The amount of storage currently being used for user and system
+   * data, in terabytes.
+   * 
+ * + * + * double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actualUsedDataStorageSizeTb. + */ + double getActualUsedDataStorageSizeTb(); + + /** + * + * + *
+   * Output only. The amount of storage currently allocated for the database
+   * tables and billed for, rounded up in terabytes.
+   * 
+ * + * double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allocatedStorageSizeTb. + */ + double getAllocatedStorageSizeTb(); + + /** + * + * + *
+   * Output only. The details for the Oracle APEX Application Development.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the apexDetails field is set. + */ + boolean hasApexDetails(); + /** + * + * + *
+   * Output only. The details for the Oracle APEX Application Development.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The apexDetails. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApex getApexDetails(); + /** + * + * + *
+   * Output only. The details for the Oracle APEX Application Development.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseApexOrBuilder getApexDetailsOrBuilder(); + + /** + * + * + *
+   * Output only. This field indicates the status of Data Guard and Access
+   * control for the Autonomous Database. The field's value is null if Data
+   * Guard is disabled or Access Control is disabled. The field's value is TRUE
+   * if both Data Guard and Access Control are enabled, and the Autonomous
+   * Database is using primary IP access control list (ACL) for standby. The
+   * field's value is FALSE if both Data Guard and Access Control are enabled,
+   * and the Autonomous Database is using a different IP access control list
+   * (ACL) for standby compared to primary.
+   * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the arePrimaryAllowlistedIpsUsed field is set. + */ + boolean hasArePrimaryAllowlistedIpsUsed(); + /** + * + * + *
+   * Output only. This field indicates the status of Data Guard and Access
+   * control for the Autonomous Database. The field's value is null if Data
+   * Guard is disabled or Access Control is disabled. The field's value is TRUE
+   * if both Data Guard and Access Control are enabled, and the Autonomous
+   * Database is using primary IP access control list (ACL) for standby. The
+   * field's value is FALSE if both Data Guard and Access Control are enabled,
+   * and the Autonomous Database is using a different IP access control list
+   * (ACL) for standby compared to primary.
+   * 
+ * + * + * optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The arePrimaryAllowlistedIpsUsed. + */ + boolean getArePrimaryAllowlistedIpsUsed(); + + /** + * + * + *
+   * Output only. The details of the current lifestyle state of the Autonomous
+   * Database.
+   * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + java.lang.String getLifecycleDetails(); + /** + * + * + *
+   * Output only. The details of the current lifestyle state of the Autonomous
+   * Database.
+   * 
+ * + * string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + com.google.protobuf.ByteString getLifecycleDetailsBytes(); + + /** + * + * + *
+   * Output only. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.State getState(); + + /** + * + * + *
+   * Output only. The Autonomous Container Database OCID.
+   * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The autonomousContainerDatabaseId. + */ + java.lang.String getAutonomousContainerDatabaseId(); + /** + * + * + *
+   * Output only. The Autonomous Container Database OCID.
+   * 
+ * + * + * string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for autonomousContainerDatabaseId. + */ + com.google.protobuf.ByteString getAutonomousContainerDatabaseIdBytes(); + + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableUpgradeVersions. + */ + java.util.List getAvailableUpgradeVersionsList(); + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableUpgradeVersions. + */ + int getAvailableUpgradeVersionsCount(); + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableUpgradeVersions at the given index. + */ + java.lang.String getAvailableUpgradeVersions(int index); + /** + * + * + *
+   * Output only. The list of available Oracle Database upgrade versions for an
+   * Autonomous Database.
+   * 
+ * + * + * repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the availableUpgradeVersions at the given index. + */ + com.google.protobuf.ByteString getAvailableUpgradeVersionsBytes(int index); + + /** + * + * + *
+   * Output only. The connection strings used to connect to an Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectionStrings field is set. + */ + boolean hasConnectionStrings(); + /** + * + * + *
+   * Output only. The connection strings used to connect to an Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionStrings. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings getConnectionStrings(); + /** + * + * + *
+   * Output only. The connection strings used to connect to an Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsOrBuilder + getConnectionStringsOrBuilder(); + + /** + * + * + *
+   * Output only. The Oracle Connection URLs for an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectionUrls field is set. + */ + boolean hasConnectionUrls(); + /** + * + * + *
+   * Output only. The Oracle Connection URLs for an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionUrls. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls getConnectionUrls(); + /** + * + * + *
+   * Output only. The Oracle Connection URLs for an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsOrBuilder + getConnectionUrlsOrBuilder(); + + /** + * + * + *
+   * Output only. This field indicates the number of seconds of data loss during
+   * a Data Guard failover.
+   * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the failedDataRecoveryDuration field is set. + */ + boolean hasFailedDataRecoveryDuration(); + /** + * + * + *
+   * Output only. This field indicates the number of seconds of data loss during
+   * a Data Guard failover.
+   * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The failedDataRecoveryDuration. + */ + com.google.protobuf.Duration getFailedDataRecoveryDuration(); + /** + * + * + *
+   * Output only. This field indicates the number of seconds of data loss during
+   * a Data Guard failover.
+   * 
+ * + * + * .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getFailedDataRecoveryDurationOrBuilder(); + + /** + * + * + *
+   * Output only. The memory assigned to in-memory tables in an Autonomous
+   * Database.
+   * 
+ * + * int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memoryTableGbs. + */ + int getMemoryTableGbs(); + + /** + * + * + *
+   * Output only. This field indicates whether the Autonomous Database has local
+   * (in-region) Data Guard enabled.
+   * 
+ * + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The isLocalDataGuardEnabled. + */ + boolean getIsLocalDataGuardEnabled(); + + /** + * + * + *
+   * Output only. This field indicates the maximum data loss limit for an
+   * Autonomous Database, in seconds.
+   * 
+ * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localAdgAutoFailoverMaxDataLossLimit. + */ + int getLocalAdgAutoFailoverMaxDataLossLimit(); + + /** + * + * + *
+   * Output only. The details of the Autonomous Data Guard standby database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the localStandbyDb field is set. + */ + boolean hasLocalStandbyDb(); + /** + * + * + *
+   * Output only. The details of the Autonomous Data Guard standby database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localStandbyDb. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary getLocalStandbyDb(); + /** + * + * + *
+   * Output only. The details of the Autonomous Data Guard standby database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder + getLocalStandbyDbOrBuilder(); + + /** + * + * + *
+   * Output only. The amount of memory enabled per ECPU, in gigabytes.
+   * 
+ * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The memoryPerOracleComputeUnitGbs. + */ + int getMemoryPerOracleComputeUnitGbs(); + + /** + * + * + *
+   * Output only. This field indicates the local disaster recovery (DR) type of
+   * an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for localDisasterRecoveryType. + */ + int getLocalDisasterRecoveryTypeValue(); + /** + * + * + *
+   * Output only. This field indicates the local disaster recovery (DR) type of
+   * an Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localDisasterRecoveryType. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + getLocalDisasterRecoveryType(); + + /** + * + * + *
+   * Output only. The current state of the Data Safe registration for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataSafeState. + */ + int getDataSafeStateValue(); + /** + * + * + *
+   * Output only. The current state of the Data Safe registration for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSafeState. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState getDataSafeState(); + + /** + * + * + *
+   * Output only. The current state of database management for the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for databaseManagementState. + */ + int getDatabaseManagementStateValue(); + /** + * + * + *
+   * Output only. The current state of database management for the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementState. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + getDatabaseManagementState(); + + /** + * + * + *
+   * Output only. This field indicates the current mode of the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + int getOpenModeValue(); + /** + * + * + *
+   * Output only. This field indicates the current mode of the Autonomous
+   * Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The openMode. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode getOpenMode(); + + /** + * + * + *
+   * Output only. This field indicates the state of Operations Insights for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + int getOperationsInsightsStateValue(); + /** + * + * + *
+   * Output only. This field indicates the state of Operations Insights for the
+   * Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + com.google.cloud.oracledatabase.v1.OperationsInsightsState getOperationsInsightsState(); + + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the peerDbIds. + */ + java.util.List getPeerDbIdsList(); + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of peerDbIds. + */ + int getPeerDbIdsCount(); + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The peerDbIds at the given index. + */ + java.lang.String getPeerDbIds(int index); + /** + * + * + *
+   * Output only. The list of OCIDs of standby databases located in Autonomous
+   * Data Guard remote regions that are associated with the source database.
+   * 
+ * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the peerDbIds at the given index. + */ + com.google.protobuf.ByteString getPeerDbIdsBytes(int index); + + /** + * + * + *
+   * Output only. The permission level of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for permissionLevel. + */ + int getPermissionLevelValue(); + /** + * + * + *
+   * Output only. The permission level of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The permissionLevel. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + getPermissionLevel(); + + /** + * + * + *
+   * Output only. The private endpoint for the Autonomous Database.
+   * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateEndpoint. + */ + java.lang.String getPrivateEndpoint(); + /** + * + * + *
+   * Output only. The private endpoint for the Autonomous Database.
+   * 
+ * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateEndpoint. + */ + com.google.protobuf.ByteString getPrivateEndpointBytes(); + + /** + * + * + *
+   * Output only. The refresh mode of the cloned Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for refreshableMode. + */ + int getRefreshableModeValue(); + /** + * + * + *
+   * Output only. The refresh mode of the cloned Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The refreshableMode. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + getRefreshableMode(); + + /** + * + * + *
+   * Output only. The refresh State of the clone.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for refreshableState. + */ + int getRefreshableStateValue(); + /** + * + * + *
+   * Output only. The refresh State of the clone.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The refreshableState. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + getRefreshableState(); + + /** + * + * + *
+   * Output only. The Data Guard role of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for role. + */ + int getRoleValue(); + /** + * + * + *
+   * Output only. The Data Guard role of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The role. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role getRole(); + + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getScheduledOperationDetailsList(); + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails getScheduledOperationDetails( + int index); + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getScheduledOperationDetailsCount(); + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getScheduledOperationDetailsOrBuilderList(); + /** + * + * + *
+   * Output only. The list and details of the scheduled operations of the
+   * Autonomous Database.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder + getScheduledOperationDetailsOrBuilder(int index); + + /** + * + * + *
+   * Output only. The SQL Web Developer URL for the Autonomous Database.
+   * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sqlWebDeveloperUrl. + */ + java.lang.String getSqlWebDeveloperUrl(); + /** + * + * + *
+   * Output only. The SQL Web Developer URL for the Autonomous Database.
+   * 
+ * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sqlWebDeveloperUrl. + */ + com.google.protobuf.ByteString getSqlWebDeveloperUrlBytes(); + + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the supportedCloneRegions. + */ + java.util.List getSupportedCloneRegionsList(); + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of supportedCloneRegions. + */ + int getSupportedCloneRegionsCount(); + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The supportedCloneRegions at the given index. + */ + java.lang.String getSupportedCloneRegions(int index); + /** + * + * + *
+   * Output only. The list of available regions that can be used to create a
+   * clone for the Autonomous Database.
+   * 
+ * + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedCloneRegions at the given index. + */ + com.google.protobuf.ByteString getSupportedCloneRegionsBytes(int index); + + /** + * + * + *
+   * Output only. The storage space used by Autonomous Database, in gigabytes.
+   * 
+ * + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usedDataStorageSizeTbs. + */ + int getUsedDataStorageSizeTbs(); + + /** + * + * + *
+   * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+   * Database.
+   * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + java.lang.String getOciUrl(); + /** + * + * + *
+   * Output only. The Oracle Cloud Infrastructure link for the Autonomous
+   * Database.
+   * 
+ * + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + com.google.protobuf.ByteString getOciUrlBytes(); + + /** + * + * + *
+   * Output only. The storage space used by automatic backups of Autonomous
+   * Database, in gigabytes.
+   * 
+ * + * + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalAutoBackupStorageSizeGbs. + */ + float getTotalAutoBackupStorageSizeGbs(); + + /** + * + * + *
+   * Output only. The long term backup schedule of the Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextLongTermBackupTime field is set. + */ + boolean hasNextLongTermBackupTime(); + /** + * + * + *
+   * Output only. The long term backup schedule of the Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextLongTermBackupTime. + */ + com.google.protobuf.Timestamp getNextLongTermBackupTime(); + /** + * + * + *
+   * Output only. The long term backup schedule of the Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The date and time when maintenance will begin.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceBeginTime field is set. + */ + boolean hasMaintenanceBeginTime(); + /** + * + * + *
+   * Output only. The date and time when maintenance will begin.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceBeginTime. + */ + com.google.protobuf.Timestamp getMaintenanceBeginTime(); + /** + * + * + *
+   * Output only. The date and time when maintenance will begin.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The date and time when maintenance will end.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceEndTime field is set. + */ + boolean hasMaintenanceEndTime(); + /** + * + * + *
+   * Output only. The date and time when maintenance will end.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceEndTime. + */ + com.google.protobuf.Timestamp getMaintenanceEndTime(); + /** + * + * + *
+   * Output only. The date and time when maintenance will end.
+   * 
+ * + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java new file mode 100644 index 000000000000..f5b097fcc945 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java @@ -0,0 +1,505 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class AutonomousDatabaseProto { + private AutonomousDatabaseProto() {} + + 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_oracledatabase_v1_AutonomousDatabase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/oracledatabase/v1/autonom" + + "ous_database.proto\022\036google.cloud.oracled" + + "atabase.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032+google/c" + + "loud/oracledatabase/v1/common.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\032\033google/type/dayofw" + + "eek.proto\032\033google/type/timeofday.proto\"\245" + + "\005\n\022AutonomousDatabase\022\021\n\004name\030\001 \001(\tB\003\340A\010" + + "\022\025\n\010database\030\002 \001(\tB\003\340A\001\022\031\n\014display_name\030" + + "\003 \001(\tB\003\340A\001\022\033\n\016entitlement_id\030\005 \001(\tB\003\340A\003\022" + + "\033\n\016admin_password\030\006 \001(\tB\003\340A\001\022U\n\nproperti" + + "es\030\007 \001(\0132<.google.cloud.oracledatabase.v" + + "1.AutonomousDatabasePropertiesB\003\340A\001\022S\n\006l" + + "abels\030\010 \003(\0132>.google.cloud.oracledatabas" + + "e.v1.AutonomousDatabase.LabelsEntryB\003\340A\001" + + "\0227\n\007network\030\t \001(\tB&\340A\002\372A \n\036compute.googl" + + "eapis.com/Network\022\021\n\004cidr\030\n \001(\tB\003\340A\002\0224\n\013" + + "create_time\030\r \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001:\262\001\352A\256\001\n0oracledatabase" + + ".googleapis.com/AutonomousDatabase\022Qproj" + + "ects/{project}/locations/{location}/auto" + + "nomousDatabases/{autonomous_database}*\023a" + + "utonomousDatabases2\022autonomousDatabase\"\267" + + "$\n\034AutonomousDatabaseProperties\022\021\n\004ocid\030" + + "\001 \001(\tB\003\340A\003\022\032\n\rcompute_count\030\002 \001(\002B\003\340A\001\022\033" + + "\n\016cpu_core_count\030\003 \001(\005B\003\340A\001\022!\n\024data_stor" + + "age_size_tb\030\004 \001(\005B\003\340A\001\022!\n\024data_storage_s" + + "ize_gb\030? \001(\005B\003\340A\001\022D\n\013db_workload\030\005 \001(\0162*" + + ".google.cloud.oracledatabase.v1.DBWorklo" + + "adB\003\340A\002\022e\n\ndb_edition\030\006 \001(\0162L.google.clo" + + "ud.oracledatabase.v1.AutonomousDatabaseP" + + "roperties.DatabaseEditionB\003\340A\001\022\032\n\rcharac" + + "ter_set\030\010 \001(\tB\003\340A\001\022\034\n\017n_character_set\030\t " + + "\001(\tB\003\340A\001\022 \n\023private_endpoint_ip\030\n \001(\tB\003\340" + + "A\001\022#\n\026private_endpoint_label\030\013 \001(\tB\003\340A\001\022" + + "\027\n\ndb_version\030\014 \001(\tB\003\340A\001\022$\n\027is_auto_scal" + + "ing_enabled\030\016 \001(\010B\003\340A\001\022,\n\037is_storage_aut" + + "o_scaling_enabled\030\017 \001(\010B\003\340A\001\022c\n\014license_" + + "type\030\020 \001(\0162H.google.cloud.oracledatabase" + + ".v1.AutonomousDatabaseProperties.License" + + "TypeB\003\340A\002\022O\n\021customer_contacts\030\021 \003(\0132/.g" + + "oogle.cloud.oracledatabase.v1.CustomerCo" + + "ntactB\003\340A\001\022\026\n\tsecret_id\030\022 \001(\tB\003\340A\001\022\025\n\010va" + + "ult_id\030\023 \001(\tB\003\340A\001\022|\n\031maintenance_schedul" + + "e_type\030\024 \001(\0162T.google.cloud.oracledataba" + + "se.v1.AutonomousDatabaseProperties.Maint" + + "enanceScheduleTypeB\003\340A\001\022%\n\030mtls_connecti" + + "on_required\030\" \001(\010B\003\340A\001\022)\n\034backup_retenti" + + "on_period_days\0309 \001(\005B\003\340A\001\022-\n actual_used" + + "_data_storage_size_tb\030\025 \001(\001B\003\340A\003\022&\n\031allo" + + "cated_storage_size_tb\030\026 \001(\001B\003\340A\003\022Q\n\014apex" + + "_details\030\027 \001(\01326.google.cloud.oracledata" + + "base.v1.AutonomousDatabaseApexB\003\340A\003\0222\n a" + + "re_primary_allowlisted_ips_used\030\030 \001(\010B\003\340" + + "A\003H\000\210\001\001\022\036\n\021lifecycle_details\030\031 \001(\tB\003\340A\003\022" + + "9\n\005state\030\032 \001(\0162%.google.cloud.oracledata" + + "base.v1.StateB\003\340A\003\022-\n autonomous_contain" + + "er_database_id\030\033 \001(\tB\003\340A\003\022\'\n\032available_u" + + "pgrade_versions\030\034 \003(\tB\003\340A\003\022d\n\022connection" + + "_strings\030\035 \001(\0132C.google.cloud.oracledata" + + "base.v1.AutonomousDatabaseConnectionStri" + + "ngsB\003\340A\003\022^\n\017connection_urls\030\036 \001(\0132@.goog" + + "le.cloud.oracledatabase.v1.AutonomousDat" + + "abaseConnectionUrlsB\003\340A\003\022E\n\035failed_data_" + + "recovery_duration\030\037 \001(\0132\031.google.protobu" + + "f.DurationB\003\340A\003\022\035\n\020memory_table_gbs\030 \001(" + + "\005B\003\340A\003\022(\n\033is_local_data_guard_enabled\030! " + + "\001(\010B\003\340A\003\0228\n+local_adg_auto_failover_max_" + + "data_loss_limit\030# \001(\005B\003\340A\003\022_\n\020local_stan" + + "dby_db\030$ \001(\0132@.google.cloud.oracledataba" + + "se.v1.AutonomousDatabaseStandbySummaryB\003" + + "\340A\003\022/\n\"memory_per_oracle_compute_unit_gb" + + "s\030% \001(\005B\003\340A\003\022\201\001\n\034local_disaster_recovery" + + "_type\030& \001(\0162V.google.cloud.oracledatabas" + + "e.v1.AutonomousDatabaseProperties.LocalD" + + "isasterRecoveryTypeB\003\340A\003\022h\n\017data_safe_st" + + "ate\030\' \001(\0162J.google.cloud.oracledatabase." + + "v1.AutonomousDatabaseProperties.DataSafe" + + "StateB\003\340A\003\022|\n\031database_management_state\030" + + "( \001(\0162T.google.cloud.oracledatabase.v1.A" + + "utonomousDatabaseProperties.DatabaseMana" + + "gementStateB\003\340A\003\022]\n\topen_mode\030) \001(\0162E.go" + + "ogle.cloud.oracledatabase.v1.AutonomousD" + + "atabaseProperties.OpenModeB\003\340A\003\022_\n\031opera" + + "tions_insights_state\030* \001(\01627.google.clou" + + "d.oracledatabase.v1.OperationsInsightsSt" + + "ateB\003\340A\003\022\030\n\013peer_db_ids\030+ \003(\tB\003\340A\003\022k\n\020pe" + + "rmission_level\030, \001(\0162L.google.cloud.orac" + + "ledatabase.v1.AutonomousDatabaseProperti" + + "es.PermissionLevelB\003\340A\003\022\035\n\020private_endpo" + + "int\030- \001(\tB\003\340A\003\022k\n\020refreshable_mode\030. \001(\016" + + "2L.google.cloud.oracledatabase.v1.Autono" + + "mousDatabaseProperties.RefreshableModeB\003" + + "\340A\003\022m\n\021refreshable_state\030/ \001(\0162M.google." + + "cloud.oracledatabase.v1.AutonomousDataba" + + "seProperties.RefreshableStateB\003\340A\003\022T\n\004ro" + + "le\0300 \001(\0162A.google.cloud.oracledatabase.v" + + "1.AutonomousDatabaseProperties.RoleB\003\340A\003" + + "\022c\n\033scheduled_operation_details\030@ \003(\01329." + + "google.cloud.oracledatabase.v1.Scheduled" + + "OperationDetailsB\003\340A\003\022\"\n\025sql_web_develop" + + "er_url\0302 \001(\tB\003\340A\003\022$\n\027supported_clone_reg" + + "ions\0303 \003(\tB\003\340A\003\022\'\n\032used_data_storage_siz" + + "e_tbs\0305 \001(\005B\003\340A\003\022\024\n\007oci_url\0306 \001(\tB\003\340A\003\022/" + + "\n\"total_auto_backup_storage_size_gbs\030; \001" + + "(\002B\003\340A\003\022C\n\032next_long_term_backup_time\030< " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n\026" + + "maintenance_begin_time\030A \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022=\n\024maintenance_end" + + "_time\030B \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\"a\n\017DatabaseEdition\022 \n\034DATABASE_EDIT" + + "ION_UNSPECIFIED\020\000\022\024\n\020STANDARD_EDITION\020\001\022" + + "\026\n\022ENTERPRISE_EDITION\020\002\"]\n\013LicenseType\022\034" + + "\n\030LICENSE_TYPE_UNSPECIFIED\020\000\022\024\n\020LICENSE_" + + "INCLUDED\020\001\022\032\n\026BRING_YOUR_OWN_LICENSE\020\002\"\\" + + "\n\027MaintenanceScheduleType\022)\n%MAINTENANCE" + + "_SCHEDULE_TYPE_UNSPECIFIED\020\000\022\t\n\005EARLY\020\001\022" + + "\013\n\007REGULAR\020\002\"d\n\031LocalDisasterRecoveryTyp" + + "e\022,\n(LOCAL_DISASTER_RECOVERY_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003ADG\020\001\022\020\n\014BACKUP_BASED\020\002\"\204\001\n\rD" + + "ataSafeState\022\037\n\033DATA_SAFE_STATE_UNSPECIF" + + "IED\020\000\022\017\n\013REGISTERING\020\001\022\016\n\nREGISTERED\020\002\022\021" + + "\n\rDEREGISTERING\020\003\022\022\n\016NOT_REGISTERED\020\004\022\n\n" + + "\006FAILED\020\005\"\252\001\n\027DatabaseManagementState\022)\n" + + "%DATABASE_MANAGEMENT_STATE_UNSPECIFIED\020\000" + + "\022\014\n\010ENABLING\020\001\022\013\n\007ENABLED\020\002\022\r\n\tDISABLING" + + "\020\003\022\017\n\013NOT_ENABLED\020\004\022\023\n\017FAILED_ENABLING\020\005" + + "\022\024\n\020FAILED_DISABLING\020\006\"D\n\010OpenMode\022\031\n\025OP" + + "EN_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\n" + + "READ_WRITE\020\002\"U\n\017PermissionLevel\022 \n\034PERMI" + + "SSION_LEVEL_UNSPECIFIED\020\000\022\016\n\nRESTRICTED\020" + + "\001\022\020\n\014UNRESTRICTED\020\002\"N\n\017RefreshableMode\022 " + + "\n\034REFRESHABLE_MODE_UNSPECIFIED\020\000\022\r\n\tAUTO" + + "MATIC\020\001\022\n\n\006MANUAL\020\002\"Y\n\020RefreshableState\022" + + "!\n\035REFRESHABLE_STATE_UNSPECIFIED\020\000\022\016\n\nRE" + + "FRESHING\020\001\022\022\n\016NOT_REFRESHING\020\002\"s\n\004Role\022\024" + + "\n\020ROLE_UNSPECIFIED\020\000\022\013\n\007PRIMARY\020\001\022\013\n\007STA" + + "NDBY\020\002\022\024\n\020DISABLED_STANDBY\020\003\022\017\n\013BACKUP_C" + + "OPY\020\004\022\024\n\020SNAPSHOT_STANDBY\020\005B#\n!_are_prim" + + "ary_allowlisted_ips_used\"N\n\026AutonomousDa" + + "tabaseApex\022\031\n\014apex_version\030\001 \001(\tB\003\340A\003\022\031\n" + + "\014ords_version\030\002 \001(\tB\003\340A\003\"\252\002\n#AutonomousD" + + "atabaseConnectionStrings\022Y\n\026all_connecti" + + "on_strings\030\001 \001(\01324.google.cloud.oracleda" + + "tabase.v1.AllConnectionStringsB\003\340A\003\022\026\n\td" + + "edicated\030\002 \001(\tB\003\340A\003\022\021\n\004high\030\003 \001(\tB\003\340A\003\022\020" + + "\n\003low\030\004 \001(\tB\003\340A\003\022\023\n\006medium\030\005 \001(\tB\003\340A\003\022V\n" + + "\010profiles\030\006 \003(\0132?.google.cloud.oracledat" + + "abase.v1.DatabaseConnectionStringProfile" + + "B\003\340A\003\"\262\t\n\037DatabaseConnectionStringProfil" + + "e\022j\n\016consumer_group\030\001 \001(\0162M.google.cloud" + + ".oracledatabase.v1.DatabaseConnectionStr" + + "ingProfile.ConsumerGroupB\003\340A\003\022\031\n\014display" + + "_name\030\002 \001(\tB\003\340A\003\022d\n\013host_format\030\003 \001(\0162J." + + "google.cloud.oracledatabase.v1.DatabaseC" + + "onnectionStringProfile.HostFormatB\003\340A\003\022\030" + + "\n\013is_regional\030\004 \001(\010B\003\340A\003\022_\n\010protocol\030\005 \001" + + "(\0162H.google.cloud.oracledatabase.v1.Data" + + "baseConnectionStringProfile.ProtocolB\003\340A" + + "\003\022f\n\014session_mode\030\006 \001(\0162K.google.cloud.o" + + "racledatabase.v1.DatabaseConnectionStrin" + + "gProfile.SessionModeB\003\340A\003\022h\n\rsyntax_form" + + "at\030\007 \001(\0162L.google.cloud.oracledatabase.v" + + "1.DatabaseConnectionStringProfile.Syntax" + + "FormatB\003\340A\003\022r\n\022tls_authentication\030\010 \001(\0162" + + "Q.google.cloud.oracledatabase.v1.Databas" + + "eConnectionStringProfile.TLSAuthenticati" + + "onB\003\340A\003\022\022\n\005value\030\t \001(\tB\003\340A\003\"d\n\rConsumerG" + + "roup\022\036\n\032CONSUMER_GROUP_UNSPECIFIED\020\000\022\010\n\004" + + "HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003\022\006\n\002TP\020\004\022\014\n\010T" + + "PURGENT\020\005\";\n\nHostFormat\022\033\n\027HOST_FORMAT_U" + + "NSPECIFIED\020\000\022\010\n\004FQDN\020\001\022\006\n\002IP\020\002\"7\n\010Protoc" + + "ol\022\030\n\024PROTOCOL_UNSPECIFIED\020\000\022\007\n\003TCP\020\001\022\010\n" + + "\004TCPS\020\002\"E\n\013SessionMode\022\034\n\030SESSION_MODE_U" + + "NSPECIFIED\020\000\022\n\n\006DIRECT\020\001\022\014\n\010INDIRECT\020\002\"Y" + + "\n\014SyntaxFormat\022\035\n\031SYNTAX_FORMAT_UNSPECIF" + + "IED\020\000\022\010\n\004LONG\020\001\022\r\n\tEZCONNECT\020\002\022\021\n\rEZCONN" + + "ECTPLUS\020\003\"O\n\021TLSAuthentication\022\"\n\036TLS_AU" + + "THENTICATION_UNSPECIFIED\020\000\022\n\n\006SERVER\020\001\022\n" + + "\n\006MUTUAL\020\002\"P\n\024AllConnectionStrings\022\021\n\004hi" + + "gh\030\001 \001(\tB\003\340A\003\022\020\n\003low\030\002 \001(\tB\003\340A\003\022\023\n\006mediu" + + "m\030\003 \001(\tB\003\340A\003\"\255\002\n AutonomousDatabaseConne" + + "ctionUrls\022\025\n\010apex_uri\030\001 \001(\tB\003\340A\003\022$\n\027data" + + "base_transforms_uri\030\002 \001(\tB\003\340A\003\022\035\n\020graph_" + + "studio_uri\030\003 \001(\tB\003\340A\003\022*\n\035machine_learnin" + + "g_notebook_uri\030\004 \001(\tB\003\340A\003\0221\n$machine_lea" + + "rning_user_management_uri\030\005 \001(\tB\003\340A\003\022\031\n\014" + + "mongo_db_uri\030\006 \001(\tB\003\340A\003\022\025\n\010ords_uri\030\007 \001(" + + "\tB\003\340A\003\022\034\n\017sql_dev_web_uri\030\010 \001(\tB\003\340A\003\"\315\002\n" + + " AutonomousDatabaseStandbySummary\0229\n\021lag" + + "_time_duration\030\001 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\003\022\036\n\021lifecycle_details\030\002 \001(\tB" + + "\003\340A\003\0229\n\005state\030\003 \001(\0162%.google.cloud.oracl" + + "edatabase.v1.StateB\003\340A\003\022E\n\034data_guard_ro" + + "le_changed_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022L\n#disaster_recovery_role" + + "_changed_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\"\256\001\n\031ScheduledOperationDetai" + + "ls\0220\n\013day_of_week\030\001 \001(\0162\026.google.type.Da" + + "yOfWeekB\003\340A\003\022/\n\nstart_time\030\004 \001(\0132\026.googl" + + "e.type.TimeOfDayB\003\340A\003\022.\n\tstop_time\030\005 \001(\013" + + "2\026.google.type.TimeOfDayB\003\340A\003*B\n\014Generat" + + "eType\022\035\n\031GENERATE_TYPE_UNSPECIFIED\020\000\022\007\n\003" + + "ALL\020\001\022\n\n\006SINGLE\020\002*\253\003\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\r\n\tAVAILABL" + + "E\020\002\022\014\n\010STOPPING\020\003\022\013\n\007STOPPED\020\004\022\014\n\010STARTI" + + "NG\020\005\022\017\n\013TERMINATING\020\006\022\016\n\nTERMINATED\020\007\022\017\n" + + "\013UNAVAILABLE\020\010\022\027\n\023RESTORE_IN_PROGRESS\020\t\022" + + "\022\n\016RESTORE_FAILED\020\n\022\026\n\022BACKUP_IN_PROGRES" + + "S\020\013\022\025\n\021SCALE_IN_PROGRESS\020\014\022\035\n\031AVAILABLE_" + + "NEEDS_ATTENTION\020\r\022\014\n\010UPDATING\020\016\022\033\n\027MAINT" + + "ENANCE_IN_PROGRESS\020\017\022\016\n\nRESTARTING\020\020\022\016\n\n" + + "RECREATING\020\021\022\033\n\027ROLE_CHANGE_IN_PROGRESS\020" + + "\022\022\r\n\tUPGRADING\020\023\022\020\n\014INACCESSIBLE\020\024\022\013\n\007ST" + + "ANDBY\020\025*\252\001\n\027OperationsInsightsState\022)\n%O" + + "PERATIONS_INSIGHTS_STATE_UNSPECIFIED\020\000\022\014" + + "\n\010ENABLING\020\001\022\013\n\007ENABLED\020\002\022\r\n\tDISABLING\020\003" + + "\022\017\n\013NOT_ENABLED\020\004\022\023\n\017FAILED_ENABLING\020\005\022\024" + + "\n\020FAILED_DISABLING\020\006*N\n\nDBWorkload\022\033\n\027DB" + + "_WORKLOAD_UNSPECIFIED\020\000\022\010\n\004OLTP\020\001\022\006\n\002DW\020" + + "\002\022\007\n\003AJD\020\003\022\010\n\004APEX\020\004B\361\001\n\"com.google.clou" + + "d.oracledatabase.v1B\027AutonomousDatabaseP" + + "rotoP\001ZJcloud.google.com/go/oracledataba" + + "se/apiv1/oracledatabasepb;oracledatabase" + + "pb\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Go" + + "ogle\\Cloud\\OracleDatabase\\V1\352\002!Google::C" + + "loud::OracleDatabase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor, + new java.lang.String[] { + "Name", + "Database", + "DisplayName", + "EntitlementId", + "AdminPassword", + "Properties", + "Labels", + "Network", + "Cidr", + "CreateTime", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor, + new java.lang.String[] { + "Ocid", + "ComputeCount", + "CpuCoreCount", + "DataStorageSizeTb", + "DataStorageSizeGb", + "DbWorkload", + "DbEdition", + "CharacterSet", + "NCharacterSet", + "PrivateEndpointIp", + "PrivateEndpointLabel", + "DbVersion", + "IsAutoScalingEnabled", + "IsStorageAutoScalingEnabled", + "LicenseType", + "CustomerContacts", + "SecretId", + "VaultId", + "MaintenanceScheduleType", + "MtlsConnectionRequired", + "BackupRetentionPeriodDays", + "ActualUsedDataStorageSizeTb", + "AllocatedStorageSizeTb", + "ApexDetails", + "ArePrimaryAllowlistedIpsUsed", + "LifecycleDetails", + "State", + "AutonomousContainerDatabaseId", + "AvailableUpgradeVersions", + "ConnectionStrings", + "ConnectionUrls", + "FailedDataRecoveryDuration", + "MemoryTableGbs", + "IsLocalDataGuardEnabled", + "LocalAdgAutoFailoverMaxDataLossLimit", + "LocalStandbyDb", + "MemoryPerOracleComputeUnitGbs", + "LocalDisasterRecoveryType", + "DataSafeState", + "DatabaseManagementState", + "OpenMode", + "OperationsInsightsState", + "PeerDbIds", + "PermissionLevel", + "PrivateEndpoint", + "RefreshableMode", + "RefreshableState", + "Role", + "ScheduledOperationDetails", + "SqlWebDeveloperUrl", + "SupportedCloneRegions", + "UsedDataStorageSizeTbs", + "OciUrl", + "TotalAutoBackupStorageSizeGbs", + "NextLongTermBackupTime", + "MaintenanceBeginTime", + "MaintenanceEndTime", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor, + new java.lang.String[] { + "ApexVersion", "OrdsVersion", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor, + new java.lang.String[] { + "AllConnectionStrings", "Dedicated", "High", "Low", "Medium", "Profiles", + }); + internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor, + new java.lang.String[] { + "ConsumerGroup", + "DisplayName", + "HostFormat", + "IsRegional", + "Protocol", + "SessionMode", + "SyntaxFormat", + "TlsAuthentication", + "Value", + }); + internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor, + new java.lang.String[] { + "High", "Low", "Medium", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor, + new java.lang.String[] { + "ApexUri", + "DatabaseTransformsUri", + "GraphStudioUri", + "MachineLearningNotebookUri", + "MachineLearningUserManagementUri", + "MongoDbUri", + "OrdsUri", + "SqlDevWebUri", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor, + new java.lang.String[] { + "LagTimeDuration", + "LifecycleDetails", + "State", + "DataGuardRoleChangedTime", + "DisasterRecoveryRoleChangedTime", + }); + internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor, + new java.lang.String[] { + "DayOfWeek", "StartTime", "StopTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseStandbySummary.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseStandbySummary.java new file mode 100644 index 000000000000..2ca45db87c92 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseStandbySummary.java @@ -0,0 +1,1751 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Autonomous Data Guard standby database details.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary} + */ +public final class AutonomousDatabaseStandbySummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary) + AutonomousDatabaseStandbySummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDatabaseStandbySummary.newBuilder() to construct. + private AutonomousDatabaseStandbySummary( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDatabaseStandbySummary() { + lifecycleDetails_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDatabaseStandbySummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder.class); + } + + private int bitField0_; + public static final int LAG_TIME_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration lagTimeDuration_; + /** + * + * + *
+   * Output only. The amount of time, in seconds, that the data of the standby
+   * database lags in comparison to the data of the primary database.
+   * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lagTimeDuration field is set. + */ + @java.lang.Override + public boolean hasLagTimeDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The amount of time, in seconds, that the data of the standby
+   * database lags in comparison to the data of the primary database.
+   * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lagTimeDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getLagTimeDuration() { + return lagTimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : lagTimeDuration_; + } + /** + * + * + *
+   * Output only. The amount of time, in seconds, that the data of the standby
+   * database lags in comparison to the data of the primary database.
+   * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getLagTimeDurationOrBuilder() { + return lagTimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : lagTimeDuration_; + } + + public static final int LIFECYCLE_DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object lifecycleDetails_ = ""; + /** + * + * + *
+   * Output only. The additional details about the current lifecycle state of
+   * the Autonomous Database.
+   * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + @java.lang.Override + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + 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(); + lifecycleDetails_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The additional details about the current lifecycle state of
+   * the Autonomous Database.
+   * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+   * Output only. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.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. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.State getState() { + com.google.cloud.oracledatabase.v1.State result = + com.google.cloud.oracledatabase.v1.State.forNumber(state_); + return result == null ? com.google.cloud.oracledatabase.v1.State.UNRECOGNIZED : result; + } + + public static final int DATA_GUARD_ROLE_CHANGED_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp dataGuardRoleChangedTime_; + /** + * + * + *
+   * Output only. The date and time the Autonomous Data Guard role was switched
+   * for the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataGuardRoleChangedTime field is set. + */ + @java.lang.Override + public boolean hasDataGuardRoleChangedTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The date and time the Autonomous Data Guard role was switched
+   * for the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataGuardRoleChangedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDataGuardRoleChangedTime() { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } + /** + * + * + *
+   * Output only. The date and time the Autonomous Data Guard role was switched
+   * for the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDataGuardRoleChangedTimeOrBuilder() { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } + + public static final int DISASTER_RECOVERY_ROLE_CHANGED_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp disasterRecoveryRoleChangedTime_; + /** + * + * + *
+   * Output only. The date and time the Disaster Recovery role was switched for
+   * the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the disasterRecoveryRoleChangedTime field is set. + */ + @java.lang.Override + public boolean hasDisasterRecoveryRoleChangedTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. The date and time the Disaster Recovery role was switched for
+   * the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disasterRecoveryRoleChangedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDisasterRecoveryRoleChangedTime() { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; + } + /** + * + * + *
+   * Output only. The date and time the Disaster Recovery role was switched for
+   * the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDisasterRecoveryRoleChangedTimeOrBuilder() { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; + } + + 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, getLagTimeDuration()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lifecycleDetails_); + } + if (state_ != com.google.cloud.oracledatabase.v1.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDataGuardRoleChangedTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDisasterRecoveryRoleChangedTime()); + } + 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, getLagTimeDuration()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lifecycleDetails_); + } + if (state_ != com.google.cloud.oracledatabase.v1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getDataGuardRoleChangedTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getDisasterRecoveryRoleChangedTime()); + } + 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.oracledatabase.v1.AutonomousDatabaseStandbySummary)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary other = + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary) obj; + + if (hasLagTimeDuration() != other.hasLagTimeDuration()) return false; + if (hasLagTimeDuration()) { + if (!getLagTimeDuration().equals(other.getLagTimeDuration())) return false; + } + if (!getLifecycleDetails().equals(other.getLifecycleDetails())) return false; + if (state_ != other.state_) return false; + if (hasDataGuardRoleChangedTime() != other.hasDataGuardRoleChangedTime()) return false; + if (hasDataGuardRoleChangedTime()) { + if (!getDataGuardRoleChangedTime().equals(other.getDataGuardRoleChangedTime())) return false; + } + if (hasDisasterRecoveryRoleChangedTime() != other.hasDisasterRecoveryRoleChangedTime()) + return false; + if (hasDisasterRecoveryRoleChangedTime()) { + if (!getDisasterRecoveryRoleChangedTime().equals(other.getDisasterRecoveryRoleChangedTime())) + 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 (hasLagTimeDuration()) { + hash = (37 * hash) + LAG_TIME_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getLagTimeDuration().hashCode(); + } + hash = (37 * hash) + LIFECYCLE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLifecycleDetails().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasDataGuardRoleChangedTime()) { + hash = (37 * hash) + DATA_GUARD_ROLE_CHANGED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDataGuardRoleChangedTime().hashCode(); + } + if (hasDisasterRecoveryRoleChangedTime()) { + hash = (37 * hash) + DISASTER_RECOVERY_ROLE_CHANGED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDisasterRecoveryRoleChangedTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary 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.oracledatabase.v1.AutonomousDatabaseStandbySummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary 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.oracledatabase.v1.AutonomousDatabaseStandbySummary parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary 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.oracledatabase.v1.AutonomousDatabaseStandbySummary + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + 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.oracledatabase.v1.AutonomousDatabaseStandbySummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary 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.oracledatabase.v1.AutonomousDatabaseStandbySummary 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; + } + /** + * + * + *
+   * Autonomous Data Guard standby database details.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary) + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.class, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLagTimeDurationFieldBuilder(); + getDataGuardRoleChangedTimeFieldBuilder(); + getDisasterRecoveryRoleChangedTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lagTimeDuration_ = null; + if (lagTimeDurationBuilder_ != null) { + lagTimeDurationBuilder_.dispose(); + lagTimeDurationBuilder_ = null; + } + lifecycleDetails_ = ""; + state_ = 0; + dataGuardRoleChangedTime_ = null; + if (dataGuardRoleChangedTimeBuilder_ != null) { + dataGuardRoleChangedTimeBuilder_.dispose(); + dataGuardRoleChangedTimeBuilder_ = null; + } + disasterRecoveryRoleChangedTime_ = null; + if (disasterRecoveryRoleChangedTimeBuilder_ != null) { + disasterRecoveryRoleChangedTimeBuilder_.dispose(); + disasterRecoveryRoleChangedTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary build() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary result = + new com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lagTimeDuration_ = + lagTimeDurationBuilder_ == null ? lagTimeDuration_ : lagTimeDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lifecycleDetails_ = lifecycleDetails_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataGuardRoleChangedTime_ = + dataGuardRoleChangedTimeBuilder_ == null + ? dataGuardRoleChangedTime_ + : dataGuardRoleChangedTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disasterRecoveryRoleChangedTime_ = + disasterRecoveryRoleChangedTimeBuilder_ == null + ? disasterRecoveryRoleChangedTime_ + : disasterRecoveryRoleChangedTimeBuilder_.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.oracledatabase.v1.AutonomousDatabaseStandbySummary) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary other) { + if (other + == com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance()) return this; + if (other.hasLagTimeDuration()) { + mergeLagTimeDuration(other.getLagTimeDuration()); + } + if (!other.getLifecycleDetails().isEmpty()) { + lifecycleDetails_ = other.lifecycleDetails_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasDataGuardRoleChangedTime()) { + mergeDataGuardRoleChangedTime(other.getDataGuardRoleChangedTime()); + } + if (other.hasDisasterRecoveryRoleChangedTime()) { + mergeDisasterRecoveryRoleChangedTime(other.getDisasterRecoveryRoleChangedTime()); + } + 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(getLagTimeDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + lifecycleDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getDataGuardRoleChangedTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDisasterRecoveryRoleChangedTimeFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.google.protobuf.Duration lagTimeDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lagTimeDurationBuilder_; + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lagTimeDuration field is set. + */ + public boolean hasLagTimeDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lagTimeDuration. + */ + public com.google.protobuf.Duration getLagTimeDuration() { + if (lagTimeDurationBuilder_ == null) { + return lagTimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : lagTimeDuration_; + } else { + return lagTimeDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLagTimeDuration(com.google.protobuf.Duration value) { + if (lagTimeDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lagTimeDuration_ = value; + } else { + lagTimeDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLagTimeDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (lagTimeDurationBuilder_ == null) { + lagTimeDuration_ = builderForValue.build(); + } else { + lagTimeDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLagTimeDuration(com.google.protobuf.Duration value) { + if (lagTimeDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && lagTimeDuration_ != null + && lagTimeDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getLagTimeDurationBuilder().mergeFrom(value); + } else { + lagTimeDuration_ = value; + } + } else { + lagTimeDurationBuilder_.mergeFrom(value); + } + if (lagTimeDuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLagTimeDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + lagTimeDuration_ = null; + if (lagTimeDurationBuilder_ != null) { + lagTimeDurationBuilder_.dispose(); + lagTimeDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getLagTimeDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLagTimeDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getLagTimeDurationOrBuilder() { + if (lagTimeDurationBuilder_ != null) { + return lagTimeDurationBuilder_.getMessageOrBuilder(); + } else { + return lagTimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : lagTimeDuration_; + } + } + /** + * + * + *
+     * Output only. The amount of time, in seconds, that the data of the standby
+     * database lags in comparison to the data of the primary database.
+     * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getLagTimeDurationFieldBuilder() { + if (lagTimeDurationBuilder_ == null) { + lagTimeDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLagTimeDuration(), getParentForChildren(), isClean()); + lagTimeDuration_ = null; + } + return lagTimeDurationBuilder_; + } + + private java.lang.Object lifecycleDetails_ = ""; + /** + * + * + *
+     * Output only. The additional details about the current lifecycle state of
+     * the Autonomous Database.
+     * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lifecycleDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The additional details about the current lifecycle state of
+     * the Autonomous Database.
+     * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The additional details about the current lifecycle state of
+     * the Autonomous Database.
+     * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lifecycleDetails_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The additional details about the current lifecycle state of
+     * the Autonomous Database.
+     * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLifecycleDetails() { + lifecycleDetails_ = getDefaultInstance().getLifecycleDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The additional details about the current lifecycle state of
+     * the Autonomous Database.
+     * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lifecycleDetails_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.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. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.State getState() { + com.google.cloud.oracledatabase.v1.State result = + com.google.cloud.oracledatabase.v1.State.forNumber(state_); + return result == null ? com.google.cloud.oracledatabase.v1.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Autonomous Database.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp dataGuardRoleChangedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dataGuardRoleChangedTimeBuilder_; + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataGuardRoleChangedTime field is set. + */ + public boolean hasDataGuardRoleChangedTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataGuardRoleChangedTime. + */ + public com.google.protobuf.Timestamp getDataGuardRoleChangedTime() { + if (dataGuardRoleChangedTimeBuilder_ == null) { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } else { + return dataGuardRoleChangedTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataGuardRoleChangedTime(com.google.protobuf.Timestamp value) { + if (dataGuardRoleChangedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataGuardRoleChangedTime_ = value; + } else { + dataGuardRoleChangedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataGuardRoleChangedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (dataGuardRoleChangedTimeBuilder_ == null) { + dataGuardRoleChangedTime_ = builderForValue.build(); + } else { + dataGuardRoleChangedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataGuardRoleChangedTime(com.google.protobuf.Timestamp value) { + if (dataGuardRoleChangedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && dataGuardRoleChangedTime_ != null + && dataGuardRoleChangedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDataGuardRoleChangedTimeBuilder().mergeFrom(value); + } else { + dataGuardRoleChangedTime_ = value; + } + } else { + dataGuardRoleChangedTimeBuilder_.mergeFrom(value); + } + if (dataGuardRoleChangedTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataGuardRoleChangedTime() { + bitField0_ = (bitField0_ & ~0x00000008); + dataGuardRoleChangedTime_ = null; + if (dataGuardRoleChangedTimeBuilder_ != null) { + dataGuardRoleChangedTimeBuilder_.dispose(); + dataGuardRoleChangedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDataGuardRoleChangedTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDataGuardRoleChangedTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDataGuardRoleChangedTimeOrBuilder() { + if (dataGuardRoleChangedTimeBuilder_ != null) { + return dataGuardRoleChangedTimeBuilder_.getMessageOrBuilder(); + } else { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } + } + /** + * + * + *
+     * Output only. The date and time the Autonomous Data Guard role was switched
+     * for the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDataGuardRoleChangedTimeFieldBuilder() { + if (dataGuardRoleChangedTimeBuilder_ == null) { + dataGuardRoleChangedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDataGuardRoleChangedTime(), getParentForChildren(), isClean()); + dataGuardRoleChangedTime_ = null; + } + return dataGuardRoleChangedTimeBuilder_; + } + + private com.google.protobuf.Timestamp disasterRecoveryRoleChangedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + disasterRecoveryRoleChangedTimeBuilder_; + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the disasterRecoveryRoleChangedTime field is set. + */ + public boolean hasDisasterRecoveryRoleChangedTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disasterRecoveryRoleChangedTime. + */ + public com.google.protobuf.Timestamp getDisasterRecoveryRoleChangedTime() { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; + } else { + return disasterRecoveryRoleChangedTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisasterRecoveryRoleChangedTime(com.google.protobuf.Timestamp value) { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disasterRecoveryRoleChangedTime_ = value; + } else { + disasterRecoveryRoleChangedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisasterRecoveryRoleChangedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + disasterRecoveryRoleChangedTime_ = builderForValue.build(); + } else { + disasterRecoveryRoleChangedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDisasterRecoveryRoleChangedTime(com.google.protobuf.Timestamp value) { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && disasterRecoveryRoleChangedTime_ != null + && disasterRecoveryRoleChangedTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDisasterRecoveryRoleChangedTimeBuilder().mergeFrom(value); + } else { + disasterRecoveryRoleChangedTime_ = value; + } + } else { + disasterRecoveryRoleChangedTimeBuilder_.mergeFrom(value); + } + if (disasterRecoveryRoleChangedTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDisasterRecoveryRoleChangedTime() { + bitField0_ = (bitField0_ & ~0x00000010); + disasterRecoveryRoleChangedTime_ = null; + if (disasterRecoveryRoleChangedTimeBuilder_ != null) { + disasterRecoveryRoleChangedTimeBuilder_.dispose(); + disasterRecoveryRoleChangedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDisasterRecoveryRoleChangedTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDisasterRecoveryRoleChangedTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDisasterRecoveryRoleChangedTimeOrBuilder() { + if (disasterRecoveryRoleChangedTimeBuilder_ != null) { + return disasterRecoveryRoleChangedTimeBuilder_.getMessageOrBuilder(); + } else { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; + } + } + /** + * + * + *
+     * Output only. The date and time the Disaster Recovery role was switched for
+     * the standby Autonomous Database.
+     * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDisasterRecoveryRoleChangedTimeFieldBuilder() { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + disasterRecoveryRoleChangedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDisasterRecoveryRoleChangedTime(), getParentForChildren(), isClean()); + disasterRecoveryRoleChangedTime_ = null; + } + return disasterRecoveryRoleChangedTimeBuilder_; + } + + @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.oracledatabase.v1.AutonomousDatabaseStandbySummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary) + private static final com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDatabaseStandbySummary 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.oracledatabase.v1.AutonomousDatabaseStandbySummary + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseStandbySummaryOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseStandbySummaryOrBuilder.java new file mode 100644 index 000000000000..b61304dbc3f8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseStandbySummaryOrBuilder.java @@ -0,0 +1,214 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDatabaseStandbySummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The amount of time, in seconds, that the data of the standby
+   * database lags in comparison to the data of the primary database.
+   * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lagTimeDuration field is set. + */ + boolean hasLagTimeDuration(); + /** + * + * + *
+   * Output only. The amount of time, in seconds, that the data of the standby
+   * database lags in comparison to the data of the primary database.
+   * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lagTimeDuration. + */ + com.google.protobuf.Duration getLagTimeDuration(); + /** + * + * + *
+   * Output only. The amount of time, in seconds, that the data of the standby
+   * database lags in comparison to the data of the primary database.
+   * 
+ * + * + * .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getLagTimeDurationOrBuilder(); + + /** + * + * + *
+   * Output only. The additional details about the current lifecycle state of
+   * the Autonomous Database.
+   * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + java.lang.String getLifecycleDetails(); + /** + * + * + *
+   * Output only. The additional details about the current lifecycle state of
+   * the Autonomous Database.
+   * 
+ * + * string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + com.google.protobuf.ByteString getLifecycleDetailsBytes(); + + /** + * + * + *
+   * Output only. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The current lifecycle state of the Autonomous Database.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.State getState(); + + /** + * + * + *
+   * Output only. The date and time the Autonomous Data Guard role was switched
+   * for the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataGuardRoleChangedTime field is set. + */ + boolean hasDataGuardRoleChangedTime(); + /** + * + * + *
+   * Output only. The date and time the Autonomous Data Guard role was switched
+   * for the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataGuardRoleChangedTime. + */ + com.google.protobuf.Timestamp getDataGuardRoleChangedTime(); + /** + * + * + *
+   * Output only. The date and time the Autonomous Data Guard role was switched
+   * for the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDataGuardRoleChangedTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The date and time the Disaster Recovery role was switched for
+   * the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the disasterRecoveryRoleChangedTime field is set. + */ + boolean hasDisasterRecoveryRoleChangedTime(); + /** + * + * + *
+   * Output only. The date and time the Disaster Recovery role was switched for
+   * the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disasterRecoveryRoleChangedTime. + */ + com.google.protobuf.Timestamp getDisasterRecoveryRoleChangedTime(); + /** + * + * + *
+   * Output only. The date and time the Disaster Recovery role was switched for
+   * the standby Autonomous Database.
+   * 
+ * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDisasterRecoveryRoleChangedTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbBackupProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbBackupProto.java new file mode 100644 index 000000000000..bec973f0d05a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbBackupProto.java @@ -0,0 +1,171 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class AutonomousDbBackupProto { + private AutonomousDbBackupProto() {} + + 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_oracledatabase_v1_AutonomousDatabaseBackup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/oracledatabase/v1/autonom" + + "ous_db_backup.proto\022\036google.cloud.oracle" + + "database.v1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032\037google/" + + "protobuf/timestamp.proto\"\332\004\n\030AutonomousD" + + "atabaseBackup\022\021\n\004name\030\001 \001(\tB\003\340A\010\022U\n\023auto" + + "nomous_database\030\002 \001(\tB8\340A\002\372A2\n0oracledat" + + "abase.googleapis.com/AutonomousDatabase\022" + + "\031\n\014display_name\030\003 \001(\tB\003\340A\001\022[\n\nproperties" + + "\030\004 \001(\0132B.google.cloud.oracledatabase.v1." + + "AutonomousDatabaseBackupPropertiesB\003\340A\001\022" + + "Y\n\006labels\030\005 \003(\0132D.google.cloud.oracledat" + + "abase.v1.AutonomousDatabaseBackup.Labels" + + "EntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001:\321\001\352A\315\001\n6oracledatabase" + + ".googleapis.com/AutonomousDatabaseBackup" + + "\022^projects/{project}/locations/{location" + + "}/autonomousDatabaseBackups/{autonomous_" + + "database_backup}*\031autonomousDatabaseBack" + + "ups2\030autonomousDatabaseBackup\"\362\007\n\"Autono" + + "mousDatabaseBackupProperties\022\021\n\004ocid\030\001 \001" + + "(\tB\003\340A\003\022\"\n\025retention_period_days\030\002 \001(\005B\003" + + "\340A\001\022\033\n\016compartment_id\030\003 \001(\tB\003\340A\003\022\035\n\020data" + + "base_size_tb\030\004 \001(\002B\003\340A\003\022\027\n\ndb_version\030\005 " + + "\001(\tB\003\340A\003\022 \n\023is_long_term_backup\030\006 \001(\010B\003\340" + + "A\003\022 \n\023is_automatic_backup\030\007 \001(\010B\003\340A\003\022\032\n\r" + + "is_restorable\030\010 \001(\010B\003\340A\003\022\031\n\014key_store_id" + + "\030\t \001(\tB\003\340A\001\022\035\n\020key_store_wallet\030\n \001(\tB\003\340" + + "A\001\022\027\n\nkms_key_id\030\013 \001(\tB\003\340A\001\022\037\n\022kms_key_v" + + "ersion_id\030\014 \001(\tB\003\340A\001\022\036\n\021lifecycle_detail" + + "s\030\r \001(\tB\003\340A\003\022f\n\017lifecycle_state\030\016 \001(\0162H." + + "google.cloud.oracledatabase.v1.Autonomou" + + "sDatabaseBackupProperties.StateB\003\340A\003\022\024\n\007" + + "size_tb\030\017 \001(\002B\003\340A\003\022<\n\023available_till_tim" + + "e\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0221\n\010end_time\030\021 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0223\n\nstart_time\030\022 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022Z\n\004type\030\023 \001(\0162G" + + ".google.cloud.oracledatabase.v1.Autonomo" + + "usDatabaseBackupProperties.TypeB\003\340A\003\022\025\n\010" + + "vault_id\030\024 \001(\tB\003\340A\001\"m\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003\022\013\n\007DELETED\020\004\022\n\n\006FAILED\020\006\022\014\n\010" + + "UPDATING\020\007\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" + + "\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002\022\r\n\tLONG_TERM" + + "\020\003B\361\001\n\"com.google.cloud.oracledatabase.v" + + "1B\027AutonomousDbBackupProtoP\001ZJcloud.goog" + + "le.com/go/oracledatabase/apiv1/oracledat" + + "abasepb;oracledatabasepb\252\002\036Google.Cloud." + + "OracleDatabase.V1\312\002\036Google\\Cloud\\OracleD" + + "atabase\\V1\352\002!Google::Cloud::OracleDataba" + + "se::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_descriptor, + new java.lang.String[] { + "Name", "AutonomousDatabase", "DisplayName", "Properties", "Labels", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseBackupProperties_descriptor, + new java.lang.String[] { + "Ocid", + "RetentionPeriodDays", + "CompartmentId", + "DatabaseSizeTb", + "DbVersion", + "IsLongTermBackup", + "IsAutomaticBackup", + "IsRestorable", + "KeyStoreId", + "KeyStoreWallet", + "KmsKeyId", + "KmsKeyVersionId", + "LifecycleDetails", + "LifecycleState", + "SizeTb", + "AvailableTillTime", + "EndTime", + "StartTime", + "Type", + "VaultId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersion.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersion.java new file mode 100644 index 000000000000..566874f6b7c7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersion.java @@ -0,0 +1,1177 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Autonomous Database version.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDbVersion} + */ +public final class AutonomousDbVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.AutonomousDbVersion) + AutonomousDbVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutonomousDbVersion.newBuilder() to construct. + private AutonomousDbVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutonomousDbVersion() { + name_ = ""; + version_ = ""; + dbWorkload_ = 0; + workloadUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutonomousDbVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.class, + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Version resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+   * 
+ * + * 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 name of the Autonomous Database Version resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+   * 
+ * + * 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 VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
+   * Output only. An Oracle Database version for Autonomous Database.
+   * 
+ * + * string version = 2 [(.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. An Oracle Database version for Autonomous Database.
+   * 
+ * + * string version = 2 [(.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; + } + } + + public static final int DB_WORKLOAD_FIELD_NUMBER = 4; + private int dbWorkload_ = 0; + /** + * + * + *
+   * Output only. The Autonomous Database workload type.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dbWorkload. + */ + @java.lang.Override + public int getDbWorkloadValue() { + return dbWorkload_; + } + /** + * + * + *
+   * Output only. The Autonomous Database workload type.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dbWorkload. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DBWorkload getDbWorkload() { + com.google.cloud.oracledatabase.v1.DBWorkload result = + com.google.cloud.oracledatabase.v1.DBWorkload.forNumber(dbWorkload_); + return result == null ? com.google.cloud.oracledatabase.v1.DBWorkload.UNRECOGNIZED : result; + } + + public static final int WORKLOAD_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadUri_ = ""; + /** + * + * + *
+   * Output only. A URL that points to a detailed description of the Autonomous
+   * Database version.
+   * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadUri. + */ + @java.lang.Override + public java.lang.String getWorkloadUri() { + java.lang.Object ref = workloadUri_; + 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(); + workloadUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A URL that points to a detailed description of the Autonomous
+   * Database version.
+   * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadUriBytes() { + java.lang.Object ref = workloadUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadUri_ = 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (dbWorkload_ + != com.google.cloud.oracledatabase.v1.DBWorkload.DB_WORKLOAD_UNSPECIFIED.getNumber()) { + output.writeEnum(4, dbWorkload_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workloadUri_); + } + 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(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (dbWorkload_ + != com.google.cloud.oracledatabase.v1.DBWorkload.DB_WORKLOAD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, dbWorkload_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workloadUri_); + } + 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.oracledatabase.v1.AutonomousDbVersion)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.AutonomousDbVersion other = + (com.google.cloud.oracledatabase.v1.AutonomousDbVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (dbWorkload_ != other.dbWorkload_) return false; + if (!getWorkloadUri().equals(other.getWorkloadUri())) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + DB_WORKLOAD_FIELD_NUMBER; + hash = (53 * hash) + dbWorkload_; + hash = (37 * hash) + WORKLOAD_URI_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion 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.oracledatabase.v1.AutonomousDbVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion 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.oracledatabase.v1.AutonomousDbVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion 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.oracledatabase.v1.AutonomousDbVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion 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.oracledatabase.v1.AutonomousDbVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion 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.oracledatabase.v1.AutonomousDbVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Autonomous Database version.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.AutonomousDbVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.AutonomousDbVersion) + com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.class, + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.AutonomousDbVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = ""; + dbWorkload_ = 0; + workloadUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto + .internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDbVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion build() { + com.google.cloud.oracledatabase.v1.AutonomousDbVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion buildPartial() { + com.google.cloud.oracledatabase.v1.AutonomousDbVersion result = + new com.google.cloud.oracledatabase.v1.AutonomousDbVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.AutonomousDbVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dbWorkload_ = dbWorkload_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workloadUri_ = workloadUri_; + } + } + + @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.oracledatabase.v1.AutonomousDbVersion) { + return mergeFrom((com.google.cloud.oracledatabase.v1.AutonomousDbVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.AutonomousDbVersion other) { + if (other == com.google.cloud.oracledatabase.v1.AutonomousDbVersion.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.dbWorkload_ != 0) { + setDbWorkloadValue(other.getDbWorkloadValue()); + } + if (!other.getWorkloadUri().isEmpty()) { + workloadUri_ = other.workloadUri_; + 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 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + dbWorkload_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + workloadUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. The name of the Autonomous Database Version resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+     * 
+ * + * 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 name of the Autonomous Database Version resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+     * 
+ * + * 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 name of the Autonomous Database Version resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+     * 
+ * + * 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 name of the Autonomous Database Version resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+     * 
+ * + * 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 name of the Autonomous Database Version resource with the
+     * format:
+     * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+     * 
+ * + * 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 version_ = ""; + /** + * + * + *
+     * Output only. An Oracle Database version for Autonomous Database.
+     * 
+ * + * string version = 2 [(.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. An Oracle Database version for Autonomous Database.
+     * 
+ * + * string version = 2 [(.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. An Oracle Database version for Autonomous Database.
+     * 
+ * + * string version = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. An Oracle Database version for Autonomous Database.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. An Oracle Database version for Autonomous Database.
+     * 
+ * + * string version = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private int dbWorkload_ = 0; + /** + * + * + *
+     * Output only. The Autonomous Database workload type.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dbWorkload. + */ + @java.lang.Override + public int getDbWorkloadValue() { + return dbWorkload_; + } + /** + * + * + *
+     * Output only. The Autonomous Database workload type.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dbWorkload to set. + * @return This builder for chaining. + */ + public Builder setDbWorkloadValue(int value) { + dbWorkload_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Autonomous Database workload type.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dbWorkload. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DBWorkload getDbWorkload() { + com.google.cloud.oracledatabase.v1.DBWorkload result = + com.google.cloud.oracledatabase.v1.DBWorkload.forNumber(dbWorkload_); + return result == null ? com.google.cloud.oracledatabase.v1.DBWorkload.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The Autonomous Database workload type.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dbWorkload to set. + * @return This builder for chaining. + */ + public Builder setDbWorkload(com.google.cloud.oracledatabase.v1.DBWorkload value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + dbWorkload_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Autonomous Database workload type.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDbWorkload() { + bitField0_ = (bitField0_ & ~0x00000004); + dbWorkload_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workloadUri_ = ""; + /** + * + * + *
+     * Output only. A URL that points to a detailed description of the Autonomous
+     * Database version.
+     * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadUri. + */ + public java.lang.String getWorkloadUri() { + java.lang.Object ref = workloadUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A URL that points to a detailed description of the Autonomous
+     * Database version.
+     * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadUri. + */ + public com.google.protobuf.ByteString getWorkloadUriBytes() { + java.lang.Object ref = workloadUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A URL that points to a detailed description of the Autonomous
+     * Database version.
+     * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workloadUri to set. + * @return This builder for chaining. + */ + public Builder setWorkloadUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URL that points to a detailed description of the Autonomous
+     * Database version.
+     * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadUri() { + workloadUri_ = getDefaultInstance().getWorkloadUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URL that points to a detailed description of the Autonomous
+     * Database version.
+     * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workloadUri to set. + * @return This builder for chaining. + */ + public Builder setWorkloadUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadUri_ = 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.oracledatabase.v1.AutonomousDbVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.AutonomousDbVersion) + private static final com.google.cloud.oracledatabase.v1.AutonomousDbVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.AutonomousDbVersion(); + } + + public static com.google.cloud.oracledatabase.v1.AutonomousDbVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutonomousDbVersion 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.oracledatabase.v1.AutonomousDbVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java new file mode 100644 index 000000000000..93f447304a54 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java @@ -0,0 +1,232 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 AutonomousDbVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTONOMOUS_DB_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autonomousDbVersions/{autonomous_db_version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autonomousDbVersion; + + @Deprecated + protected AutonomousDbVersionName() { + project = null; + location = null; + autonomousDbVersion = null; + } + + private AutonomousDbVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autonomousDbVersion = Preconditions.checkNotNull(builder.getAutonomousDbVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDbVersion() { + return autonomousDbVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AutonomousDbVersionName of( + String project, String location, String autonomousDbVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDbVersion(autonomousDbVersion) + .build(); + } + + public static String format(String project, String location, String autonomousDbVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutonomousDbVersion(autonomousDbVersion) + .build() + .toString(); + } + + public static AutonomousDbVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTONOMOUS_DB_VERSION.validatedMatch( + formattedString, "AutonomousDbVersionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("autonomous_db_version")); + } + + 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 (AutonomousDbVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTONOMOUS_DB_VERSION.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 (autonomousDbVersion != null) { + fieldMapBuilder.put("autonomous_db_version", autonomousDbVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTONOMOUS_DB_VERSION.instantiate( + "project", project, "location", location, "autonomous_db_version", autonomousDbVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AutonomousDbVersionName that = ((AutonomousDbVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.autonomousDbVersion, that.autonomousDbVersion); + } + 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(autonomousDbVersion); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/autonomousDbVersions/{autonomous_db_version}. + */ + public static class Builder { + private String project; + private String location; + private String autonomousDbVersion; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutonomousDbVersion() { + return autonomousDbVersion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutonomousDbVersion(String autonomousDbVersion) { + this.autonomousDbVersion = autonomousDbVersion; + return this; + } + + private Builder(AutonomousDbVersionName autonomousDbVersionName) { + this.project = autonomousDbVersionName.project; + this.location = autonomousDbVersionName.location; + this.autonomousDbVersion = autonomousDbVersionName.autonomousDbVersion; + } + + public AutonomousDbVersionName build() { + return new AutonomousDbVersionName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionOrBuilder.java new file mode 100644 index 000000000000..3e6f8171d4dc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionOrBuilder.java @@ -0,0 +1,136 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface AutonomousDbVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.AutonomousDbVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Version resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Autonomous Database Version resource with the
+   * format:
+   * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. An Oracle Database version for Autonomous Database.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Output only. An Oracle Database version for Autonomous Database.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Output only. The Autonomous Database workload type.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dbWorkload. + */ + int getDbWorkloadValue(); + /** + * + * + *
+   * Output only. The Autonomous Database workload type.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dbWorkload. + */ + com.google.cloud.oracledatabase.v1.DBWorkload getDbWorkload(); + + /** + * + * + *
+   * Output only. A URL that points to a detailed description of the Autonomous
+   * Database version.
+   * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadUri. + */ + java.lang.String getWorkloadUri(); + /** + * + * + *
+   * Output only. A URL that points to a detailed description of the Autonomous
+   * Database version.
+   * 
+ * + * string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadUri. + */ + com.google.protobuf.ByteString getWorkloadUriBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionProto.java new file mode 100644 index 000000000000..47ea76a13b06 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionProto.java @@ -0,0 +1,94 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_db_version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class AutonomousDbVersionProto { + private AutonomousDbVersionProto() {} + + 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_oracledatabase_v1_AutonomousDbVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_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/oracledatabase/v1/autonom" + + "ous_db_version.proto\022\036google.cloud.oracl" + + "edatabase.v1\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\0328google" + + "/cloud/oracledatabase/v1/autonomous_data" + + "base.proto\"\332\002\n\023AutonomousDbVersion\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\010\022\024\n\007version\030\002 \001(\tB\003\340A\003\022D\n\013d" + + "b_workload\030\004 \001(\0162*.google.cloud.oracleda" + + "tabase.v1.DBWorkloadB\003\340A\003\022\031\n\014workload_ur" + + "i\030\005 \001(\tB\003\340A\003:\270\001\352A\264\001\n1oracledatabase.goog" + + "leapis.com/AutonomousDbVersion\022Tprojects" + + "/{project}/locations/{location}/autonomo" + + "usDbVersions/{autonomous_db_version}*\024au" + + "tonomousDbVersions2\023autonomousDbVersionB" + + "\362\001\n\"com.google.cloud.oracledatabase.v1B\030" + + "AutonomousDbVersionProtoP\001ZJcloud.google" + + ".com/go/oracledatabase/apiv1/oracledatab" + + "asepb;oracledatabasepb\252\002\036Google.Cloud.Or" + + "acleDatabase.V1\312\002\036Google\\Cloud\\OracleDat" + + "abase\\V1\352\002!Google::Cloud::OracleDatabase" + + "::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_AutonomousDbVersion_descriptor, + new java.lang.String[] { + "Name", "Version", "DbWorkload", "WorkloadUri", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudAccountDetails.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudAccountDetails.java new file mode 100644 index 000000000000..dbe53494fc83 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudAccountDetails.java @@ -0,0 +1,1277 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/entitlement.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the OCI Cloud Account.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudAccountDetails} + */ +public final class CloudAccountDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CloudAccountDetails) + CloudAccountDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudAccountDetails.newBuilder() to construct. + private CloudAccountDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudAccountDetails() { + cloudAccount_ = ""; + cloudAccountHomeRegion_ = ""; + linkExistingAccountUri_ = ""; + accountCreationUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudAccountDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudAccountDetails.class, + com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder.class); + } + + private int bitField0_; + public static final int CLOUD_ACCOUNT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudAccount_ = ""; + /** + * + * + *
+   * Output only. OCI account name.
+   * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudAccount. + */ + @java.lang.Override + public java.lang.String getCloudAccount() { + java.lang.Object ref = cloudAccount_; + 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(); + cloudAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCI account name.
+   * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudAccountBytes() { + java.lang.Object ref = cloudAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_ACCOUNT_HOME_REGION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudAccountHomeRegion_ = ""; + /** + * + * + *
+   * Output only. OCI account home region.
+   * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudAccountHomeRegion. + */ + @java.lang.Override + public java.lang.String getCloudAccountHomeRegion() { + java.lang.Object ref = cloudAccountHomeRegion_; + 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(); + cloudAccountHomeRegion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCI account home region.
+   * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudAccountHomeRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudAccountHomeRegionBytes() { + java.lang.Object ref = cloudAccountHomeRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudAccountHomeRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_EXISTING_ACCOUNT_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object linkExistingAccountUri_ = ""; + /** + * + * + *
+   * Output only. URL to link an existing account.
+   * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkExistingAccountUri field is set. + */ + @java.lang.Override + public boolean hasLinkExistingAccountUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. URL to link an existing account.
+   * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkExistingAccountUri. + */ + @java.lang.Override + public java.lang.String getLinkExistingAccountUri() { + java.lang.Object ref = linkExistingAccountUri_; + 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(); + linkExistingAccountUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. URL to link an existing account.
+   * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for linkExistingAccountUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLinkExistingAccountUriBytes() { + java.lang.Object ref = linkExistingAccountUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + linkExistingAccountUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCOUNT_CREATION_URI_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountCreationUri_ = ""; + /** + * + * + *
+   * Output only. URL to create a new account and link.
+   * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the accountCreationUri field is set. + */ + @java.lang.Override + public boolean hasAccountCreationUri() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. URL to create a new account and link.
+   * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The accountCreationUri. + */ + @java.lang.Override + public java.lang.String getAccountCreationUri() { + java.lang.Object ref = accountCreationUri_; + 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(); + accountCreationUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. URL to create a new account and link.
+   * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for accountCreationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountCreationUriBytes() { + java.lang.Object ref = accountCreationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountCreationUri_ = 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(cloudAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudAccount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudAccountHomeRegion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cloudAccountHomeRegion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, linkExistingAccountUri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, accountCreationUri_); + } + 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(cloudAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudAccount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudAccountHomeRegion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cloudAccountHomeRegion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, linkExistingAccountUri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, accountCreationUri_); + } + 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.oracledatabase.v1.CloudAccountDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CloudAccountDetails other = + (com.google.cloud.oracledatabase.v1.CloudAccountDetails) obj; + + if (!getCloudAccount().equals(other.getCloudAccount())) return false; + if (!getCloudAccountHomeRegion().equals(other.getCloudAccountHomeRegion())) return false; + if (hasLinkExistingAccountUri() != other.hasLinkExistingAccountUri()) return false; + if (hasLinkExistingAccountUri()) { + if (!getLinkExistingAccountUri().equals(other.getLinkExistingAccountUri())) return false; + } + if (hasAccountCreationUri() != other.hasAccountCreationUri()) return false; + if (hasAccountCreationUri()) { + if (!getAccountCreationUri().equals(other.getAccountCreationUri())) 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) + CLOUD_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getCloudAccount().hashCode(); + hash = (37 * hash) + CLOUD_ACCOUNT_HOME_REGION_FIELD_NUMBER; + hash = (53 * hash) + getCloudAccountHomeRegion().hashCode(); + if (hasLinkExistingAccountUri()) { + hash = (37 * hash) + LINK_EXISTING_ACCOUNT_URI_FIELD_NUMBER; + hash = (53 * hash) + getLinkExistingAccountUri().hashCode(); + } + if (hasAccountCreationUri()) { + hash = (37 * hash) + ACCOUNT_CREATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getAccountCreationUri().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails 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.oracledatabase.v1.CloudAccountDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails 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.oracledatabase.v1.CloudAccountDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails 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.oracledatabase.v1.CloudAccountDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails 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.oracledatabase.v1.CloudAccountDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails 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.oracledatabase.v1.CloudAccountDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudAccountDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CloudAccountDetails) + com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudAccountDetails.class, + com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CloudAccountDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudAccount_ = ""; + cloudAccountHomeRegion_ = ""; + linkExistingAccountUri_ = ""; + accountCreationUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudAccountDetails getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudAccountDetails build() { + com.google.cloud.oracledatabase.v1.CloudAccountDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudAccountDetails buildPartial() { + com.google.cloud.oracledatabase.v1.CloudAccountDetails result = + new com.google.cloud.oracledatabase.v1.CloudAccountDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CloudAccountDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudAccount_ = cloudAccount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cloudAccountHomeRegion_ = cloudAccountHomeRegion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.linkExistingAccountUri_ = linkExistingAccountUri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.accountCreationUri_ = accountCreationUri_; + 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.oracledatabase.v1.CloudAccountDetails) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CloudAccountDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudAccountDetails other) { + if (other == com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance()) + return this; + if (!other.getCloudAccount().isEmpty()) { + cloudAccount_ = other.cloudAccount_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCloudAccountHomeRegion().isEmpty()) { + cloudAccountHomeRegion_ = other.cloudAccountHomeRegion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasLinkExistingAccountUri()) { + linkExistingAccountUri_ = other.linkExistingAccountUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasAccountCreationUri()) { + accountCreationUri_ = other.accountCreationUri_; + 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 10: + { + cloudAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cloudAccountHomeRegion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + linkExistingAccountUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + accountCreationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 cloudAccount_ = ""; + /** + * + * + *
+     * Output only. OCI account name.
+     * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudAccount. + */ + public java.lang.String getCloudAccount() { + java.lang.Object ref = cloudAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCI account name.
+     * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudAccount. + */ + public com.google.protobuf.ByteString getCloudAccountBytes() { + java.lang.Object ref = cloudAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCI account name.
+     * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cloudAccount to set. + * @return This builder for chaining. + */ + public Builder setCloudAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCI account name.
+     * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCloudAccount() { + cloudAccount_ = getDefaultInstance().getCloudAccount(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCI account name.
+     * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cloudAccount to set. + * @return This builder for chaining. + */ + public Builder setCloudAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cloudAccountHomeRegion_ = ""; + /** + * + * + *
+     * Output only. OCI account home region.
+     * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudAccountHomeRegion. + */ + public java.lang.String getCloudAccountHomeRegion() { + java.lang.Object ref = cloudAccountHomeRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudAccountHomeRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCI account home region.
+     * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for cloudAccountHomeRegion. + */ + public com.google.protobuf.ByteString getCloudAccountHomeRegionBytes() { + java.lang.Object ref = cloudAccountHomeRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudAccountHomeRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCI account home region.
+     * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The cloudAccountHomeRegion to set. + * @return This builder for chaining. + */ + public Builder setCloudAccountHomeRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudAccountHomeRegion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCI account home region.
+     * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCloudAccountHomeRegion() { + cloudAccountHomeRegion_ = getDefaultInstance().getCloudAccountHomeRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCI account home region.
+     * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for cloudAccountHomeRegion to set. + * @return This builder for chaining. + */ + public Builder setCloudAccountHomeRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudAccountHomeRegion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object linkExistingAccountUri_ = ""; + /** + * + * + *
+     * Output only. URL to link an existing account.
+     * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkExistingAccountUri field is set. + */ + public boolean hasLinkExistingAccountUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. URL to link an existing account.
+     * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkExistingAccountUri. + */ + public java.lang.String getLinkExistingAccountUri() { + java.lang.Object ref = linkExistingAccountUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + linkExistingAccountUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. URL to link an existing account.
+     * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for linkExistingAccountUri. + */ + public com.google.protobuf.ByteString getLinkExistingAccountUriBytes() { + java.lang.Object ref = linkExistingAccountUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + linkExistingAccountUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. URL to link an existing account.
+     * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The linkExistingAccountUri to set. + * @return This builder for chaining. + */ + public Builder setLinkExistingAccountUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + linkExistingAccountUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URL to link an existing account.
+     * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLinkExistingAccountUri() { + linkExistingAccountUri_ = getDefaultInstance().getLinkExistingAccountUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URL to link an existing account.
+     * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for linkExistingAccountUri to set. + * @return This builder for chaining. + */ + public Builder setLinkExistingAccountUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + linkExistingAccountUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object accountCreationUri_ = ""; + /** + * + * + *
+     * Output only. URL to create a new account and link.
+     * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the accountCreationUri field is set. + */ + public boolean hasAccountCreationUri() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. URL to create a new account and link.
+     * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The accountCreationUri. + */ + public java.lang.String getAccountCreationUri() { + java.lang.Object ref = accountCreationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountCreationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. URL to create a new account and link.
+     * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for accountCreationUri. + */ + public com.google.protobuf.ByteString getAccountCreationUriBytes() { + java.lang.Object ref = accountCreationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountCreationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. URL to create a new account and link.
+     * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The accountCreationUri to set. + * @return This builder for chaining. + */ + public Builder setAccountCreationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountCreationUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URL to create a new account and link.
+     * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAccountCreationUri() { + accountCreationUri_ = getDefaultInstance().getAccountCreationUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URL to create a new account and link.
+     * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for accountCreationUri to set. + * @return This builder for chaining. + */ + public Builder setAccountCreationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountCreationUri_ = 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.oracledatabase.v1.CloudAccountDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CloudAccountDetails) + private static final com.google.cloud.oracledatabase.v1.CloudAccountDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CloudAccountDetails(); + } + + public static com.google.cloud.oracledatabase.v1.CloudAccountDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudAccountDetails 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.oracledatabase.v1.CloudAccountDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudAccountDetailsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudAccountDetailsOrBuilder.java new file mode 100644 index 000000000000..5e51923708ec --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudAccountDetailsOrBuilder.java @@ -0,0 +1,159 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/entitlement.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CloudAccountDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CloudAccountDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. OCI account name.
+   * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudAccount. + */ + java.lang.String getCloudAccount(); + /** + * + * + *
+   * Output only. OCI account name.
+   * 
+ * + * string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudAccount. + */ + com.google.protobuf.ByteString getCloudAccountBytes(); + + /** + * + * + *
+   * Output only. OCI account home region.
+   * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudAccountHomeRegion. + */ + java.lang.String getCloudAccountHomeRegion(); + /** + * + * + *
+   * Output only. OCI account home region.
+   * 
+ * + * string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudAccountHomeRegion. + */ + com.google.protobuf.ByteString getCloudAccountHomeRegionBytes(); + + /** + * + * + *
+   * Output only. URL to link an existing account.
+   * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkExistingAccountUri field is set. + */ + boolean hasLinkExistingAccountUri(); + /** + * + * + *
+   * Output only. URL to link an existing account.
+   * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkExistingAccountUri. + */ + java.lang.String getLinkExistingAccountUri(); + /** + * + * + *
+   * Output only. URL to link an existing account.
+   * 
+ * + * + * optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for linkExistingAccountUri. + */ + com.google.protobuf.ByteString getLinkExistingAccountUriBytes(); + + /** + * + * + *
+   * Output only. URL to create a new account and link.
+   * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the accountCreationUri field is set. + */ + boolean hasAccountCreationUri(); + /** + * + * + *
+   * Output only. URL to create a new account and link.
+   * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The accountCreationUri. + */ + java.lang.String getAccountCreationUri(); + /** + * + * + *
+   * Output only. URL to create a new account and link.
+   * 
+ * + * optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for accountCreationUri. + */ + com.google.protobuf.ByteString getAccountCreationUriBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java new file mode 100644 index 000000000000..40593e0bb207 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java @@ -0,0 +1,2135 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Represents CloudExadataInfrastructure resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudExadataInfrastructure} + */ +public final class CloudExadataInfrastructure extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CloudExadataInfrastructure) + CloudExadataInfrastructureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudExadataInfrastructure.newBuilder() to construct. + private CloudExadataInfrastructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudExadataInfrastructure() { + name_ = ""; + displayName_ = ""; + gcpOracleZone_ = ""; + entitlementId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudExadataInfrastructure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.class, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Exadata Infrastructure resource with the
+   * format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+   * 
+ * + * 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 name of the Exadata Infrastructure resource with the
+   * format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+   * 
+ * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + /** + * + * + *
+   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+   * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+   * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITLEMENT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + /** + * + * + *
+   * Output only. Entitlement ID of the private offer against which this
+   * infrastructure resource is provisioned.
+   * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Entitlement ID of the private offer against which this
+   * infrastructure resource is provisioned.
+   * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 5; + private com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties_; + /** + * + * + *
+   * Optional. Various properties of the infra.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Various properties of the infra.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance() + : properties_; + } + /** + * + * + *
+   * Optional. Various properties of the infra.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance() + : properties_; + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_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. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.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. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.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. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.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 CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The date and time that the Exadata Infrastructure was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, entitlementId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getProperties()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gcpOracleZone_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, entitlementId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProperties()); + } + 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(6, labels__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gcpOracleZone_); + } + 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.oracledatabase.v1.CloudExadataInfrastructure)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure other = + (com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (!getEntitlementId().equals(other.getEntitlementId())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure 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.oracledatabase.v1.CloudExadataInfrastructure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure 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.oracledatabase.v1.CloudExadataInfrastructure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure 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.oracledatabase.v1.CloudExadataInfrastructure parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure 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.oracledatabase.v1.CloudExadataInfrastructure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure 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.oracledatabase.v1.CloudExadataInfrastructure 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 CloudExadataInfrastructure resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudExadataInfrastructure} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CloudExadataInfrastructure) + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.class, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + gcpOracleZone_ = ""; + entitlementId_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure build() { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure buildPartial() { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure result = + new com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entitlementId_ = entitlementId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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.oracledatabase.v1.CloudExadataInfrastructure) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure other) { + if (other + == com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 66 + 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 name of the Exadata Infrastructure resource with the
+     * format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+     * 
+ * + * 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 name of the Exadata Infrastructure resource with the
+     * format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+     * 
+ * + * 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 name of the Exadata Infrastructure resource with the
+     * format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+     * 
+ * + * 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 name of the Exadata Infrastructure resource with the
+     * format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+     * 
+ * + * 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 name of the Exadata Infrastructure resource with the
+     * format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+     * 
+ * + * 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 displayName_ = ""; + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object gcpOracleZone_ = ""; + /** + * + * + *
+     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+     * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+     * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+     * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+     * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+     * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object entitlementId_ = ""; + /** + * + * + *
+     * Output only. Entitlement ID of the private offer against which this
+     * infrastructure resource is provisioned.
+     * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Entitlement ID of the private offer against which this
+     * infrastructure resource is provisioned.
+     * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Entitlement ID of the private offer against which this
+     * infrastructure resource is provisioned.
+     * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Entitlement ID of the private offer against which this
+     * infrastructure resource is provisioned.
+     * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Entitlement ID of the private offer against which this
+     * infrastructure resource is provisioned.
+     * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder> + propertiesBuilder_; + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000010); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance() + : properties_; + } + } + /** + * + * + *
+     * Optional. Various properties of the infra.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + 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_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.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. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.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. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.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_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.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_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.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_ |= 0x00000020; + return this; + } + /** + * + * + *
+     * Optional. Labels or tags associated with the resource.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + 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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. The date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 date and time that the Exadata Infrastructure was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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_; + } + + @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.oracledatabase.v1.CloudExadataInfrastructure) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CloudExadataInfrastructure) + private static final com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure(); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudExadataInfrastructure 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.oracledatabase.v1.CloudExadataInfrastructure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java new file mode 100644 index 000000000000..193aba86fe2d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java @@ -0,0 +1,241 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 CloudExadataInfrastructureName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cloudExadataInfrastructure; + + @Deprecated + protected CloudExadataInfrastructureName() { + project = null; + location = null; + cloudExadataInfrastructure = null; + } + + private CloudExadataInfrastructureName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudExadataInfrastructure = + Preconditions.checkNotNull(builder.getCloudExadataInfrastructure()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudExadataInfrastructure() { + return cloudExadataInfrastructure; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CloudExadataInfrastructureName of( + String project, String location, String cloudExadataInfrastructure) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .build(); + } + + public static String format(String project, String location, String cloudExadataInfrastructure) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .build() + .toString(); + } + + public static CloudExadataInfrastructureName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE.validatedMatch( + formattedString, + "CloudExadataInfrastructureName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cloud_exadata_infrastructure")); + } + + 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 (CloudExadataInfrastructureName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE.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 (cloudExadataInfrastructure != null) { + fieldMapBuilder.put("cloud_exadata_infrastructure", cloudExadataInfrastructure); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE.instantiate( + "project", + project, + "location", + location, + "cloud_exadata_infrastructure", + cloudExadataInfrastructure); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CloudExadataInfrastructureName that = ((CloudExadataInfrastructureName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cloudExadataInfrastructure, that.cloudExadataInfrastructure); + } + 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(cloudExadataInfrastructure); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + */ + public static class Builder { + private String project; + private String location; + private String cloudExadataInfrastructure; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudExadataInfrastructure() { + return cloudExadataInfrastructure; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCloudExadataInfrastructure(String cloudExadataInfrastructure) { + this.cloudExadataInfrastructure = cloudExadataInfrastructure; + return this; + } + + private Builder(CloudExadataInfrastructureName cloudExadataInfrastructureName) { + this.project = cloudExadataInfrastructureName.project; + this.location = cloudExadataInfrastructureName.location; + this.cloudExadataInfrastructure = cloudExadataInfrastructureName.cloudExadataInfrastructure; + } + + public CloudExadataInfrastructureName build() { + return new CloudExadataInfrastructureName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java new file mode 100644 index 000000000000..61253831e537 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java @@ -0,0 +1,270 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CloudExadataInfrastructureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CloudExadataInfrastructure) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Exadata Infrastructure resource with the
+   * format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Exadata Infrastructure resource with the
+   * format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+   * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + /** + * + * + *
+   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
+   * 
+ * + * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
+   * Output only. Entitlement ID of the private offer against which this
+   * infrastructure resource is provisioned.
+   * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + /** + * + * + *
+   * Output only. Entitlement ID of the private offer against which this
+   * infrastructure resource is provisioned.
+   * 
+ * + * string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); + + /** + * + * + *
+   * Optional. Various properties of the infra.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * + * + *
+   * Optional. Various properties of the infra.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties getProperties(); + /** + * + * + *
+   * Optional. Various properties of the infra.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder + getPropertiesOrBuilder(); + + /** + * + * + *
+   * Optional. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels or tags associated with the resource.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The date and time that the Exadata Infrastructure was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The date and time that the Exadata Infrastructure was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The date and time that the Exadata Infrastructure was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java new file mode 100644 index 000000000000..c0ce1ca4243b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java @@ -0,0 +1,5244 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Various properties of Exadata Infrastructure.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties} + */ +public final class CloudExadataInfrastructureProperties + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) + CloudExadataInfrastructurePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudExadataInfrastructureProperties.newBuilder() to construct. + private CloudExadataInfrastructureProperties( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudExadataInfrastructureProperties() { + ocid_ = ""; + state_ = 0; + shape_ = ""; + ociUrl_ = ""; + dbServerVersion_ = ""; + storageServerVersion_ = ""; + nextMaintenanceRunId_ = ""; + customerContacts_ = java.util.Collections.emptyList(); + monthlyStorageServerVersion_ = ""; + monthlyDbServerVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudExadataInfrastructureProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.class, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder.class); + } + + /** + * + * + *
+   * The various lifecycle states of the Exadata Infrastructure.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The Exadata Infrastructure is being provisioned.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * The Exadata Infrastructure is available for use.
+     * 
+ * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
+     * The Exadata Infrastructure is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The Exadata Infrastructure is being terminated.
+     * 
+ * + * TERMINATING = 4; + */ + TERMINATING(4), + /** + * + * + *
+     * The Exadata Infrastructure is terminated.
+     * 
+ * + * TERMINATED = 5; + */ + TERMINATED(5), + /** + * + * + *
+     * The Exadata Infrastructure is in failed state.
+     * 
+ * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
+     * The Exadata Infrastructure is in maintenance.
+     * 
+ * + * MAINTENANCE_IN_PROGRESS = 7; + */ + MAINTENANCE_IN_PROGRESS(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The Exadata Infrastructure is being provisioned.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * The Exadata Infrastructure is available for use.
+     * 
+ * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + /** + * + * + *
+     * The Exadata Infrastructure is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * The Exadata Infrastructure is being terminated.
+     * 
+ * + * TERMINATING = 4; + */ + public static final int TERMINATING_VALUE = 4; + /** + * + * + *
+     * The Exadata Infrastructure is terminated.
+     * 
+ * + * TERMINATED = 5; + */ + public static final int TERMINATED_VALUE = 5; + /** + * + * + *
+     * The Exadata Infrastructure is in failed state.
+     * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * + * + *
+     * The Exadata Infrastructure is in maintenance.
+     * 
+ * + * MAINTENANCE_IN_PROGRESS = 7; + */ + public static final int MAINTENANCE_IN_PROGRESS_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return TERMINATING; + case 5: + return TERMINATED; + case 6: + return FAILED; + case 7: + return MAINTENANCE_IN_PROGRESS; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.CloudExadataInfrastructureProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State) + } + + private int bitField0_; + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + /** + * + * + *
+   * Output only. OCID of created infra.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCID of created infra.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPUTE_COUNT_FIELD_NUMBER = 2; + private int computeCount_ = 0; + /** + * + * + *
+   * Optional. The number of compute servers for the Exadata Infrastructure.
+   * 
+ * + * int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The computeCount. + */ + @java.lang.Override + public int getComputeCount() { + return computeCount_; + } + + public static final int STORAGE_COUNT_FIELD_NUMBER = 3; + private int storageCount_ = 0; + /** + * + * + *
+   * Optional. The number of Cloud Exadata storage servers for the Exadata
+   * Infrastructure.
+   * 
+ * + * int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageCount. + */ + @java.lang.Override + public int getStorageCount() { + return storageCount_; + } + + public static final int TOTAL_STORAGE_SIZE_GB_FIELD_NUMBER = 4; + private int totalStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. The total storage allocated to the Exadata Infrastructure
+   * resource, in gigabytes (GB).
+   * 
+ * + * int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The totalStorageSizeGb. + */ + @java.lang.Override + public int getTotalStorageSizeGb() { + return totalStorageSizeGb_; + } + + public static final int AVAILABLE_STORAGE_SIZE_GB_FIELD_NUMBER = 5; + private int availableStorageSizeGb_ = 0; + /** + * + * + *
+   * Output only. The available storage can be allocated to the Exadata
+   * Infrastructure resource, in gigabytes (GB).
+   * 
+ * + * int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableStorageSizeGb. + */ + @java.lang.Override + public int getAvailableStorageSizeGb() { + return availableStorageSizeGb_; + } + + public static final int MAINTENANCE_WINDOW_FIELD_NUMBER = 6; + private com.google.cloud.oracledatabase.v1.MaintenanceWindow maintenanceWindow_; + /** + * + * + *
+   * Optional. Maintenance window for repair.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenanceWindow field is set. + */ + @java.lang.Override + public boolean hasMaintenanceWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Maintenance window for repair.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceWindow. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow_ == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance() + : maintenanceWindow_; + } + /** + * + * + *
+   * Optional. Maintenance window for repair.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder + getMaintenanceWindowOrBuilder() { + return maintenanceWindow_ == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance() + : maintenanceWindow_; + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
+   * Output only. The current lifecycle state of the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.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. The current lifecycle state of the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State getState() { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State result = + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State.forNumber( + state_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State.UNRECOGNIZED + : result; + } + + public static final int SHAPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object shape_ = ""; + /** + * + * + *
+   * Required. The shape of the Exadata Infrastructure. The shape determines the
+   * amount of CPU, storage, and memory resources allocated to the instance.
+   * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shape. + */ + @java.lang.Override + public java.lang.String getShape() { + java.lang.Object ref = shape_; + 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(); + shape_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The shape of the Exadata Infrastructure. The shape determines the
+   * amount of CPU, storage, and memory resources allocated to the instance.
+   * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shape. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCI_URL_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUrl_ = ""; + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + @java.lang.Override + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + 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(); + ociUrl_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CPU_COUNT_FIELD_NUMBER = 10; + private int cpuCount_ = 0; + /** + * + * + *
+   * Optional. The number of enabled CPU cores.
+   * 
+ * + * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cpuCount. + */ + @java.lang.Override + public int getCpuCount() { + return cpuCount_; + } + + public static final int MAX_CPU_COUNT_FIELD_NUMBER = 11; + private int maxCpuCount_ = 0; + /** + * + * + *
+   * Output only. The total number of CPU cores available.
+   * 
+ * + * int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxCpuCount. + */ + @java.lang.Override + public int getMaxCpuCount() { + return maxCpuCount_; + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 12; + private int memorySizeGb_ = 0; + /** + * + * + *
+   * Optional. The memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int MAX_MEMORY_GB_FIELD_NUMBER = 13; + private int maxMemoryGb_ = 0; + /** + * + * + *
+   * Output only. The total memory available in GBs.
+   * 
+ * + * int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxMemoryGb. + */ + @java.lang.Override + public int getMaxMemoryGb() { + return maxMemoryGb_; + } + + public static final int DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER = 14; + private int dbNodeStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. The local node storage allocated in GBs.
+   * 
+ * + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + + public static final int MAX_DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER = 15; + private int maxDbNodeStorageSizeGb_ = 0; + /** + * + * + *
+   * Output only. The total local node storage available in GBs.
+   * 
+ * + * int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxDbNodeStorageSizeGb. + */ + @java.lang.Override + public int getMaxDbNodeStorageSizeGb() { + return maxDbNodeStorageSizeGb_; + } + + public static final int DATA_STORAGE_SIZE_TB_FIELD_NUMBER = 16; + private double dataStorageSizeTb_ = 0D; + /** + * + * + *
+   * Output only. Size, in terabytes, of the DATA disk group.
+   * 
+ * + * double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataStorageSizeTb. + */ + @java.lang.Override + public double getDataStorageSizeTb() { + return dataStorageSizeTb_; + } + + public static final int MAX_DATA_STORAGE_TB_FIELD_NUMBER = 17; + private double maxDataStorageTb_ = 0D; + /** + * + * + *
+   * Output only. The total available DATA disk group size.
+   * 
+ * + * double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxDataStorageTb. + */ + @java.lang.Override + public double getMaxDataStorageTb() { + return maxDataStorageTb_; + } + + public static final int ACTIVATED_STORAGE_COUNT_FIELD_NUMBER = 18; + private int activatedStorageCount_ = 0; + /** + * + * + *
+   * Output only. The requested number of additional storage servers activated
+   * for the Exadata Infrastructure.
+   * 
+ * + * int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The activatedStorageCount. + */ + @java.lang.Override + public int getActivatedStorageCount() { + return activatedStorageCount_; + } + + public static final int ADDITIONAL_STORAGE_COUNT_FIELD_NUMBER = 19; + private int additionalStorageCount_ = 0; + /** + * + * + *
+   * Output only. The requested number of additional storage servers for the
+   * Exadata Infrastructure.
+   * 
+ * + * int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalStorageCount. + */ + @java.lang.Override + public int getAdditionalStorageCount() { + return additionalStorageCount_; + } + + public static final int DB_SERVER_VERSION_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbServerVersion_ = ""; + /** + * + * + *
+   * Output only. The software version of the database servers (dom0) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dbServerVersion. + */ + @java.lang.Override + public java.lang.String getDbServerVersion() { + java.lang.Object ref = dbServerVersion_; + 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(); + dbServerVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The software version of the database servers (dom0) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dbServerVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbServerVersionBytes() { + java.lang.Object ref = dbServerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_SERVER_VERSION_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageServerVersion_ = ""; + /** + * + * + *
+   * Output only. The software version of the storage servers (cells) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageServerVersion. + */ + @java.lang.Override + public java.lang.String getStorageServerVersion() { + java.lang.Object ref = storageServerVersion_; + 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(); + storageServerVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The software version of the storage servers (cells) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for storageServerVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageServerVersionBytes() { + java.lang.Object ref = storageServerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_MAINTENANCE_RUN_ID_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextMaintenanceRunId_ = ""; + /** + * + * + *
+   * Output only. The OCID of the next maintenance run.
+   * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextMaintenanceRunId. + */ + @java.lang.Override + public java.lang.String getNextMaintenanceRunId() { + java.lang.Object ref = nextMaintenanceRunId_; + 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(); + nextMaintenanceRunId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The OCID of the next maintenance run.
+   * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextMaintenanceRunId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextMaintenanceRunIdBytes() { + java.lang.Object ref = nextMaintenanceRunId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextMaintenanceRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_MAINTENANCE_RUN_TIME_FIELD_NUMBER = 23; + private com.google.protobuf.Timestamp nextMaintenanceRunTime_; + /** + * + * + *
+   * Output only. The time when the next maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextMaintenanceRunTime field is set. + */ + @java.lang.Override + public boolean hasNextMaintenanceRunTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The time when the next maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextMaintenanceRunTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getNextMaintenanceRunTime() { + return nextMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextMaintenanceRunTime_; + } + /** + * + * + *
+   * Output only. The time when the next maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getNextMaintenanceRunTimeOrBuilder() { + return nextMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextMaintenanceRunTime_; + } + + public static final int NEXT_SECURITY_MAINTENANCE_RUN_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp nextSecurityMaintenanceRunTime_; + /** + * + * + *
+   * Output only. The time when the next security maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextSecurityMaintenanceRunTime field is set. + */ + @java.lang.Override + public boolean hasNextSecurityMaintenanceRunTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. The time when the next security maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextSecurityMaintenanceRunTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getNextSecurityMaintenanceRunTime() { + return nextSecurityMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextSecurityMaintenanceRunTime_; + } + /** + * + * + *
+   * Output only. The time when the next security maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getNextSecurityMaintenanceRunTimeOrBuilder() { + return nextSecurityMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextSecurityMaintenanceRunTime_; + } + + public static final int CUSTOMER_CONTACTS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private java.util.List customerContacts_; + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomerContactsList() { + return customerContacts_; + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomerContactsOrBuilderList() { + return customerContacts_; + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomerContactsCount() { + return customerContacts_.size(); + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContact getCustomerContacts(int index) { + return customerContacts_.get(index); + } + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsOrBuilder( + int index) { + return customerContacts_.get(index); + } + + public static final int MONTHLY_STORAGE_SERVER_VERSION_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private volatile java.lang.Object monthlyStorageServerVersion_ = ""; + /** + * + * + *
+   * Output only. The monthly software version of the storage servers (cells)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The monthlyStorageServerVersion. + */ + @java.lang.Override + public java.lang.String getMonthlyStorageServerVersion() { + java.lang.Object ref = monthlyStorageServerVersion_; + 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(); + monthlyStorageServerVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The monthly software version of the storage servers (cells)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for monthlyStorageServerVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonthlyStorageServerVersionBytes() { + java.lang.Object ref = monthlyStorageServerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monthlyStorageServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONTHLY_DB_SERVER_VERSION_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private volatile java.lang.Object monthlyDbServerVersion_ = ""; + /** + * + * + *
+   * Output only. The monthly software version of the database servers (dom0)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The monthlyDbServerVersion. + */ + @java.lang.Override + public java.lang.String getMonthlyDbServerVersion() { + java.lang.Object ref = monthlyDbServerVersion_; + 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(); + monthlyDbServerVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The monthly software version of the database servers (dom0)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for monthlyDbServerVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonthlyDbServerVersionBytes() { + java.lang.Object ref = monthlyDbServerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monthlyDbServerVersion_ = 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(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (computeCount_ != 0) { + output.writeInt32(2, computeCount_); + } + if (storageCount_ != 0) { + output.writeInt32(3, storageCount_); + } + if (totalStorageSizeGb_ != 0) { + output.writeInt32(4, totalStorageSizeGb_); + } + if (availableStorageSizeGb_ != 0) { + output.writeInt32(5, availableStorageSizeGb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getMaintenanceWindow()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, shape_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ociUrl_); + } + if (cpuCount_ != 0) { + output.writeInt32(10, cpuCount_); + } + if (maxCpuCount_ != 0) { + output.writeInt32(11, maxCpuCount_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(12, memorySizeGb_); + } + if (maxMemoryGb_ != 0) { + output.writeInt32(13, maxMemoryGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + output.writeInt32(14, dbNodeStorageSizeGb_); + } + if (maxDbNodeStorageSizeGb_ != 0) { + output.writeInt32(15, maxDbNodeStorageSizeGb_); + } + if (java.lang.Double.doubleToRawLongBits(dataStorageSizeTb_) != 0) { + output.writeDouble(16, dataStorageSizeTb_); + } + if (java.lang.Double.doubleToRawLongBits(maxDataStorageTb_) != 0) { + output.writeDouble(17, maxDataStorageTb_); + } + if (activatedStorageCount_ != 0) { + output.writeInt32(18, activatedStorageCount_); + } + if (additionalStorageCount_ != 0) { + output.writeInt32(19, additionalStorageCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbServerVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, dbServerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageServerVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, storageServerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextMaintenanceRunId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, nextMaintenanceRunId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(23, getNextMaintenanceRunTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(24, getNextSecurityMaintenanceRunTime()); + } + for (int i = 0; i < customerContacts_.size(); i++) { + output.writeMessage(25, customerContacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monthlyStorageServerVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, monthlyStorageServerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monthlyDbServerVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 27, monthlyDbServerVersion_); + } + 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(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (computeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, computeCount_); + } + if (storageCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, storageCount_); + } + if (totalStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalStorageSizeGb_); + } + if (availableStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, availableStorageSizeGb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaintenanceWindow()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, shape_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ociUrl_); + } + if (cpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, cpuCount_); + } + if (maxCpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, maxCpuCount_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, memorySizeGb_); + } + if (maxMemoryGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, maxMemoryGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, dbNodeStorageSizeGb_); + } + if (maxDbNodeStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, maxDbNodeStorageSizeGb_); + } + if (java.lang.Double.doubleToRawLongBits(dataStorageSizeTb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, dataStorageSizeTb_); + } + if (java.lang.Double.doubleToRawLongBits(maxDataStorageTb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(17, maxDataStorageTb_); + } + if (activatedStorageCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, activatedStorageCount_); + } + if (additionalStorageCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(19, additionalStorageCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbServerVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, dbServerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageServerVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, storageServerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextMaintenanceRunId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, nextMaintenanceRunId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getNextMaintenanceRunTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getNextSecurityMaintenanceRunTime()); + } + for (int i = 0; i < customerContacts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(25, customerContacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monthlyStorageServerVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 26, monthlyStorageServerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monthlyDbServerVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, monthlyDbServerVersion_); + } + 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.oracledatabase.v1.CloudExadataInfrastructureProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties other = + (com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (getComputeCount() != other.getComputeCount()) return false; + if (getStorageCount() != other.getStorageCount()) return false; + if (getTotalStorageSizeGb() != other.getTotalStorageSizeGb()) return false; + if (getAvailableStorageSizeGb() != other.getAvailableStorageSizeGb()) return false; + if (hasMaintenanceWindow() != other.hasMaintenanceWindow()) return false; + if (hasMaintenanceWindow()) { + if (!getMaintenanceWindow().equals(other.getMaintenanceWindow())) return false; + } + if (state_ != other.state_) return false; + if (!getShape().equals(other.getShape())) return false; + if (!getOciUrl().equals(other.getOciUrl())) return false; + if (getCpuCount() != other.getCpuCount()) return false; + if (getMaxCpuCount() != other.getMaxCpuCount()) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (getMaxMemoryGb() != other.getMaxMemoryGb()) return false; + if (getDbNodeStorageSizeGb() != other.getDbNodeStorageSizeGb()) return false; + if (getMaxDbNodeStorageSizeGb() != other.getMaxDbNodeStorageSizeGb()) return false; + if (java.lang.Double.doubleToLongBits(getDataStorageSizeTb()) + != java.lang.Double.doubleToLongBits(other.getDataStorageSizeTb())) return false; + if (java.lang.Double.doubleToLongBits(getMaxDataStorageTb()) + != java.lang.Double.doubleToLongBits(other.getMaxDataStorageTb())) return false; + if (getActivatedStorageCount() != other.getActivatedStorageCount()) return false; + if (getAdditionalStorageCount() != other.getAdditionalStorageCount()) return false; + if (!getDbServerVersion().equals(other.getDbServerVersion())) return false; + if (!getStorageServerVersion().equals(other.getStorageServerVersion())) return false; + if (!getNextMaintenanceRunId().equals(other.getNextMaintenanceRunId())) return false; + if (hasNextMaintenanceRunTime() != other.hasNextMaintenanceRunTime()) return false; + if (hasNextMaintenanceRunTime()) { + if (!getNextMaintenanceRunTime().equals(other.getNextMaintenanceRunTime())) return false; + } + if (hasNextSecurityMaintenanceRunTime() != other.hasNextSecurityMaintenanceRunTime()) + return false; + if (hasNextSecurityMaintenanceRunTime()) { + if (!getNextSecurityMaintenanceRunTime().equals(other.getNextSecurityMaintenanceRunTime())) + return false; + } + if (!getCustomerContactsList().equals(other.getCustomerContactsList())) return false; + if (!getMonthlyStorageServerVersion().equals(other.getMonthlyStorageServerVersion())) + return false; + if (!getMonthlyDbServerVersion().equals(other.getMonthlyDbServerVersion())) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + COMPUTE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getComputeCount(); + hash = (37 * hash) + STORAGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getStorageCount(); + hash = (37 * hash) + TOTAL_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getTotalStorageSizeGb(); + hash = (37 * hash) + AVAILABLE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getAvailableStorageSizeGb(); + if (hasMaintenanceWindow()) { + hash = (37 * hash) + MAINTENANCE_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceWindow().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + hash = (37 * hash) + OCI_URL_FIELD_NUMBER; + hash = (53 * hash) + getOciUrl().hashCode(); + hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCpuCount(); + hash = (37 * hash) + MAX_CPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxCpuCount(); + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + MAX_MEMORY_GB_FIELD_NUMBER; + hash = (53 * hash) + getMaxMemoryGb(); + hash = (37 * hash) + DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDbNodeStorageSizeGb(); + hash = (37 * hash) + MAX_DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMaxDbNodeStorageSizeGb(); + hash = (37 * hash) + DATA_STORAGE_SIZE_TB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDataStorageSizeTb())); + hash = (37 * hash) + MAX_DATA_STORAGE_TB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxDataStorageTb())); + hash = (37 * hash) + ACTIVATED_STORAGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getActivatedStorageCount(); + hash = (37 * hash) + ADDITIONAL_STORAGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalStorageCount(); + hash = (37 * hash) + DB_SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDbServerVersion().hashCode(); + hash = (37 * hash) + STORAGE_SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getStorageServerVersion().hashCode(); + hash = (37 * hash) + NEXT_MAINTENANCE_RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + getNextMaintenanceRunId().hashCode(); + if (hasNextMaintenanceRunTime()) { + hash = (37 * hash) + NEXT_MAINTENANCE_RUN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getNextMaintenanceRunTime().hashCode(); + } + if (hasNextSecurityMaintenanceRunTime()) { + hash = (37 * hash) + NEXT_SECURITY_MAINTENANCE_RUN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getNextSecurityMaintenanceRunTime().hashCode(); + } + if (getCustomerContactsCount() > 0) { + hash = (37 * hash) + CUSTOMER_CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getCustomerContactsList().hashCode(); + } + hash = (37 * hash) + MONTHLY_STORAGE_SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMonthlyStorageServerVersion().hashCode(); + hash = (37 * hash) + MONTHLY_DB_SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMonthlyDbServerVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties 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.oracledatabase.v1.CloudExadataInfrastructureProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties 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.oracledatabase.v1.CloudExadataInfrastructureProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties 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.oracledatabase.v1.CloudExadataInfrastructureProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + 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.oracledatabase.v1.CloudExadataInfrastructureProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties 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.oracledatabase.v1.CloudExadataInfrastructureProperties 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; + } + /** + * + * + *
+   * Various properties of Exadata Infrastructure.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.class, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaintenanceWindowFieldBuilder(); + getNextMaintenanceRunTimeFieldBuilder(); + getNextSecurityMaintenanceRunTimeFieldBuilder(); + getCustomerContactsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ocid_ = ""; + computeCount_ = 0; + storageCount_ = 0; + totalStorageSizeGb_ = 0; + availableStorageSizeGb_ = 0; + maintenanceWindow_ = null; + if (maintenanceWindowBuilder_ != null) { + maintenanceWindowBuilder_.dispose(); + maintenanceWindowBuilder_ = null; + } + state_ = 0; + shape_ = ""; + ociUrl_ = ""; + cpuCount_ = 0; + maxCpuCount_ = 0; + memorySizeGb_ = 0; + maxMemoryGb_ = 0; + dbNodeStorageSizeGb_ = 0; + maxDbNodeStorageSizeGb_ = 0; + dataStorageSizeTb_ = 0D; + maxDataStorageTb_ = 0D; + activatedStorageCount_ = 0; + additionalStorageCount_ = 0; + dbServerVersion_ = ""; + storageServerVersion_ = ""; + nextMaintenanceRunId_ = ""; + nextMaintenanceRunTime_ = null; + if (nextMaintenanceRunTimeBuilder_ != null) { + nextMaintenanceRunTimeBuilder_.dispose(); + nextMaintenanceRunTimeBuilder_ = null; + } + nextSecurityMaintenanceRunTime_ = null; + if (nextSecurityMaintenanceRunTimeBuilder_ != null) { + nextSecurityMaintenanceRunTimeBuilder_.dispose(); + nextSecurityMaintenanceRunTimeBuilder_ = null; + } + if (customerContactsBuilder_ == null) { + customerContacts_ = java.util.Collections.emptyList(); + } else { + customerContacts_ = null; + customerContactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); + monthlyStorageServerVersion_ = ""; + monthlyDbServerVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties build() { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties buildPartial() { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties result = + new com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties result) { + if (customerContactsBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0)) { + customerContacts_ = java.util.Collections.unmodifiableList(customerContacts_); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.customerContacts_ = customerContacts_; + } else { + result.customerContacts_ = customerContactsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.computeCount_ = computeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.storageCount_ = storageCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalStorageSizeGb_ = totalStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.availableStorageSizeGb_ = availableStorageSizeGb_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.maintenanceWindow_ = + maintenanceWindowBuilder_ == null + ? maintenanceWindow_ + : maintenanceWindowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.shape_ = shape_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ociUrl_ = ociUrl_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.cpuCount_ = cpuCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.maxCpuCount_ = maxCpuCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.memorySizeGb_ = memorySizeGb_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.maxMemoryGb_ = maxMemoryGb_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.dbNodeStorageSizeGb_ = dbNodeStorageSizeGb_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.maxDbNodeStorageSizeGb_ = maxDbNodeStorageSizeGb_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.dataStorageSizeTb_ = dataStorageSizeTb_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.maxDataStorageTb_ = maxDataStorageTb_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.activatedStorageCount_ = activatedStorageCount_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.additionalStorageCount_ = additionalStorageCount_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.dbServerVersion_ = dbServerVersion_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.storageServerVersion_ = storageServerVersion_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.nextMaintenanceRunId_ = nextMaintenanceRunId_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.nextMaintenanceRunTime_ = + nextMaintenanceRunTimeBuilder_ == null + ? nextMaintenanceRunTime_ + : nextMaintenanceRunTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.nextSecurityMaintenanceRunTime_ = + nextSecurityMaintenanceRunTimeBuilder_ == null + ? nextSecurityMaintenanceRunTime_ + : nextSecurityMaintenanceRunTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.monthlyStorageServerVersion_ = monthlyStorageServerVersion_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.monthlyDbServerVersion_ = monthlyDbServerVersion_; + } + 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.oracledatabase.v1.CloudExadataInfrastructureProperties) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties other) { + if (other + == com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + .getDefaultInstance()) return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getComputeCount() != 0) { + setComputeCount(other.getComputeCount()); + } + if (other.getStorageCount() != 0) { + setStorageCount(other.getStorageCount()); + } + if (other.getTotalStorageSizeGb() != 0) { + setTotalStorageSizeGb(other.getTotalStorageSizeGb()); + } + if (other.getAvailableStorageSizeGb() != 0) { + setAvailableStorageSizeGb(other.getAvailableStorageSizeGb()); + } + if (other.hasMaintenanceWindow()) { + mergeMaintenanceWindow(other.getMaintenanceWindow()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getShape().isEmpty()) { + shape_ = other.shape_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getOciUrl().isEmpty()) { + ociUrl_ = other.ociUrl_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.getCpuCount() != 0) { + setCpuCount(other.getCpuCount()); + } + if (other.getMaxCpuCount() != 0) { + setMaxCpuCount(other.getMaxCpuCount()); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (other.getMaxMemoryGb() != 0) { + setMaxMemoryGb(other.getMaxMemoryGb()); + } + if (other.getDbNodeStorageSizeGb() != 0) { + setDbNodeStorageSizeGb(other.getDbNodeStorageSizeGb()); + } + if (other.getMaxDbNodeStorageSizeGb() != 0) { + setMaxDbNodeStorageSizeGb(other.getMaxDbNodeStorageSizeGb()); + } + if (other.getDataStorageSizeTb() != 0D) { + setDataStorageSizeTb(other.getDataStorageSizeTb()); + } + if (other.getMaxDataStorageTb() != 0D) { + setMaxDataStorageTb(other.getMaxDataStorageTb()); + } + if (other.getActivatedStorageCount() != 0) { + setActivatedStorageCount(other.getActivatedStorageCount()); + } + if (other.getAdditionalStorageCount() != 0) { + setAdditionalStorageCount(other.getAdditionalStorageCount()); + } + if (!other.getDbServerVersion().isEmpty()) { + dbServerVersion_ = other.dbServerVersion_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (!other.getStorageServerVersion().isEmpty()) { + storageServerVersion_ = other.storageServerVersion_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (!other.getNextMaintenanceRunId().isEmpty()) { + nextMaintenanceRunId_ = other.nextMaintenanceRunId_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.hasNextMaintenanceRunTime()) { + mergeNextMaintenanceRunTime(other.getNextMaintenanceRunTime()); + } + if (other.hasNextSecurityMaintenanceRunTime()) { + mergeNextSecurityMaintenanceRunTime(other.getNextSecurityMaintenanceRunTime()); + } + if (customerContactsBuilder_ == null) { + if (!other.customerContacts_.isEmpty()) { + if (customerContacts_.isEmpty()) { + customerContacts_ = other.customerContacts_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensureCustomerContactsIsMutable(); + customerContacts_.addAll(other.customerContacts_); + } + onChanged(); + } + } else { + if (!other.customerContacts_.isEmpty()) { + if (customerContactsBuilder_.isEmpty()) { + customerContactsBuilder_.dispose(); + customerContactsBuilder_ = null; + customerContacts_ = other.customerContacts_; + bitField0_ = (bitField0_ & ~0x01000000); + customerContactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomerContactsFieldBuilder() + : null; + } else { + customerContactsBuilder_.addAllMessages(other.customerContacts_); + } + } + } + if (!other.getMonthlyStorageServerVersion().isEmpty()) { + monthlyStorageServerVersion_ = other.monthlyStorageServerVersion_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (!other.getMonthlyDbServerVersion().isEmpty()) { + monthlyDbServerVersion_ = other.monthlyDbServerVersion_; + bitField0_ |= 0x04000000; + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + computeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + storageCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + totalStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + availableStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + getMaintenanceWindowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + shape_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + ociUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: + { + cpuCount_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + maxCpuCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + memorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + maxMemoryGb_ = input.readInt32(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: + { + dbNodeStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: + { + maxDbNodeStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 129: + { + dataStorageSizeTb_ = input.readDouble(); + bitField0_ |= 0x00008000; + break; + } // case 129 + case 137: + { + maxDataStorageTb_ = input.readDouble(); + bitField0_ |= 0x00010000; + break; + } // case 137 + case 144: + { + activatedStorageCount_ = input.readInt32(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 152: + { + additionalStorageCount_ = input.readInt32(); + bitField0_ |= 0x00040000; + break; + } // case 152 + case 162: + { + dbServerVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: + { + storageServerVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: + { + nextMaintenanceRunId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: + { + input.readMessage( + getNextMaintenanceRunTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 194: + { + input.readMessage( + getNextSecurityMaintenanceRunTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 194 + case 202: + { + com.google.cloud.oracledatabase.v1.CustomerContact m = + input.readMessage( + com.google.cloud.oracledatabase.v1.CustomerContact.parser(), + extensionRegistry); + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.add(m); + } else { + customerContactsBuilder_.addMessage(m); + } + break; + } // case 202 + case 210: + { + monthlyStorageServerVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 210 + case 218: + { + monthlyDbServerVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 218 + 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 ocid_ = ""; + /** + * + * + *
+     * Output only. OCID of created infra.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCID of created infra.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCID of created infra.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of created infra.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of created infra.
+     * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int computeCount_; + /** + * + * + *
+     * Optional. The number of compute servers for the Exadata Infrastructure.
+     * 
+ * + * int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The computeCount. + */ + @java.lang.Override + public int getComputeCount() { + return computeCount_; + } + /** + * + * + *
+     * Optional. The number of compute servers for the Exadata Infrastructure.
+     * 
+ * + * int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The computeCount to set. + * @return This builder for chaining. + */ + public Builder setComputeCount(int value) { + + computeCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of compute servers for the Exadata Infrastructure.
+     * 
+ * + * int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComputeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + computeCount_ = 0; + onChanged(); + return this; + } + + private int storageCount_; + /** + * + * + *
+     * Optional. The number of Cloud Exadata storage servers for the Exadata
+     * Infrastructure.
+     * 
+ * + * int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageCount. + */ + @java.lang.Override + public int getStorageCount() { + return storageCount_; + } + /** + * + * + *
+     * Optional. The number of Cloud Exadata storage servers for the Exadata
+     * Infrastructure.
+     * 
+ * + * int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The storageCount to set. + * @return This builder for chaining. + */ + public Builder setStorageCount(int value) { + + storageCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of Cloud Exadata storage servers for the Exadata
+     * Infrastructure.
+     * 
+ * + * int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStorageCount() { + bitField0_ = (bitField0_ & ~0x00000004); + storageCount_ = 0; + onChanged(); + return this; + } + + private int totalStorageSizeGb_; + /** + * + * + *
+     * Optional. The total storage allocated to the Exadata Infrastructure
+     * resource, in gigabytes (GB).
+     * 
+ * + * int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The totalStorageSizeGb. + */ + @java.lang.Override + public int getTotalStorageSizeGb() { + return totalStorageSizeGb_; + } + /** + * + * + *
+     * Optional. The total storage allocated to the Exadata Infrastructure
+     * resource, in gigabytes (GB).
+     * 
+ * + * int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The totalStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setTotalStorageSizeGb(int value) { + + totalStorageSizeGb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The total storage allocated to the Exadata Infrastructure
+     * resource, in gigabytes (GB).
+     * 
+ * + * int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTotalStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000008); + totalStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int availableStorageSizeGb_; + /** + * + * + *
+     * Output only. The available storage can be allocated to the Exadata
+     * Infrastructure resource, in gigabytes (GB).
+     * 
+ * + * int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableStorageSizeGb. + */ + @java.lang.Override + public int getAvailableStorageSizeGb() { + return availableStorageSizeGb_; + } + /** + * + * + *
+     * Output only. The available storage can be allocated to the Exadata
+     * Infrastructure resource, in gigabytes (GB).
+     * 
+ * + * int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setAvailableStorageSizeGb(int value) { + + availableStorageSizeGb_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The available storage can be allocated to the Exadata
+     * Infrastructure resource, in gigabytes (GB).
+     * 
+ * + * int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000010); + availableStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.MaintenanceWindow maintenanceWindow_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.MaintenanceWindow, + com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder, + com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder> + maintenanceWindowBuilder_; + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenanceWindow field is set. + */ + public boolean hasMaintenanceWindow() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceWindow. + */ + public com.google.cloud.oracledatabase.v1.MaintenanceWindow getMaintenanceWindow() { + if (maintenanceWindowBuilder_ == null) { + return maintenanceWindow_ == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance() + : maintenanceWindow_; + } else { + return maintenanceWindowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMaintenanceWindow( + com.google.cloud.oracledatabase.v1.MaintenanceWindow value) { + if (maintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceWindow_ = value; + } else { + maintenanceWindowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMaintenanceWindow( + com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder builderForValue) { + if (maintenanceWindowBuilder_ == null) { + maintenanceWindow_ = builderForValue.build(); + } else { + maintenanceWindowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMaintenanceWindow( + com.google.cloud.oracledatabase.v1.MaintenanceWindow value) { + if (maintenanceWindowBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && maintenanceWindow_ != null + && maintenanceWindow_ + != com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance()) { + getMaintenanceWindowBuilder().mergeFrom(value); + } else { + maintenanceWindow_ = value; + } + } else { + maintenanceWindowBuilder_.mergeFrom(value); + } + if (maintenanceWindow_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMaintenanceWindow() { + bitField0_ = (bitField0_ & ~0x00000020); + maintenanceWindow_ = null; + if (maintenanceWindowBuilder_ != null) { + maintenanceWindowBuilder_.dispose(); + maintenanceWindowBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder + getMaintenanceWindowBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMaintenanceWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder + getMaintenanceWindowOrBuilder() { + if (maintenanceWindowBuilder_ != null) { + return maintenanceWindowBuilder_.getMessageOrBuilder(); + } else { + return maintenanceWindow_ == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance() + : maintenanceWindow_; + } + } + /** + * + * + *
+     * Optional. Maintenance window for repair.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.MaintenanceWindow, + com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder, + com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder> + getMaintenanceWindowFieldBuilder() { + if (maintenanceWindowBuilder_ == null) { + maintenanceWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.MaintenanceWindow, + com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder, + com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder>( + getMaintenanceWindow(), getParentForChildren(), isClean()); + maintenanceWindow_ = null; + } + return maintenanceWindowBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The current lifecycle state of the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.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. The current lifecycle state of the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State + getState() { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State result = + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State.forNumber( + state_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current lifecycle state of the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object shape_ = ""; + /** + * + * + *
+     * Required. The shape of the Exadata Infrastructure. The shape determines the
+     * amount of CPU, storage, and memory resources allocated to the instance.
+     * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shape. + */ + public java.lang.String getShape() { + java.lang.Object ref = shape_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shape_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The shape of the Exadata Infrastructure. The shape determines the
+     * amount of CPU, storage, and memory resources allocated to the instance.
+     * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shape. + */ + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The shape of the Exadata Infrastructure. The shape determines the
+     * amount of CPU, storage, and memory resources allocated to the instance.
+     * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The shape to set. + * @return This builder for chaining. + */ + public Builder setShape(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The shape of the Exadata Infrastructure. The shape determines the
+     * amount of CPU, storage, and memory resources allocated to the instance.
+     * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearShape() { + shape_ = getDefaultInstance().getShape(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The shape of the Exadata Infrastructure. The shape determines the
+     * amount of CPU, storage, and memory resources allocated to the instance.
+     * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for shape to set. + * @return This builder for chaining. + */ + public Builder setShapeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shape_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object ociUrl_ = ""; + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUrl_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUrl_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int cpuCount_; + /** + * + * + *
+     * Optional. The number of enabled CPU cores.
+     * 
+ * + * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cpuCount. + */ + @java.lang.Override + public int getCpuCount() { + return cpuCount_; + } + /** + * + * + *
+     * Optional. The number of enabled CPU cores.
+     * 
+ * + * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cpuCount to set. + * @return This builder for chaining. + */ + public Builder setCpuCount(int value) { + + cpuCount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of enabled CPU cores.
+     * 
+ * + * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCpuCount() { + bitField0_ = (bitField0_ & ~0x00000200); + cpuCount_ = 0; + onChanged(); + return this; + } + + private int maxCpuCount_; + /** + * + * + *
+     * Output only. The total number of CPU cores available.
+     * 
+ * + * int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxCpuCount. + */ + @java.lang.Override + public int getMaxCpuCount() { + return maxCpuCount_; + } + /** + * + * + *
+     * Output only. The total number of CPU cores available.
+     * 
+ * + * int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The maxCpuCount to set. + * @return This builder for chaining. + */ + public Builder setMaxCpuCount(int value) { + + maxCpuCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total number of CPU cores available.
+     * 
+ * + * int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMaxCpuCount() { + bitField0_ = (bitField0_ & ~0x00000400); + maxCpuCount_ = 0; + onChanged(); + return this; + } + + private int memorySizeGb_; + /** + * + * + *
+     * Optional. The memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + /** + * + * + *
+     * Optional. The memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The memorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00000800); + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private int maxMemoryGb_; + /** + * + * + *
+     * Output only. The total memory available in GBs.
+     * 
+ * + * int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxMemoryGb. + */ + @java.lang.Override + public int getMaxMemoryGb() { + return maxMemoryGb_; + } + /** + * + * + *
+     * Output only. The total memory available in GBs.
+     * 
+ * + * int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The maxMemoryGb to set. + * @return This builder for chaining. + */ + public Builder setMaxMemoryGb(int value) { + + maxMemoryGb_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total memory available in GBs.
+     * 
+ * + * int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMaxMemoryGb() { + bitField0_ = (bitField0_ & ~0x00001000); + maxMemoryGb_ = 0; + onChanged(); + return this; + } + + private int dbNodeStorageSizeGb_; + /** + * + * + *
+     * Optional. The local node storage allocated in GBs.
+     * 
+ * + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + /** + * + * + *
+     * Optional. The local node storage allocated in GBs.
+     * 
+ * + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbNodeStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDbNodeStorageSizeGb(int value) { + + dbNodeStorageSizeGb_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The local node storage allocated in GBs.
+     * 
+ * + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbNodeStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00002000); + dbNodeStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int maxDbNodeStorageSizeGb_; + /** + * + * + *
+     * Output only. The total local node storage available in GBs.
+     * 
+ * + * int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxDbNodeStorageSizeGb. + */ + @java.lang.Override + public int getMaxDbNodeStorageSizeGb() { + return maxDbNodeStorageSizeGb_; + } + /** + * + * + *
+     * Output only. The total local node storage available in GBs.
+     * 
+ * + * int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The maxDbNodeStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setMaxDbNodeStorageSizeGb(int value) { + + maxDbNodeStorageSizeGb_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total local node storage available in GBs.
+     * 
+ * + * int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxDbNodeStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00004000); + maxDbNodeStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private double dataStorageSizeTb_; + /** + * + * + *
+     * Output only. Size, in terabytes, of the DATA disk group.
+     * 
+ * + * double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataStorageSizeTb. + */ + @java.lang.Override + public double getDataStorageSizeTb() { + return dataStorageSizeTb_; + } + /** + * + * + *
+     * Output only. Size, in terabytes, of the DATA disk group.
+     * 
+ * + * double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataStorageSizeTb to set. + * @return This builder for chaining. + */ + public Builder setDataStorageSizeTb(double value) { + + dataStorageSizeTb_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Size, in terabytes, of the DATA disk group.
+     * 
+ * + * double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageSizeTb() { + bitField0_ = (bitField0_ & ~0x00008000); + dataStorageSizeTb_ = 0D; + onChanged(); + return this; + } + + private double maxDataStorageTb_; + /** + * + * + *
+     * Output only. The total available DATA disk group size.
+     * 
+ * + * double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxDataStorageTb. + */ + @java.lang.Override + public double getMaxDataStorageTb() { + return maxDataStorageTb_; + } + /** + * + * + *
+     * Output only. The total available DATA disk group size.
+     * 
+ * + * double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The maxDataStorageTb to set. + * @return This builder for chaining. + */ + public Builder setMaxDataStorageTb(double value) { + + maxDataStorageTb_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total available DATA disk group size.
+     * 
+ * + * double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMaxDataStorageTb() { + bitField0_ = (bitField0_ & ~0x00010000); + maxDataStorageTb_ = 0D; + onChanged(); + return this; + } + + private int activatedStorageCount_; + /** + * + * + *
+     * Output only. The requested number of additional storage servers activated
+     * for the Exadata Infrastructure.
+     * 
+ * + * int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The activatedStorageCount. + */ + @java.lang.Override + public int getActivatedStorageCount() { + return activatedStorageCount_; + } + /** + * + * + *
+     * Output only. The requested number of additional storage servers activated
+     * for the Exadata Infrastructure.
+     * 
+ * + * int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The activatedStorageCount to set. + * @return This builder for chaining. + */ + public Builder setActivatedStorageCount(int value) { + + activatedStorageCount_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The requested number of additional storage servers activated
+     * for the Exadata Infrastructure.
+     * 
+ * + * int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearActivatedStorageCount() { + bitField0_ = (bitField0_ & ~0x00020000); + activatedStorageCount_ = 0; + onChanged(); + return this; + } + + private int additionalStorageCount_; + /** + * + * + *
+     * Output only. The requested number of additional storage servers for the
+     * Exadata Infrastructure.
+     * 
+ * + * int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The additionalStorageCount. + */ + @java.lang.Override + public int getAdditionalStorageCount() { + return additionalStorageCount_; + } + /** + * + * + *
+     * Output only. The requested number of additional storage servers for the
+     * Exadata Infrastructure.
+     * 
+ * + * int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The additionalStorageCount to set. + * @return This builder for chaining. + */ + public Builder setAdditionalStorageCount(int value) { + + additionalStorageCount_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The requested number of additional storage servers for the
+     * Exadata Infrastructure.
+     * 
+ * + * int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalStorageCount() { + bitField0_ = (bitField0_ & ~0x00040000); + additionalStorageCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object dbServerVersion_ = ""; + /** + * + * + *
+     * Output only. The software version of the database servers (dom0) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dbServerVersion. + */ + public java.lang.String getDbServerVersion() { + java.lang.Object ref = dbServerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbServerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The software version of the database servers (dom0) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dbServerVersion. + */ + public com.google.protobuf.ByteString getDbServerVersionBytes() { + java.lang.Object ref = dbServerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The software version of the database servers (dom0) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dbServerVersion to set. + * @return This builder for chaining. + */ + public Builder setDbServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbServerVersion_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The software version of the database servers (dom0) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDbServerVersion() { + dbServerVersion_ = getDefaultInstance().getDbServerVersion(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The software version of the database servers (dom0) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dbServerVersion to set. + * @return This builder for chaining. + */ + public Builder setDbServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbServerVersion_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private java.lang.Object storageServerVersion_ = ""; + /** + * + * + *
+     * Output only. The software version of the storage servers (cells) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageServerVersion. + */ + public java.lang.String getStorageServerVersion() { + java.lang.Object ref = storageServerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageServerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The software version of the storage servers (cells) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for storageServerVersion. + */ + public com.google.protobuf.ByteString getStorageServerVersionBytes() { + java.lang.Object ref = storageServerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The software version of the storage servers (cells) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The storageServerVersion to set. + * @return This builder for chaining. + */ + public Builder setStorageServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageServerVersion_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The software version of the storage servers (cells) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStorageServerVersion() { + storageServerVersion_ = getDefaultInstance().getStorageServerVersion(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The software version of the storage servers (cells) in the
+     * Exadata Infrastructure.
+     * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for storageServerVersion to set. + * @return This builder for chaining. + */ + public Builder setStorageServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageServerVersion_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private java.lang.Object nextMaintenanceRunId_ = ""; + /** + * + * + *
+     * Output only. The OCID of the next maintenance run.
+     * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextMaintenanceRunId. + */ + public java.lang.String getNextMaintenanceRunId() { + java.lang.Object ref = nextMaintenanceRunId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextMaintenanceRunId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The OCID of the next maintenance run.
+     * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for nextMaintenanceRunId. + */ + public com.google.protobuf.ByteString getNextMaintenanceRunIdBytes() { + java.lang.Object ref = nextMaintenanceRunId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextMaintenanceRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The OCID of the next maintenance run.
+     * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The nextMaintenanceRunId to set. + * @return This builder for chaining. + */ + public Builder setNextMaintenanceRunId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextMaintenanceRunId_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The OCID of the next maintenance run.
+     * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNextMaintenanceRunId() { + nextMaintenanceRunId_ = getDefaultInstance().getNextMaintenanceRunId(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The OCID of the next maintenance run.
+     * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for nextMaintenanceRunId to set. + * @return This builder for chaining. + */ + public Builder setNextMaintenanceRunIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextMaintenanceRunId_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp nextMaintenanceRunTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextMaintenanceRunTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextMaintenanceRunTime field is set. + */ + public boolean hasNextMaintenanceRunTime() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextMaintenanceRunTime. + */ + public com.google.protobuf.Timestamp getNextMaintenanceRunTime() { + if (nextMaintenanceRunTimeBuilder_ == null) { + return nextMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextMaintenanceRunTime_; + } else { + return nextMaintenanceRunTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextMaintenanceRunTime(com.google.protobuf.Timestamp value) { + if (nextMaintenanceRunTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextMaintenanceRunTime_ = value; + } else { + nextMaintenanceRunTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextMaintenanceRunTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (nextMaintenanceRunTimeBuilder_ == null) { + nextMaintenanceRunTime_ = builderForValue.build(); + } else { + nextMaintenanceRunTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNextMaintenanceRunTime(com.google.protobuf.Timestamp value) { + if (nextMaintenanceRunTimeBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && nextMaintenanceRunTime_ != null + && nextMaintenanceRunTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getNextMaintenanceRunTimeBuilder().mergeFrom(value); + } else { + nextMaintenanceRunTime_ = value; + } + } else { + nextMaintenanceRunTimeBuilder_.mergeFrom(value); + } + if (nextMaintenanceRunTime_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNextMaintenanceRunTime() { + bitField0_ = (bitField0_ & ~0x00400000); + nextMaintenanceRunTime_ = null; + if (nextMaintenanceRunTimeBuilder_ != null) { + nextMaintenanceRunTimeBuilder_.dispose(); + nextMaintenanceRunTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getNextMaintenanceRunTimeBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getNextMaintenanceRunTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getNextMaintenanceRunTimeOrBuilder() { + if (nextMaintenanceRunTimeBuilder_ != null) { + return nextMaintenanceRunTimeBuilder_.getMessageOrBuilder(); + } else { + return nextMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextMaintenanceRunTime_; + } + } + /** + * + * + *
+     * Output only. The time when the next maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getNextMaintenanceRunTimeFieldBuilder() { + if (nextMaintenanceRunTimeBuilder_ == null) { + nextMaintenanceRunTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextMaintenanceRunTime(), getParentForChildren(), isClean()); + nextMaintenanceRunTime_ = null; + } + return nextMaintenanceRunTimeBuilder_; + } + + private com.google.protobuf.Timestamp nextSecurityMaintenanceRunTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextSecurityMaintenanceRunTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextSecurityMaintenanceRunTime field is set. + */ + public boolean hasNextSecurityMaintenanceRunTime() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextSecurityMaintenanceRunTime. + */ + public com.google.protobuf.Timestamp getNextSecurityMaintenanceRunTime() { + if (nextSecurityMaintenanceRunTimeBuilder_ == null) { + return nextSecurityMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextSecurityMaintenanceRunTime_; + } else { + return nextSecurityMaintenanceRunTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextSecurityMaintenanceRunTime(com.google.protobuf.Timestamp value) { + if (nextSecurityMaintenanceRunTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextSecurityMaintenanceRunTime_ = value; + } else { + nextSecurityMaintenanceRunTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextSecurityMaintenanceRunTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (nextSecurityMaintenanceRunTimeBuilder_ == null) { + nextSecurityMaintenanceRunTime_ = builderForValue.build(); + } else { + nextSecurityMaintenanceRunTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNextSecurityMaintenanceRunTime(com.google.protobuf.Timestamp value) { + if (nextSecurityMaintenanceRunTimeBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && nextSecurityMaintenanceRunTime_ != null + && nextSecurityMaintenanceRunTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getNextSecurityMaintenanceRunTimeBuilder().mergeFrom(value); + } else { + nextSecurityMaintenanceRunTime_ = value; + } + } else { + nextSecurityMaintenanceRunTimeBuilder_.mergeFrom(value); + } + if (nextSecurityMaintenanceRunTime_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNextSecurityMaintenanceRunTime() { + bitField0_ = (bitField0_ & ~0x00800000); + nextSecurityMaintenanceRunTime_ = null; + if (nextSecurityMaintenanceRunTimeBuilder_ != null) { + nextSecurityMaintenanceRunTimeBuilder_.dispose(); + nextSecurityMaintenanceRunTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getNextSecurityMaintenanceRunTimeBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getNextSecurityMaintenanceRunTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getNextSecurityMaintenanceRunTimeOrBuilder() { + if (nextSecurityMaintenanceRunTimeBuilder_ != null) { + return nextSecurityMaintenanceRunTimeBuilder_.getMessageOrBuilder(); + } else { + return nextSecurityMaintenanceRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextSecurityMaintenanceRunTime_; + } + } + /** + * + * + *
+     * Output only. The time when the next security maintenance run will occur.
+     * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getNextSecurityMaintenanceRunTimeFieldBuilder() { + if (nextSecurityMaintenanceRunTimeBuilder_ == null) { + nextSecurityMaintenanceRunTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextSecurityMaintenanceRunTime(), getParentForChildren(), isClean()); + nextSecurityMaintenanceRunTime_ = null; + } + return nextSecurityMaintenanceRunTimeBuilder_; + } + + private java.util.List customerContacts_ = + java.util.Collections.emptyList(); + + private void ensureCustomerContactsIsMutable() { + if (!((bitField0_ & 0x01000000) != 0)) { + customerContacts_ = + new java.util.ArrayList( + customerContacts_); + bitField0_ |= 0x01000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CustomerContact, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder, + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder> + customerContactsBuilder_; + + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomerContactsList() { + if (customerContactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customerContacts_); + } else { + return customerContactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomerContactsCount() { + if (customerContactsBuilder_ == null) { + return customerContacts_.size(); + } else { + return customerContactsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact getCustomerContacts(int index) { + if (customerContactsBuilder_ == null) { + return customerContacts_.get(index); + } else { + return customerContactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact value) { + if (customerContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomerContactsIsMutable(); + customerContacts_.set(index, value); + onChanged(); + } else { + customerContactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact.Builder builderForValue) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.set(index, builderForValue.build()); + onChanged(); + } else { + customerContactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts(com.google.cloud.oracledatabase.v1.CustomerContact value) { + if (customerContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomerContactsIsMutable(); + customerContacts_.add(value); + onChanged(); + } else { + customerContactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact value) { + if (customerContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomerContactsIsMutable(); + customerContacts_.add(index, value); + onChanged(); + } else { + customerContactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts( + com.google.cloud.oracledatabase.v1.CustomerContact.Builder builderForValue) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.add(builderForValue.build()); + onChanged(); + } else { + customerContactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomerContacts( + int index, com.google.cloud.oracledatabase.v1.CustomerContact.Builder builderForValue) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.add(index, builderForValue.build()); + onChanged(); + } else { + customerContactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomerContacts( + java.lang.Iterable values) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customerContacts_); + onChanged(); + } else { + customerContactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerContacts() { + if (customerContactsBuilder_ == null) { + customerContacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + } else { + customerContactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomerContacts(int index) { + if (customerContactsBuilder_ == null) { + ensureCustomerContactsIsMutable(); + customerContacts_.remove(index); + onChanged(); + } else { + customerContactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact.Builder getCustomerContactsBuilder( + int index) { + return getCustomerContactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsOrBuilder( + int index) { + if (customerContactsBuilder_ == null) { + return customerContacts_.get(index); + } else { + return customerContactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomerContactsOrBuilderList() { + if (customerContactsBuilder_ != null) { + return customerContactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customerContacts_); + } + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact.Builder addCustomerContactsBuilder() { + return getCustomerContactsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.CustomerContact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CustomerContact.Builder addCustomerContactsBuilder( + int index) { + return getCustomerContactsFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.CustomerContact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The list of customer contacts.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomerContactsBuilderList() { + return getCustomerContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CustomerContact, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder, + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder> + getCustomerContactsFieldBuilder() { + if (customerContactsBuilder_ == null) { + customerContactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CustomerContact, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder, + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder>( + customerContacts_, + ((bitField0_ & 0x01000000) != 0), + getParentForChildren(), + isClean()); + customerContacts_ = null; + } + return customerContactsBuilder_; + } + + private java.lang.Object monthlyStorageServerVersion_ = ""; + /** + * + * + *
+     * Output only. The monthly software version of the storage servers (cells)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The monthlyStorageServerVersion. + */ + public java.lang.String getMonthlyStorageServerVersion() { + java.lang.Object ref = monthlyStorageServerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monthlyStorageServerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The monthly software version of the storage servers (cells)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for monthlyStorageServerVersion. + */ + public com.google.protobuf.ByteString getMonthlyStorageServerVersionBytes() { + java.lang.Object ref = monthlyStorageServerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monthlyStorageServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The monthly software version of the storage servers (cells)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The monthlyStorageServerVersion to set. + * @return This builder for chaining. + */ + public Builder setMonthlyStorageServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + monthlyStorageServerVersion_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The monthly software version of the storage servers (cells)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMonthlyStorageServerVersion() { + monthlyStorageServerVersion_ = getDefaultInstance().getMonthlyStorageServerVersion(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The monthly software version of the storage servers (cells)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for monthlyStorageServerVersion to set. + * @return This builder for chaining. + */ + public Builder setMonthlyStorageServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monthlyStorageServerVersion_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + private java.lang.Object monthlyDbServerVersion_ = ""; + /** + * + * + *
+     * Output only. The monthly software version of the database servers (dom0)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The monthlyDbServerVersion. + */ + public java.lang.String getMonthlyDbServerVersion() { + java.lang.Object ref = monthlyDbServerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monthlyDbServerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The monthly software version of the database servers (dom0)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for monthlyDbServerVersion. + */ + public com.google.protobuf.ByteString getMonthlyDbServerVersionBytes() { + java.lang.Object ref = monthlyDbServerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monthlyDbServerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The monthly software version of the database servers (dom0)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The monthlyDbServerVersion to set. + * @return This builder for chaining. + */ + public Builder setMonthlyDbServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + monthlyDbServerVersion_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The monthly software version of the database servers (dom0)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMonthlyDbServerVersion() { + monthlyDbServerVersion_ = getDefaultInstance().getMonthlyDbServerVersion(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The monthly software version of the database servers (dom0)
+     * in the Exadata Infrastructure. Example: 20.1.15
+     * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for monthlyDbServerVersion to set. + * @return This builder for chaining. + */ + public Builder setMonthlyDbServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monthlyDbServerVersion_ = value; + bitField0_ |= 0x04000000; + 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.oracledatabase.v1.CloudExadataInfrastructureProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) + private static final com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties(); + } + + public static com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudExadataInfrastructureProperties 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.oracledatabase.v1.CloudExadataInfrastructureProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java new file mode 100644 index 000000000000..06453b76adbd --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java @@ -0,0 +1,645 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CloudExadataInfrastructurePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. OCID of created infra.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + /** + * + * + *
+   * Output only. OCID of created infra.
+   * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
+   * Optional. The number of compute servers for the Exadata Infrastructure.
+   * 
+ * + * int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The computeCount. + */ + int getComputeCount(); + + /** + * + * + *
+   * Optional. The number of Cloud Exadata storage servers for the Exadata
+   * Infrastructure.
+   * 
+ * + * int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageCount. + */ + int getStorageCount(); + + /** + * + * + *
+   * Optional. The total storage allocated to the Exadata Infrastructure
+   * resource, in gigabytes (GB).
+   * 
+ * + * int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The totalStorageSizeGb. + */ + int getTotalStorageSizeGb(); + + /** + * + * + *
+   * Output only. The available storage can be allocated to the Exadata
+   * Infrastructure resource, in gigabytes (GB).
+   * 
+ * + * int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableStorageSizeGb. + */ + int getAvailableStorageSizeGb(); + + /** + * + * + *
+   * Optional. Maintenance window for repair.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenanceWindow field is set. + */ + boolean hasMaintenanceWindow(); + /** + * + * + *
+   * Optional. Maintenance window for repair.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceWindow. + */ + com.google.cloud.oracledatabase.v1.MaintenanceWindow getMaintenanceWindow(); + /** + * + * + *
+   * Optional. Maintenance window for repair.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder(); + + /** + * + * + *
+   * Output only. The current lifecycle state of the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The current lifecycle state of the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State getState(); + + /** + * + * + *
+   * Required. The shape of the Exadata Infrastructure. The shape determines the
+   * amount of CPU, storage, and memory resources allocated to the instance.
+   * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shape. + */ + java.lang.String getShape(); + /** + * + * + *
+   * Required. The shape of the Exadata Infrastructure. The shape determines the
+   * amount of CPU, storage, and memory resources allocated to the instance.
+   * 
+ * + * string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shape. + */ + com.google.protobuf.ByteString getShapeBytes(); + + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + java.lang.String getOciUrl(); + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + com.google.protobuf.ByteString getOciUrlBytes(); + + /** + * + * + *
+   * Optional. The number of enabled CPU cores.
+   * 
+ * + * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cpuCount. + */ + int getCpuCount(); + + /** + * + * + *
+   * Output only. The total number of CPU cores available.
+   * 
+ * + * int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxCpuCount. + */ + int getMaxCpuCount(); + + /** + * + * + *
+   * Optional. The memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + int getMemorySizeGb(); + + /** + * + * + *
+   * Output only. The total memory available in GBs.
+   * 
+ * + * int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxMemoryGb. + */ + int getMaxMemoryGb(); + + /** + * + * + *
+   * Optional. The local node storage allocated in GBs.
+   * 
+ * + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + int getDbNodeStorageSizeGb(); + + /** + * + * + *
+   * Output only. The total local node storage available in GBs.
+   * 
+ * + * int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxDbNodeStorageSizeGb. + */ + int getMaxDbNodeStorageSizeGb(); + + /** + * + * + *
+   * Output only. Size, in terabytes, of the DATA disk group.
+   * 
+ * + * double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataStorageSizeTb. + */ + double getDataStorageSizeTb(); + + /** + * + * + *
+   * Output only. The total available DATA disk group size.
+   * 
+ * + * double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxDataStorageTb. + */ + double getMaxDataStorageTb(); + + /** + * + * + *
+   * Output only. The requested number of additional storage servers activated
+   * for the Exadata Infrastructure.
+   * 
+ * + * int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The activatedStorageCount. + */ + int getActivatedStorageCount(); + + /** + * + * + *
+   * Output only. The requested number of additional storage servers for the
+   * Exadata Infrastructure.
+   * 
+ * + * int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalStorageCount. + */ + int getAdditionalStorageCount(); + + /** + * + * + *
+   * Output only. The software version of the database servers (dom0) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dbServerVersion. + */ + java.lang.String getDbServerVersion(); + /** + * + * + *
+   * Output only. The software version of the database servers (dom0) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dbServerVersion. + */ + com.google.protobuf.ByteString getDbServerVersionBytes(); + + /** + * + * + *
+   * Output only. The software version of the storage servers (cells) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageServerVersion. + */ + java.lang.String getStorageServerVersion(); + /** + * + * + *
+   * Output only. The software version of the storage servers (cells) in the
+   * Exadata Infrastructure.
+   * 
+ * + * string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for storageServerVersion. + */ + com.google.protobuf.ByteString getStorageServerVersionBytes(); + + /** + * + * + *
+   * Output only. The OCID of the next maintenance run.
+   * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextMaintenanceRunId. + */ + java.lang.String getNextMaintenanceRunId(); + /** + * + * + *
+   * Output only. The OCID of the next maintenance run.
+   * 
+ * + * string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextMaintenanceRunId. + */ + com.google.protobuf.ByteString getNextMaintenanceRunIdBytes(); + + /** + * + * + *
+   * Output only. The time when the next maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextMaintenanceRunTime field is set. + */ + boolean hasNextMaintenanceRunTime(); + /** + * + * + *
+   * Output only. The time when the next maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextMaintenanceRunTime. + */ + com.google.protobuf.Timestamp getNextMaintenanceRunTime(); + /** + * + * + *
+   * Output only. The time when the next maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getNextMaintenanceRunTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time when the next security maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextSecurityMaintenanceRunTime field is set. + */ + boolean hasNextSecurityMaintenanceRunTime(); + /** + * + * + *
+   * Output only. The time when the next security maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextSecurityMaintenanceRunTime. + */ + com.google.protobuf.Timestamp getNextSecurityMaintenanceRunTime(); + /** + * + * + *
+   * Output only. The time when the next security maintenance run will occur.
+   * 
+ * + * + * .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getNextSecurityMaintenanceRunTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomerContactsList(); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.CustomerContact getCustomerContacts(int index); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomerContactsCount(); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomerContactsOrBuilderList(); + /** + * + * + *
+   * Optional. The list of customer contacts.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. The monthly software version of the storage servers (cells)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The monthlyStorageServerVersion. + */ + java.lang.String getMonthlyStorageServerVersion(); + /** + * + * + *
+   * Output only. The monthly software version of the storage servers (cells)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for monthlyStorageServerVersion. + */ + com.google.protobuf.ByteString getMonthlyStorageServerVersionBytes(); + + /** + * + * + *
+   * Output only. The monthly software version of the database servers (dom0)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The monthlyDbServerVersion. + */ + java.lang.String getMonthlyDbServerVersion(); + /** + * + * + *
+   * Output only. The monthly software version of the database servers (dom0)
+   * in the Exadata Infrastructure. Example: 20.1.15
+   * 
+ * + * string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for monthlyDbServerVersion. + */ + com.google.protobuf.ByteString getMonthlyDbServerVersionBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java new file mode 100644 index 000000000000..ff278daf475d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java @@ -0,0 +1,237 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class CloudExadataInfrastructureProto { + private CloudExadataInfrastructureProto() {} + + 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_oracledatabase_v1_CloudExadataInfrastructure_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/oracledatabase/v1/exadata" + + "_infra.proto\022\036google.cloud.oracledatabas" + + "e.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032+google/cloud/o" + + "racledatabase/v1/common.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\033google/type/dayo" + + "fweek.proto\032\027google/type/month.proto\"\204\005\n" + + "\032CloudExadataInfrastructure\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\001\022\034\n\017gcp" + + "_oracle_zone\030\010 \001(\tB\003\340A\001\022\033\n\016entitlement_i" + + "d\030\004 \001(\tB\003\340A\003\022]\n\nproperties\030\005 \001(\0132D.googl" + + "e.cloud.oracledatabase.v1.CloudExadataIn" + + "frastructurePropertiesB\003\340A\001\022[\n\006labels\030\006 " + + "\003(\0132F.google.cloud.oracledatabase.v1.Clo" + + "udExadataInfrastructure.LabelsEntryB\003\340A\001" + + "\0224\n\013create_time\030\007 \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:\333\001\352A\327\001\n8oracledata" + + "base.googleapis.com/CloudExadataInfrastr" + + "ucture\022bprojects/{project}/locations/{lo" + + "cation}/cloudExadataInfrastructures/{clo" + + "ud_exadata_infrastructure}*\033cloudExadata" + + "Infrastructures2\032cloudExadataInfrastruct" + + "ure\"\246\n\n$CloudExadataInfrastructureProper" + + "ties\022\021\n\004ocid\030\001 \001(\tB\003\340A\003\022\032\n\rcompute_count" + + "\030\002 \001(\005B\003\340A\001\022\032\n\rstorage_count\030\003 \001(\005B\003\340A\001\022" + + "\"\n\025total_storage_size_gb\030\004 \001(\005B\003\340A\001\022&\n\031a" + + "vailable_storage_size_gb\030\005 \001(\005B\003\340A\003\022R\n\022m" + + "aintenance_window\030\006 \001(\01321.google.cloud.o" + + "racledatabase.v1.MaintenanceWindowB\003\340A\001\022" + + "^\n\005state\030\007 \001(\0162J.google.cloud.oracledata" + + "base.v1.CloudExadataInfrastructureProper" + + "ties.StateB\003\340A\003\022\022\n\005shape\030\010 \001(\tB\003\340A\002\022\024\n\007o" + + "ci_url\030\t \001(\tB\003\340A\003\022\026\n\tcpu_count\030\n \001(\005B\003\340A" + + "\001\022\032\n\rmax_cpu_count\030\013 \001(\005B\003\340A\003\022\033\n\016memory_" + + "size_gb\030\014 \001(\005B\003\340A\001\022\032\n\rmax_memory_gb\030\r \001(" + + "\005B\003\340A\003\022$\n\027db_node_storage_size_gb\030\016 \001(\005B" + + "\003\340A\001\022(\n\033max_db_node_storage_size_gb\030\017 \001(" + + "\005B\003\340A\003\022!\n\024data_storage_size_tb\030\020 \001(\001B\003\340A" + + "\003\022 \n\023max_data_storage_tb\030\021 \001(\001B\003\340A\003\022$\n\027a" + + "ctivated_storage_count\030\022 \001(\005B\003\340A\003\022%\n\030add" + + "itional_storage_count\030\023 \001(\005B\003\340A\003\022\036\n\021db_s" + + "erver_version\030\024 \001(\tB\003\340A\003\022#\n\026storage_serv" + + "er_version\030\025 \001(\tB\003\340A\003\022$\n\027next_maintenanc" + + "e_run_id\030\026 \001(\tB\003\340A\003\022B\n\031next_maintenance_" + + "run_time\030\027 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022K\n\"next_security_maintenance_run" + + "_time\030\030 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022O\n\021customer_contacts\030\031 \003(\0132/.google" + + ".cloud.oracledatabase.v1.CustomerContact" + + "B\003\340A\001\022+\n\036monthly_storage_server_version\030" + + "\032 \001(\tB\003\340A\003\022&\n\031monthly_db_server_version\030" + + "\033 \001(\tB\003\340A\003\"\227\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\020\n\014PROVISIONING\020\001\022\r\n\tAVAILABLE\020\002\022\014\n\010" + + "UPDATING\020\003\022\017\n\013TERMINATING\020\004\022\016\n\nTERMINATE" + + "D\020\005\022\n\n\006FAILED\020\006\022\033\n\027MAINTENANCE_IN_PROGRE" + + "SS\020\007\"\245\005\n\021MaintenanceWindow\022f\n\npreference" + + "\030\001 \001(\0162M.google.cloud.oracledatabase.v1." + + "MaintenanceWindow.MaintenanceWindowPrefe" + + "renceB\003\340A\001\022\'\n\006months\030\002 \003(\0162\022.google.type" + + ".MonthB\003\340A\001\022\033\n\016weeks_of_month\030\003 \003(\005B\003\340A\001" + + "\0221\n\014days_of_week\030\004 \003(\0162\026.google.type.Day" + + "OfWeekB\003\340A\001\022\031\n\014hours_of_day\030\005 \003(\005B\003\340A\001\022\033" + + "\n\016lead_time_week\030\006 \001(\005B\003\340A\001\022Z\n\rpatching_" + + "mode\030\007 \001(\0162>.google.cloud.oracledatabase" + + ".v1.MaintenanceWindow.PatchingModeB\003\340A\001\022" + + "\'\n\032custom_action_timeout_mins\030\010 \001(\005B\003\340A\001" + + "\022-\n is_custom_action_timeout_enabled\030\t \001" + + "(\010B\003\340A\001\"v\n\033MaintenanceWindowPreference\022-" + + "\n)MAINTENANCE_WINDOW_PREFERENCE_UNSPECIF" + + "IED\020\000\022\025\n\021CUSTOM_PREFERENCE\020\001\022\021\n\rNO_PREFE" + + "RENCE\020\002\"K\n\014PatchingMode\022\035\n\031PATCHING_MODE" + + "_UNSPECIFIED\020\000\022\013\n\007ROLLING\020\001\022\017\n\013NON_ROLLI" + + "NG\020\002B\371\001\n\"com.google.cloud.oracledatabase" + + ".v1B\037CloudExadataInfrastructureProtoP\001ZJ" + + "cloud.google.com/go/oracledatabase/apiv1" + + "/oracledatabasepb;oracledatabasepb\252\002\036Goo" + + "gle.Cloud.OracleDatabase.V1\312\002\036Google\\Clo" + + "ud\\OracleDatabase\\V1\352\002!Google::Cloud::Or" + + "acleDatabase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.MonthProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "GcpOracleZone", + "EntitlementId", + "Properties", + "Labels", + "CreateTime", + }); + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructure_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor, + new java.lang.String[] { + "Ocid", + "ComputeCount", + "StorageCount", + "TotalStorageSizeGb", + "AvailableStorageSizeGb", + "MaintenanceWindow", + "State", + "Shape", + "OciUrl", + "CpuCount", + "MaxCpuCount", + "MemorySizeGb", + "MaxMemoryGb", + "DbNodeStorageSizeGb", + "MaxDbNodeStorageSizeGb", + "DataStorageSizeTb", + "MaxDataStorageTb", + "ActivatedStorageCount", + "AdditionalStorageCount", + "DbServerVersion", + "StorageServerVersion", + "NextMaintenanceRunId", + "NextMaintenanceRunTime", + "NextSecurityMaintenanceRunTime", + "CustomerContacts", + "MonthlyStorageServerVersion", + "MonthlyDbServerVersion", + }); + internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor, + new java.lang.String[] { + "Preference", + "Months", + "WeeksOfMonth", + "DaysOfWeek", + "HoursOfDay", + "LeadTimeWeek", + "PatchingMode", + "CustomActionTimeoutMins", + "IsCustomActionTimeoutEnabled", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.MonthProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java new file mode 100644 index 000000000000..0a7ac0cb32ad --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java @@ -0,0 +1,2713 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Cloud VM Cluster resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudVmCluster} + */ +public final class CloudVmCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CloudVmCluster) + CloudVmClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudVmCluster.newBuilder() to construct. + private CloudVmCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudVmCluster() { + name_ = ""; + exadataInfrastructure_ = ""; + displayName_ = ""; + gcpOracleZone_ = ""; + cidr_ = ""; + backupSubnetCidr_ = ""; + network_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudVmCluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudVmCluster.class, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the VM Cluster resource with the format:
+   * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+   * 
+ * + * 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 name of the VM Cluster resource with the format:
+   * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+   * 
+ * + * 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 EXADATA_INFRASTRUCTURE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object exadataInfrastructure_ = ""; + /** + * + * + *
+   * Required. The name of the Exadata Infrastructure resource on which VM
+   * cluster resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The exadataInfrastructure. + */ + @java.lang.Override + public java.lang.String getExadataInfrastructure() { + java.lang.Object ref = exadataInfrastructure_; + 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(); + exadataInfrastructure_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Exadata Infrastructure resource on which VM
+   * cluster resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exadataInfrastructure. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExadataInfrastructureBytes() { + java.lang.Object ref = exadataInfrastructure_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exadataInfrastructure_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + /** + * + * + *
+   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+   * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+   * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 6; + private com.google.cloud.oracledatabase.v1.CloudVmClusterProperties properties_; + /** + * + * + *
+   * Optional. Various properties of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Various properties of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDefaultInstance() + : properties_; + } + /** + * + * + *
+   * Optional. Various properties of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDefaultInstance() + : properties_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_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. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.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. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.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. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.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 CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The date and time that the VM cluster was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 CIDR_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidr_ = ""; + /** + * + * + *
+   * Required. Network settings. CIDR to use for cluster IP allocation.
+   * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidr. + */ + @java.lang.Override + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + 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(); + cidr_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Network settings. CIDR to use for cluster IP allocation.
+   * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_SUBNET_CIDR_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupSubnetCidr_ = ""; + /** + * + * + *
+   * Required. CIDR range of the backup subnet.
+   * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupSubnetCidr. + */ + @java.lang.Override + public java.lang.String getBackupSubnetCidr() { + java.lang.Object ref = backupSubnetCidr_; + 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(); + backupSubnetCidr_ = s; + return s; + } + } + /** + * + * + *
+   * Required. CIDR range of the backup subnet.
+   * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupSubnetCidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupSubnetCidrBytes() { + java.lang.Object ref = backupSubnetCidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupSubnetCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Required. The name of the VPC network.
+   * Format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the VPC network.
+   * Format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadataInfrastructure_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exadataInfrastructure_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getProperties()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupSubnetCidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, backupSubnetCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gcpOracleZone_); + } + 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(exadataInfrastructure_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exadataInfrastructure_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProperties()); + } + 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(7, labels__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupSubnetCidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, backupSubnetCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gcpOracleZone_); + } + 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.oracledatabase.v1.CloudVmCluster)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CloudVmCluster other = + (com.google.cloud.oracledatabase.v1.CloudVmCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getExadataInfrastructure().equals(other.getExadataInfrastructure())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getCidr().equals(other.getCidr())) return false; + if (!getBackupSubnetCidr().equals(other.getBackupSubnetCidr())) return false; + if (!getNetwork().equals(other.getNetwork())) 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) + EXADATA_INFRASTRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getExadataInfrastructure().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + CIDR_FIELD_NUMBER; + hash = (53 * hash) + getCidr().hashCode(); + hash = (37 * hash) + BACKUP_SUBNET_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getBackupSubnetCidr().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster 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.oracledatabase.v1.CloudVmCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster 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.oracledatabase.v1.CloudVmCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster 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.oracledatabase.v1.CloudVmCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster 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.oracledatabase.v1.CloudVmCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster 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.oracledatabase.v1.CloudVmCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Cloud VM Cluster resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudVmCluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CloudVmCluster) + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudVmCluster.class, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CloudVmCluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + exadataInfrastructure_ = ""; + displayName_ = ""; + gcpOracleZone_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + cidr_ = ""; + backupSubnetCidr_ = ""; + network_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmCluster getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmCluster build() { + com.google.cloud.oracledatabase.v1.CloudVmCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmCluster buildPartial() { + com.google.cloud.oracledatabase.v1.CloudVmCluster result = + new com.google.cloud.oracledatabase.v1.CloudVmCluster(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CloudVmCluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exadataInfrastructure_ = exadataInfrastructure_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cidr_ = cidr_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.backupSubnetCidr_ = backupSubnetCidr_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.network_ = network_; + } + 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.oracledatabase.v1.CloudVmCluster) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CloudVmCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudVmCluster other) { + if (other == com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExadataInfrastructure().isEmpty()) { + exadataInfrastructure_ = other.exadataInfrastructure_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getCidr().isEmpty()) { + cidr_ = other.cidr_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getBackupSubnetCidr().isEmpty()) { + backupSubnetCidr_ = other.backupSubnetCidr_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000200; + 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 + case 18: + { + exadataInfrastructure_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + backupSubnetCidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 98 + 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 name of the VM Cluster resource with the format:
+     * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+     * 
+ * + * 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 name of the VM Cluster resource with the format:
+     * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+     * 
+ * + * 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 name of the VM Cluster resource with the format:
+     * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+     * 
+ * + * 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 name of the VM Cluster resource with the format:
+     * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+     * 
+ * + * 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 name of the VM Cluster resource with the format:
+     * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+     * 
+ * + * 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 exadataInfrastructure_ = ""; + /** + * + * + *
+     * Required. The name of the Exadata Infrastructure resource on which VM
+     * cluster resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The exadataInfrastructure. + */ + public java.lang.String getExadataInfrastructure() { + java.lang.Object ref = exadataInfrastructure_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exadataInfrastructure_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Exadata Infrastructure resource on which VM
+     * cluster resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exadataInfrastructure. + */ + public com.google.protobuf.ByteString getExadataInfrastructureBytes() { + java.lang.Object ref = exadataInfrastructure_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exadataInfrastructure_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Exadata Infrastructure resource on which VM
+     * cluster resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The exadataInfrastructure to set. + * @return This builder for chaining. + */ + public Builder setExadataInfrastructure(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exadataInfrastructure_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Exadata Infrastructure resource on which VM
+     * cluster resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExadataInfrastructure() { + exadataInfrastructure_ = getDefaultInstance().getExadataInfrastructure(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Exadata Infrastructure resource on which VM
+     * cluster resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for exadataInfrastructure to set. + * @return This builder for chaining. + */ + public Builder setExadataInfrastructureBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exadataInfrastructure_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object gcpOracleZone_ = ""; + /** + * + * + *
+     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+     * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+     * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+     * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+     * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+     * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.CloudVmClusterProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties, + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder> + propertiesBuilder_; + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000010); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDefaultInstance() + : properties_; + } + } + /** + * + * + *
+     * Optional. Various properties of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties, + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties, + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + 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_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.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. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.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. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.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_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.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_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.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_ |= 0x00000020; + return this; + } + /** + * + * + *
+     * Optional. Labels or tags associated with the VM Cluster.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + 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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. The date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 java.lang.Object cidr_ = ""; + /** + * + * + *
+     * Required. Network settings. CIDR to use for cluster IP allocation.
+     * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidr. + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Network settings. CIDR to use for cluster IP allocation.
+     * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidr. + */ + public com.google.protobuf.ByteString getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Network settings. CIDR to use for cluster IP allocation.
+     * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cidr to set. + * @return This builder for chaining. + */ + public Builder setCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Network settings. CIDR to use for cluster IP allocation.
+     * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCidr() { + cidr_ = getDefaultInstance().getCidr(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Network settings. CIDR to use for cluster IP allocation.
+     * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for cidr to set. + * @return This builder for chaining. + */ + public Builder setCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object backupSubnetCidr_ = ""; + /** + * + * + *
+     * Required. CIDR range of the backup subnet.
+     * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupSubnetCidr. + */ + public java.lang.String getBackupSubnetCidr() { + java.lang.Object ref = backupSubnetCidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupSubnetCidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. CIDR range of the backup subnet.
+     * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupSubnetCidr. + */ + public com.google.protobuf.ByteString getBackupSubnetCidrBytes() { + java.lang.Object ref = backupSubnetCidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupSubnetCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. CIDR range of the backup subnet.
+     * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backupSubnetCidr to set. + * @return This builder for chaining. + */ + public Builder setBackupSubnetCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupSubnetCidr_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. CIDR range of the backup subnet.
+     * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackupSubnetCidr() { + backupSubnetCidr_ = getDefaultInstance().getBackupSubnetCidr(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. CIDR range of the backup subnet.
+     * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backupSubnetCidr to set. + * @return This builder for chaining. + */ + public Builder setBackupSubnetCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupSubnetCidr_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Required. The name of the VPC network.
+     * Format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the VPC network.
+     * Format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the VPC network.
+     * Format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VPC network.
+     * Format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VPC network.
+     * Format: projects/{project}/global/networks/{network}
+     * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000200; + 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.oracledatabase.v1.CloudVmCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CloudVmCluster) + private static final com.google.cloud.oracledatabase.v1.CloudVmCluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CloudVmCluster(); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudVmCluster 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.oracledatabase.v1.CloudVmCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java new file mode 100644 index 000000000000..a922889716fd --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java @@ -0,0 +1,227 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 CloudVmClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLOUD_VM_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cloudVmCluster; + + @Deprecated + protected CloudVmClusterName() { + project = null; + location = null; + cloudVmCluster = null; + } + + private CloudVmClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudVmCluster = Preconditions.checkNotNull(builder.getCloudVmCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudVmCluster() { + return cloudVmCluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CloudVmClusterName of(String project, String location, String cloudVmCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudVmCluster(cloudVmCluster) + .build(); + } + + public static String format(String project, String location, String cloudVmCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudVmCluster(cloudVmCluster) + .build() + .toString(); + } + + public static CloudVmClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLOUD_VM_CLUSTER.validatedMatch( + formattedString, "CloudVmClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cloud_vm_cluster")); + } + + 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 (CloudVmClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLOUD_VM_CLUSTER.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 (cloudVmCluster != null) { + fieldMapBuilder.put("cloud_vm_cluster", cloudVmCluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLOUD_VM_CLUSTER.instantiate( + "project", project, "location", location, "cloud_vm_cluster", cloudVmCluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CloudVmClusterName that = ((CloudVmClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cloudVmCluster, that.cloudVmCluster); + } + 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(cloudVmCluster); + return h; + } + + /** Builder for projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. */ + public static class Builder { + private String project; + private String location; + private String cloudVmCluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudVmCluster() { + return cloudVmCluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCloudVmCluster(String cloudVmCluster) { + this.cloudVmCluster = cloudVmCluster; + return this; + } + + private Builder(CloudVmClusterName cloudVmClusterName) { + this.project = cloudVmClusterName.project; + this.location = cloudVmClusterName.location; + this.cloudVmCluster = cloudVmClusterName.cloudVmCluster; + } + + public CloudVmClusterName build() { + return new CloudVmClusterName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java new file mode 100644 index 000000000000..9699b131d0b9 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java @@ -0,0 +1,356 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CloudVmClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CloudVmCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the VM Cluster resource with the format:
+   * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the VM Cluster resource with the format:
+   * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The name of the Exadata Infrastructure resource on which VM
+   * cluster resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The exadataInfrastructure. + */ + java.lang.String getExadataInfrastructure(); + /** + * + * + *
+   * Required. The name of the Exadata Infrastructure resource on which VM
+   * cluster resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exadataInfrastructure. + */ + com.google.protobuf.ByteString getExadataInfrastructureBytes(); + + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+   * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + /** + * + * + *
+   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
+   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
+   * 
+ * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
+   * Optional. Various properties of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * + * + *
+   * Optional. Various properties of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties getProperties(); + /** + * + * + *
+   * Optional. Various properties of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * + * + *
+   * Optional. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels or tags associated with the VM Cluster.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The date and time that the VM cluster was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The date and time that the VM cluster was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The date and time that the VM cluster was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Required. Network settings. CIDR to use for cluster IP allocation.
+   * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidr. + */ + java.lang.String getCidr(); + /** + * + * + *
+   * Required. Network settings. CIDR to use for cluster IP allocation.
+   * 
+ * + * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidr. + */ + com.google.protobuf.ByteString getCidrBytes(); + + /** + * + * + *
+   * Required. CIDR range of the backup subnet.
+   * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupSubnetCidr. + */ + java.lang.String getBackupSubnetCidr(); + /** + * + * + *
+   * Required. CIDR range of the backup subnet.
+   * 
+ * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupSubnetCidr. + */ + com.google.protobuf.ByteString getBackupSubnetCidrBytes(); + + /** + * + * + *
+   * Required. The name of the VPC network.
+   * Format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Required. The name of the VPC network.
+   * Format: projects/{project}/global/networks/{network}
+   * 
+ * + * + * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java new file mode 100644 index 000000000000..7005dfe95660 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java @@ -0,0 +1,6395 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Various properties and settings associated with Exadata VM cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudVmClusterProperties} + */ +public final class CloudVmClusterProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CloudVmClusterProperties) + CloudVmClusterPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudVmClusterProperties.newBuilder() to construct. + private CloudVmClusterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudVmClusterProperties() { + ocid_ = ""; + licenseType_ = 0; + giVersion_ = ""; + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + shape_ = ""; + diskRedundancy_ = 0; + hostnamePrefix_ = ""; + state_ = 0; + domain_ = ""; + scanDns_ = ""; + hostname_ = ""; + systemVersion_ = ""; + scanIpIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + scanDnsRecordId_ = ""; + ociUrl_ = ""; + dbServerOcids_ = com.google.protobuf.LazyStringArrayList.emptyList(); + compartmentId_ = ""; + dnsListenerIp_ = ""; + clusterName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudVmClusterProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.class, + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder.class); + } + + /** + * + * + *
+   * Different licenses supported.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType} + */ + public enum LicenseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * LICENSE_TYPE_UNSPECIFIED = 0; + */ + LICENSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * License included part of offer
+     * 
+ * + * LICENSE_INCLUDED = 1; + */ + LICENSE_INCLUDED(1), + /** + * + * + *
+     * Bring your own license
+     * 
+ * + * BRING_YOUR_OWN_LICENSE = 2; + */ + BRING_YOUR_OWN_LICENSE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * LICENSE_TYPE_UNSPECIFIED = 0; + */ + public static final int LICENSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * License included part of offer
+     * 
+ * + * LICENSE_INCLUDED = 1; + */ + public static final int LICENSE_INCLUDED_VALUE = 1; + /** + * + * + *
+     * Bring your own license
+     * 
+ * + * BRING_YOUR_OWN_LICENSE = 2; + */ + public static final int BRING_YOUR_OWN_LICENSE_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 LicenseType 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 LicenseType forNumber(int value) { + switch (value) { + case 0: + return LICENSE_TYPE_UNSPECIFIED; + case 1: + return LICENSE_INCLUDED; + case 2: + return BRING_YOUR_OWN_LICENSE; + 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 LicenseType findValueByNumber(int number) { + return LicenseType.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.oracledatabase.v1.CloudVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LicenseType[] VALUES = values(); + + public static LicenseType 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 LicenseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType) + } + + /** + * + * + *
+   * Types of disk redundancy provided by Oracle.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy} + */ + public enum DiskRedundancy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * DISK_REDUNDANCY_UNSPECIFIED = 0; + */ + DISK_REDUNDANCY_UNSPECIFIED(0), + /** + * + * + *
+     * High -  3 way mirror.
+     * 
+ * + * HIGH = 1; + */ + HIGH(1), + /** + * + * + *
+     * Normal - 2 way mirror.
+     * 
+ * + * NORMAL = 2; + */ + NORMAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * DISK_REDUNDANCY_UNSPECIFIED = 0; + */ + public static final int DISK_REDUNDANCY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * High -  3 way mirror.
+     * 
+ * + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + /** + * + * + *
+     * Normal - 2 way mirror.
+     * 
+ * + * NORMAL = 2; + */ + public static final int NORMAL_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 DiskRedundancy 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 DiskRedundancy forNumber(int value) { + switch (value) { + case 0: + return DISK_REDUNDANCY_UNSPECIFIED; + case 1: + return HIGH; + case 2: + return NORMAL; + 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 DiskRedundancy findValueByNumber(int number) { + return DiskRedundancy.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.oracledatabase.v1.CloudVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DiskRedundancy[] VALUES = values(); + + public static DiskRedundancy 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 DiskRedundancy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy) + } + + /** + * + * + *
+   * The various lifecycle states of the VM cluster.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.CloudVmClusterProperties.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Indicates that the resource is in provisioning state.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * Indicates that the resource is in available state.
+     * 
+ * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
+     * Indicates that the resource is in updating state.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * Indicates that the resource is in terminating state.
+     * 
+ * + * TERMINATING = 4; + */ + TERMINATING(4), + /** + * + * + *
+     * Indicates that the resource is in terminated state.
+     * 
+ * + * TERMINATED = 5; + */ + TERMINATED(5), + /** + * + * + *
+     * Indicates that the resource is in failed state.
+     * 
+ * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
+     * Indicates that the resource is in maintenance in progress state.
+     * 
+ * + * MAINTENANCE_IN_PROGRESS = 7; + */ + MAINTENANCE_IN_PROGRESS(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Indicates that the resource is in provisioning state.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * Indicates that the resource is in available state.
+     * 
+ * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + /** + * + * + *
+     * Indicates that the resource is in updating state.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * Indicates that the resource is in terminating state.
+     * 
+ * + * TERMINATING = 4; + */ + public static final int TERMINATING_VALUE = 4; + /** + * + * + *
+     * Indicates that the resource is in terminated state.
+     * 
+ * + * TERMINATED = 5; + */ + public static final int TERMINATED_VALUE = 5; + /** + * + * + *
+     * Indicates that the resource is in failed state.
+     * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * + * + *
+     * Indicates that the resource is in maintenance in progress state.
+     * 
+ * + * MAINTENANCE_IN_PROGRESS = 7; + */ + public static final int MAINTENANCE_IN_PROGRESS_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return TERMINATING; + case 5: + return TERMINATED; + case 6: + return FAILED; + case 7: + return MAINTENANCE_IN_PROGRESS; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.CloudVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties.State) + } + + private int bitField0_; + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + /** + * + * + *
+   * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_TYPE_FIELD_NUMBER = 2; + private int licenseType_ = 0; + /** + * + * + *
+   * Required. License type of VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + /** + * + * + *
+   * Required. License type of VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType getLicenseType() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType.forNumber( + licenseType_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType.UNRECOGNIZED + : result; + } + + public static final int GI_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object giVersion_ = ""; + /** + * + * + *
+   * Optional. Grid Infrastructure Version.
+   * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The giVersion. + */ + @java.lang.Override + public java.lang.String getGiVersion() { + java.lang.Object ref = giVersion_; + 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(); + giVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Grid Infrastructure Version.
+   * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for giVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGiVersionBytes() { + java.lang.Object ref = giVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + giVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 4; + private com.google.type.TimeZone timeZone_; + /** + * + * + *
+   * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+   * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+   * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public com.google.type.TimeZone getTimeZone() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + /** + * + * + *
+   * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+   * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList getSshPublicKeysList() { + return sshPublicKeys_; + } + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + public static final int NODE_COUNT_FIELD_NUMBER = 6; + private int nodeCount_ = 0; + /** + * + * + *
+   * Optional. Number of database servers.
+   * 
+ * + * int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int SHAPE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object shape_ = ""; + /** + * + * + *
+   * Output only. Shape of VM Cluster.
+   * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shape. + */ + @java.lang.Override + public java.lang.String getShape() { + java.lang.Object ref = shape_; + 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(); + shape_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Shape of VM Cluster.
+   * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for shape. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCPU_COUNT_FIELD_NUMBER = 8; + private float ocpuCount_ = 0F; + /** + * + * + *
+   * Optional. OCPU count per VM. Minimum is 0.1.
+   * 
+ * + * float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + @java.lang.Override + public float getOcpuCount() { + return ocpuCount_; + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 9; + private int memorySizeGb_ = 0; + /** + * + * + *
+   * Optional. Memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER = 10; + private int dbNodeStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. Local storage per VM.
+   * 
+ * + * int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + + public static final int STORAGE_SIZE_GB_FIELD_NUMBER = 11; + private int storageSizeGb_ = 0; + /** + * + * + *
+   * Output only. The storage allocation for the disk group, in gigabytes (GB).
+   * 
+ * + * int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageSizeGb. + */ + @java.lang.Override + public int getStorageSizeGb() { + return storageSizeGb_; + } + + public static final int DATA_STORAGE_SIZE_TB_FIELD_NUMBER = 12; + private double dataStorageSizeTb_ = 0D; + /** + * + * + *
+   * Optional. The data disk group size to be allocated in TBs.
+   * 
+ * + * double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeTb. + */ + @java.lang.Override + public double getDataStorageSizeTb() { + return dataStorageSizeTb_; + } + + public static final int DISK_REDUNDANCY_FIELD_NUMBER = 13; + private int diskRedundancy_ = 0; + /** + * + * + *
+   * Optional. The type of redundancy.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskRedundancy. + */ + @java.lang.Override + public int getDiskRedundancyValue() { + return diskRedundancy_; + } + /** + * + * + *
+   * Optional. The type of redundancy.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskRedundancy. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy + getDiskRedundancy() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy.forNumber( + diskRedundancy_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy.UNRECOGNIZED + : result; + } + + public static final int SPARSE_DISKGROUP_ENABLED_FIELD_NUMBER = 14; + private boolean sparseDiskgroupEnabled_ = false; + /** + * + * + *
+   * Optional. Use exadata sparse snapshots.
+   * 
+ * + * bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sparseDiskgroupEnabled. + */ + @java.lang.Override + public boolean getSparseDiskgroupEnabled() { + return sparseDiskgroupEnabled_; + } + + public static final int LOCAL_BACKUP_ENABLED_FIELD_NUMBER = 15; + private boolean localBackupEnabled_ = false; + /** + * + * + *
+   * Optional. Use local backup.
+   * 
+ * + * bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localBackupEnabled. + */ + @java.lang.Override + public boolean getLocalBackupEnabled() { + return localBackupEnabled_; + } + + public static final int HOSTNAME_PREFIX_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostnamePrefix_ = ""; + /** + * + * + *
+   * Optional. Prefix for VM cluster host names.
+   * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostnamePrefix. + */ + @java.lang.Override + public java.lang.String getHostnamePrefix() { + java.lang.Object ref = hostnamePrefix_; + 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(); + hostnamePrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Prefix for VM cluster host names.
+   * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostnamePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnamePrefixBytes() { + java.lang.Object ref = hostnamePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostnamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIAGNOSTICS_DATA_COLLECTION_OPTIONS_FIELD_NUMBER = 19; + private com.google.cloud.oracledatabase.v1.DataCollectionOptions + diagnosticsDataCollectionOptions_; + /** + * + * + *
+   * Optional. Data collection options for diagnostics.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diagnosticsDataCollectionOptions field is set. + */ + @java.lang.Override + public boolean hasDiagnosticsDataCollectionOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Data collection options for diagnostics.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diagnosticsDataCollectionOptions. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptions + getDiagnosticsDataCollectionOptions() { + return diagnosticsDataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance() + : diagnosticsDataCollectionOptions_; + } + /** + * + * + *
+   * Optional. Data collection options for diagnostics.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder + getDiagnosticsDataCollectionOptionsOrBuilder() { + return diagnosticsDataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance() + : diagnosticsDataCollectionOptions_; + } + + public static final int STATE_FIELD_NUMBER = 20; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.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. State of the cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State getState() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State.UNRECOGNIZED + : result; + } + + public static final int SCAN_LISTENER_PORT_TCP_FIELD_NUMBER = 21; + private int scanListenerPortTcp_ = 0; + /** + * + * + *
+   * Output only. SCAN listener port - TCP
+   * 
+ * + * int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanListenerPortTcp. + */ + @java.lang.Override + public int getScanListenerPortTcp() { + return scanListenerPortTcp_; + } + + public static final int SCAN_LISTENER_PORT_TCP_SSL_FIELD_NUMBER = 22; + private int scanListenerPortTcpSsl_ = 0; + /** + * + * + *
+   * Output only. SCAN listener port - TLS
+   * 
+ * + * int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanListenerPortTcpSsl. + */ + @java.lang.Override + public int getScanListenerPortTcpSsl() { + return scanListenerPortTcpSsl_; + } + + public static final int DOMAIN_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + /** + * + * + *
+   * Output only. Parent DNS domain where SCAN DNS and hosts names are
+   * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Parent DNS domain where SCAN DNS and hosts names are
+   * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCAN_DNS_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object scanDns_ = ""; + /** + * + * + *
+   * Output only. SCAN DNS name.
+   * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanDns. + */ + @java.lang.Override + public java.lang.String getScanDns() { + java.lang.Object ref = scanDns_; + 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(); + scanDns_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. SCAN DNS name.
+   * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scanDns. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScanDnsBytes() { + java.lang.Object ref = scanDns_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scanDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + * + * + *
+   * Output only. host name without domain.
+   * format: "<hostname_prefix>-" with some suffix.
+   * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+   * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. host name without domain.
+   * format: "<hostname_prefix>-" with some suffix.
+   * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+   * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CPU_CORE_COUNT_FIELD_NUMBER = 26; + private int cpuCoreCount_ = 0; + /** + * + * + *
+   * Required. Number of enabled CPU cores.
+   * 
+ * + * int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cpuCoreCount. + */ + @java.lang.Override + public int getCpuCoreCount() { + return cpuCoreCount_; + } + + public static final int SYSTEM_VERSION_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private volatile java.lang.Object systemVersion_ = ""; + /** + * + * + *
+   * Output only. Operating system version of the image.
+   * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemVersion. + */ + @java.lang.Override + public java.lang.String getSystemVersion() { + java.lang.Object ref = systemVersion_; + 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(); + systemVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Operating system version of the image.
+   * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for systemVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSystemVersionBytes() { + java.lang.Object ref = systemVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCAN_IP_IDS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scanIpIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scanIpIds. + */ + public com.google.protobuf.ProtocolStringList getScanIpIdsList() { + return scanIpIds_; + } + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scanIpIds. + */ + public int getScanIpIdsCount() { + return scanIpIds_.size(); + } + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scanIpIds at the given index. + */ + public java.lang.String getScanIpIds(int index) { + return scanIpIds_.get(index); + } + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scanIpIds at the given index. + */ + public com.google.protobuf.ByteString getScanIpIdsBytes(int index) { + return scanIpIds_.getByteString(index); + } + + public static final int SCAN_DNS_RECORD_ID_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private volatile java.lang.Object scanDnsRecordId_ = ""; + /** + * + * + *
+   * Output only. OCID of scan DNS record.
+   * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanDnsRecordId. + */ + @java.lang.Override + public java.lang.String getScanDnsRecordId() { + java.lang.Object ref = scanDnsRecordId_; + 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(); + scanDnsRecordId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCID of scan DNS record.
+   * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scanDnsRecordId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScanDnsRecordIdBytes() { + java.lang.Object ref = scanDnsRecordId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scanDnsRecordId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCI_URL_FIELD_NUMBER = 30; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUrl_ = ""; + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + @java.lang.Override + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + 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(); + ociUrl_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_SERVER_OCIDS_FIELD_NUMBER = 31; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dbServerOcids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dbServerOcids. + */ + public com.google.protobuf.ProtocolStringList getDbServerOcidsList() { + return dbServerOcids_; + } + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dbServerOcids. + */ + public int getDbServerOcidsCount() { + return dbServerOcids_.size(); + } + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dbServerOcids at the given index. + */ + public java.lang.String getDbServerOcids(int index) { + return dbServerOcids_.get(index); + } + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dbServerOcids at the given index. + */ + public com.google.protobuf.ByteString getDbServerOcidsBytes(int index) { + return dbServerOcids_.getByteString(index); + } + + public static final int COMPARTMENT_ID_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private volatile java.lang.Object compartmentId_ = ""; + /** + * + * + *
+   * Output only. Compartment ID of cluster.
+   * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compartmentId. + */ + @java.lang.Override + public java.lang.String getCompartmentId() { + java.lang.Object ref = compartmentId_; + 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(); + compartmentId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Compartment ID of cluster.
+   * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for compartmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompartmentIdBytes() { + java.lang.Object ref = compartmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compartmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DNS_LISTENER_IP_FIELD_NUMBER = 35; + + @SuppressWarnings("serial") + private volatile java.lang.Object dnsListenerIp_ = ""; + /** + * + * + *
+   * Output only. DNS listener IP.
+   * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dnsListenerIp. + */ + @java.lang.Override + public java.lang.String getDnsListenerIp() { + java.lang.Object ref = dnsListenerIp_; + 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(); + dnsListenerIp_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. DNS listener IP.
+   * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dnsListenerIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDnsListenerIpBytes() { + java.lang.Object ref = dnsListenerIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsListenerIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAME_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterName_ = ""; + /** + * + * + *
+   * Optional. OCI Cluster name.
+   * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterName. + */ + @java.lang.Override + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + 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(); + clusterName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. OCI Cluster name.
+   * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = 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(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (licenseType_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType + .LICENSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, licenseType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(giVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, giVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getTimeZone()); + } + for (int i = 0; i < sshPublicKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sshPublicKeys_.getRaw(i)); + } + if (nodeCount_ != 0) { + output.writeInt32(6, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, shape_); + } + if (java.lang.Float.floatToRawIntBits(ocpuCount_) != 0) { + output.writeFloat(8, ocpuCount_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(9, memorySizeGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + output.writeInt32(10, dbNodeStorageSizeGb_); + } + if (storageSizeGb_ != 0) { + output.writeInt32(11, storageSizeGb_); + } + if (java.lang.Double.doubleToRawLongBits(dataStorageSizeTb_) != 0) { + output.writeDouble(12, dataStorageSizeTb_); + } + if (diskRedundancy_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy + .DISK_REDUNDANCY_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, diskRedundancy_); + } + if (sparseDiskgroupEnabled_ != false) { + output.writeBool(14, sparseDiskgroupEnabled_); + } + if (localBackupEnabled_ != false) { + output.writeBool(15, localBackupEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostnamePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, hostnamePrefix_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(19, getDiagnosticsDataCollectionOptions()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(20, state_); + } + if (scanListenerPortTcp_ != 0) { + output.writeInt32(21, scanListenerPortTcp_); + } + if (scanListenerPortTcpSsl_ != 0) { + output.writeInt32(22, scanListenerPortTcpSsl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, domain_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scanDns_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, scanDns_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, hostname_); + } + if (cpuCoreCount_ != 0) { + output.writeInt32(26, cpuCoreCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 27, systemVersion_); + } + for (int i = 0; i < scanIpIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, scanIpIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scanDnsRecordId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, scanDnsRecordId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, ociUrl_); + } + for (int i = 0; i < dbServerOcids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 31, dbServerOcids_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compartmentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 32, compartmentId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsListenerIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 35, dnsListenerIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 36, clusterName_); + } + 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(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (licenseType_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType + .LICENSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, licenseType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(giVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, giVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTimeZone()); + } + { + int dataSize = 0; + for (int i = 0; i < sshPublicKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(sshPublicKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getSshPublicKeysList().size(); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, shape_); + } + if (java.lang.Float.floatToRawIntBits(ocpuCount_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, ocpuCount_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, memorySizeGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, dbNodeStorageSizeGb_); + } + if (storageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, storageSizeGb_); + } + if (java.lang.Double.doubleToRawLongBits(dataStorageSizeTb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, dataStorageSizeTb_); + } + if (diskRedundancy_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy + .DISK_REDUNDANCY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, diskRedundancy_); + } + if (sparseDiskgroupEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, sparseDiskgroupEnabled_); + } + if (localBackupEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, localBackupEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostnamePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, hostnamePrefix_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, getDiagnosticsDataCollectionOptions()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, state_); + } + if (scanListenerPortTcp_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, scanListenerPortTcp_); + } + if (scanListenerPortTcpSsl_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, scanListenerPortTcpSsl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, domain_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scanDns_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, scanDns_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, hostname_); + } + if (cpuCoreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(26, cpuCoreCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, systemVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < scanIpIds_.size(); i++) { + dataSize += computeStringSizeNoTag(scanIpIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getScanIpIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scanDnsRecordId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, scanDnsRecordId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, ociUrl_); + } + { + int dataSize = 0; + for (int i = 0; i < dbServerOcids_.size(); i++) { + dataSize += computeStringSizeNoTag(dbServerOcids_.getRaw(i)); + } + size += dataSize; + size += 2 * getDbServerOcidsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compartmentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, compartmentId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsListenerIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, dnsListenerIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, clusterName_); + } + 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.oracledatabase.v1.CloudVmClusterProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties other = + (com.google.cloud.oracledatabase.v1.CloudVmClusterProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (licenseType_ != other.licenseType_) return false; + if (!getGiVersion().equals(other.getGiVersion())) return false; + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (!getSshPublicKeysList().equals(other.getSshPublicKeysList())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (!getShape().equals(other.getShape())) return false; + if (java.lang.Float.floatToIntBits(getOcpuCount()) + != java.lang.Float.floatToIntBits(other.getOcpuCount())) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (getDbNodeStorageSizeGb() != other.getDbNodeStorageSizeGb()) return false; + if (getStorageSizeGb() != other.getStorageSizeGb()) return false; + if (java.lang.Double.doubleToLongBits(getDataStorageSizeTb()) + != java.lang.Double.doubleToLongBits(other.getDataStorageSizeTb())) return false; + if (diskRedundancy_ != other.diskRedundancy_) return false; + if (getSparseDiskgroupEnabled() != other.getSparseDiskgroupEnabled()) return false; + if (getLocalBackupEnabled() != other.getLocalBackupEnabled()) return false; + if (!getHostnamePrefix().equals(other.getHostnamePrefix())) return false; + if (hasDiagnosticsDataCollectionOptions() != other.hasDiagnosticsDataCollectionOptions()) + return false; + if (hasDiagnosticsDataCollectionOptions()) { + if (!getDiagnosticsDataCollectionOptions() + .equals(other.getDiagnosticsDataCollectionOptions())) return false; + } + if (state_ != other.state_) return false; + if (getScanListenerPortTcp() != other.getScanListenerPortTcp()) return false; + if (getScanListenerPortTcpSsl() != other.getScanListenerPortTcpSsl()) return false; + if (!getDomain().equals(other.getDomain())) return false; + if (!getScanDns().equals(other.getScanDns())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (getCpuCoreCount() != other.getCpuCoreCount()) return false; + if (!getSystemVersion().equals(other.getSystemVersion())) return false; + if (!getScanIpIdsList().equals(other.getScanIpIdsList())) return false; + if (!getScanDnsRecordId().equals(other.getScanDnsRecordId())) return false; + if (!getOciUrl().equals(other.getOciUrl())) return false; + if (!getDbServerOcidsList().equals(other.getDbServerOcidsList())) return false; + if (!getCompartmentId().equals(other.getCompartmentId())) return false; + if (!getDnsListenerIp().equals(other.getDnsListenerIp())) return false; + if (!getClusterName().equals(other.getClusterName())) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + LICENSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + licenseType_; + hash = (37 * hash) + GI_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getGiVersion().hashCode(); + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + if (getSshPublicKeysCount() > 0) { + hash = (37 * hash) + SSH_PUBLIC_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSshPublicKeysList().hashCode(); + } + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + hash = (37 * hash) + OCPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getOcpuCount()); + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDbNodeStorageSizeGb(); + hash = (37 * hash) + STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getStorageSizeGb(); + hash = (37 * hash) + DATA_STORAGE_SIZE_TB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDataStorageSizeTb())); + hash = (37 * hash) + DISK_REDUNDANCY_FIELD_NUMBER; + hash = (53 * hash) + diskRedundancy_; + hash = (37 * hash) + SPARSE_DISKGROUP_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSparseDiskgroupEnabled()); + hash = (37 * hash) + LOCAL_BACKUP_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocalBackupEnabled()); + hash = (37 * hash) + HOSTNAME_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getHostnamePrefix().hashCode(); + if (hasDiagnosticsDataCollectionOptions()) { + hash = (37 * hash) + DIAGNOSTICS_DATA_COLLECTION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDiagnosticsDataCollectionOptions().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + SCAN_LISTENER_PORT_TCP_FIELD_NUMBER; + hash = (53 * hash) + getScanListenerPortTcp(); + hash = (37 * hash) + SCAN_LISTENER_PORT_TCP_SSL_FIELD_NUMBER; + hash = (53 * hash) + getScanListenerPortTcpSsl(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + SCAN_DNS_FIELD_NUMBER; + hash = (53 * hash) + getScanDns().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + CPU_CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCpuCoreCount(); + hash = (37 * hash) + SYSTEM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSystemVersion().hashCode(); + if (getScanIpIdsCount() > 0) { + hash = (37 * hash) + SCAN_IP_IDS_FIELD_NUMBER; + hash = (53 * hash) + getScanIpIdsList().hashCode(); + } + hash = (37 * hash) + SCAN_DNS_RECORD_ID_FIELD_NUMBER; + hash = (53 * hash) + getScanDnsRecordId().hashCode(); + hash = (37 * hash) + OCI_URL_FIELD_NUMBER; + hash = (53 * hash) + getOciUrl().hashCode(); + if (getDbServerOcidsCount() > 0) { + hash = (37 * hash) + DB_SERVER_OCIDS_FIELD_NUMBER; + hash = (53 * hash) + getDbServerOcidsList().hashCode(); + } + hash = (37 * hash) + COMPARTMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCompartmentId().hashCode(); + hash = (37 * hash) + DNS_LISTENER_IP_FIELD_NUMBER; + hash = (53 * hash) + getDnsListenerIp().hashCode(); + hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties 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.oracledatabase.v1.CloudVmClusterProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties 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.oracledatabase.v1.CloudVmClusterProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties 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.oracledatabase.v1.CloudVmClusterProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties 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.oracledatabase.v1.CloudVmClusterProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties 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.oracledatabase.v1.CloudVmClusterProperties 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; + } + /** + * + * + *
+   * Various properties and settings associated with Exadata VM cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CloudVmClusterProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CloudVmClusterProperties) + com.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.class, + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeZoneFieldBuilder(); + getDiagnosticsDataCollectionOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ocid_ = ""; + licenseType_ = 0; + giVersion_ = ""; + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nodeCount_ = 0; + shape_ = ""; + ocpuCount_ = 0F; + memorySizeGb_ = 0; + dbNodeStorageSizeGb_ = 0; + storageSizeGb_ = 0; + dataStorageSizeTb_ = 0D; + diskRedundancy_ = 0; + sparseDiskgroupEnabled_ = false; + localBackupEnabled_ = false; + hostnamePrefix_ = ""; + diagnosticsDataCollectionOptions_ = null; + if (diagnosticsDataCollectionOptionsBuilder_ != null) { + diagnosticsDataCollectionOptionsBuilder_.dispose(); + diagnosticsDataCollectionOptionsBuilder_ = null; + } + state_ = 0; + scanListenerPortTcp_ = 0; + scanListenerPortTcpSsl_ = 0; + domain_ = ""; + scanDns_ = ""; + hostname_ = ""; + cpuCoreCount_ = 0; + systemVersion_ = ""; + scanIpIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + scanDnsRecordId_ = ""; + ociUrl_ = ""; + dbServerOcids_ = com.google.protobuf.LazyStringArrayList.emptyList(); + compartmentId_ = ""; + dnsListenerIp_ = ""; + clusterName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties build() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties buildPartial() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties result = + new com.google.cloud.oracledatabase.v1.CloudVmClusterProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CloudVmClusterProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseType_ = licenseType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.giVersion_ = giVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + sshPublicKeys_.makeImmutable(); + result.sshPublicKeys_ = sshPublicKeys_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.nodeCount_ = nodeCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.shape_ = shape_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ocpuCount_ = ocpuCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.memorySizeGb_ = memorySizeGb_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.dbNodeStorageSizeGb_ = dbNodeStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.storageSizeGb_ = storageSizeGb_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.dataStorageSizeTb_ = dataStorageSizeTb_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.diskRedundancy_ = diskRedundancy_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.sparseDiskgroupEnabled_ = sparseDiskgroupEnabled_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.localBackupEnabled_ = localBackupEnabled_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.hostnamePrefix_ = hostnamePrefix_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.diagnosticsDataCollectionOptions_ = + diagnosticsDataCollectionOptionsBuilder_ == null + ? diagnosticsDataCollectionOptions_ + : diagnosticsDataCollectionOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.scanListenerPortTcp_ = scanListenerPortTcp_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.scanListenerPortTcpSsl_ = scanListenerPortTcpSsl_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.scanDns_ = scanDns_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.cpuCoreCount_ = cpuCoreCount_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.systemVersion_ = systemVersion_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + scanIpIds_.makeImmutable(); + result.scanIpIds_ = scanIpIds_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.scanDnsRecordId_ = scanDnsRecordId_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.ociUrl_ = ociUrl_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + dbServerOcids_.makeImmutable(); + result.dbServerOcids_ = dbServerOcids_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.compartmentId_ = compartmentId_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.dnsListenerIp_ = dnsListenerIp_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.clusterName_ = clusterName_; + } + 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.oracledatabase.v1.CloudVmClusterProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CloudVmClusterProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudVmClusterProperties other) { + if (other == com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDefaultInstance()) + return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.licenseType_ != 0) { + setLicenseTypeValue(other.getLicenseTypeValue()); + } + if (!other.getGiVersion().isEmpty()) { + giVersion_ = other.giVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTimeZone()) { + mergeTimeZone(other.getTimeZone()); + } + if (!other.sshPublicKeys_.isEmpty()) { + if (sshPublicKeys_.isEmpty()) { + sshPublicKeys_ = other.sshPublicKeys_; + bitField0_ |= 0x00000010; + } else { + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.addAll(other.sshPublicKeys_); + } + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getShape().isEmpty()) { + shape_ = other.shape_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getOcpuCount() != 0F) { + setOcpuCount(other.getOcpuCount()); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (other.getDbNodeStorageSizeGb() != 0) { + setDbNodeStorageSizeGb(other.getDbNodeStorageSizeGb()); + } + if (other.getStorageSizeGb() != 0) { + setStorageSizeGb(other.getStorageSizeGb()); + } + if (other.getDataStorageSizeTb() != 0D) { + setDataStorageSizeTb(other.getDataStorageSizeTb()); + } + if (other.diskRedundancy_ != 0) { + setDiskRedundancyValue(other.getDiskRedundancyValue()); + } + if (other.getSparseDiskgroupEnabled() != false) { + setSparseDiskgroupEnabled(other.getSparseDiskgroupEnabled()); + } + if (other.getLocalBackupEnabled() != false) { + setLocalBackupEnabled(other.getLocalBackupEnabled()); + } + if (!other.getHostnamePrefix().isEmpty()) { + hostnamePrefix_ = other.hostnamePrefix_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasDiagnosticsDataCollectionOptions()) { + mergeDiagnosticsDataCollectionOptions(other.getDiagnosticsDataCollectionOptions()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getScanListenerPortTcp() != 0) { + setScanListenerPortTcp(other.getScanListenerPortTcp()); + } + if (other.getScanListenerPortTcpSsl() != 0) { + setScanListenerPortTcpSsl(other.getScanListenerPortTcpSsl()); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (!other.getScanDns().isEmpty()) { + scanDns_ = other.scanDns_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (other.getCpuCoreCount() != 0) { + setCpuCoreCount(other.getCpuCoreCount()); + } + if (!other.getSystemVersion().isEmpty()) { + systemVersion_ = other.systemVersion_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (!other.scanIpIds_.isEmpty()) { + if (scanIpIds_.isEmpty()) { + scanIpIds_ = other.scanIpIds_; + bitField0_ |= 0x02000000; + } else { + ensureScanIpIdsIsMutable(); + scanIpIds_.addAll(other.scanIpIds_); + } + onChanged(); + } + if (!other.getScanDnsRecordId().isEmpty()) { + scanDnsRecordId_ = other.scanDnsRecordId_; + bitField0_ |= 0x04000000; + onChanged(); + } + if (!other.getOciUrl().isEmpty()) { + ociUrl_ = other.ociUrl_; + bitField0_ |= 0x08000000; + onChanged(); + } + if (!other.dbServerOcids_.isEmpty()) { + if (dbServerOcids_.isEmpty()) { + dbServerOcids_ = other.dbServerOcids_; + bitField0_ |= 0x10000000; + } else { + ensureDbServerOcidsIsMutable(); + dbServerOcids_.addAll(other.dbServerOcids_); + } + onChanged(); + } + if (!other.getCompartmentId().isEmpty()) { + compartmentId_ = other.compartmentId_; + bitField0_ |= 0x20000000; + onChanged(); + } + if (!other.getDnsListenerIp().isEmpty()) { + dnsListenerIp_ = other.dnsListenerIp_; + bitField0_ |= 0x40000000; + onChanged(); + } + if (!other.getClusterName().isEmpty()) { + clusterName_ = other.clusterName_; + bitField0_ |= 0x80000000; + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + licenseType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + giVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(s); + break; + } // case 42 + case 48: + { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + shape_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 69: + { + ocpuCount_ = input.readFloat(); + bitField0_ |= 0x00000080; + break; + } // case 69 + case 72: + { + memorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + dbNodeStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + storageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 97: + { + dataStorageSizeTb_ = input.readDouble(); + bitField0_ |= 0x00000800; + break; + } // case 97 + case 104: + { + diskRedundancy_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: + { + sparseDiskgroupEnabled_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: + { + localBackupEnabled_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 130: + { + hostnamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 154: + { + input.readMessage( + getDiagnosticsDataCollectionOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 154 + case 160: + { + state_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 160 + case 168: + { + scanListenerPortTcp_ = input.readInt32(); + bitField0_ |= 0x00040000; + break; + } // case 168 + case 176: + { + scanListenerPortTcpSsl_ = input.readInt32(); + bitField0_ |= 0x00080000; + break; + } // case 176 + case 186: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 186 + case 194: + { + scanDns_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 194 + case 202: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 202 + case 208: + { + cpuCoreCount_ = input.readInt32(); + bitField0_ |= 0x00800000; + break; + } // case 208 + case 218: + { + systemVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x01000000; + break; + } // case 218 + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScanIpIdsIsMutable(); + scanIpIds_.add(s); + break; + } // case 226 + case 234: + { + scanDnsRecordId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 234 + case 242: + { + ociUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 242 + case 250: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDbServerOcidsIsMutable(); + dbServerOcids_.add(s); + break; + } // case 250 + case 258: + { + compartmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x20000000; + break; + } // case 258 + case 282: + { + dnsListenerIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x40000000; + break; + } // case 282 + case 290: + { + clusterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x80000000; + break; + } // case 290 + 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 ocid_ = ""; + /** + * + * + *
+     * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int licenseType_ = 0; + /** + * + * + *
+     * Required. License type of VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + /** + * + * + *
+     * Required. License type of VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseTypeValue(int value) { + licenseType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. License type of VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType + getLicenseType() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType.forNumber( + licenseType_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. License type of VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseType( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + licenseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. License type of VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseType() { + bitField0_ = (bitField0_ & ~0x00000002); + licenseType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object giVersion_ = ""; + /** + * + * + *
+     * Optional. Grid Infrastructure Version.
+     * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The giVersion. + */ + public java.lang.String getGiVersion() { + java.lang.Object ref = giVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + giVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Grid Infrastructure Version.
+     * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for giVersion. + */ + public com.google.protobuf.ByteString getGiVersionBytes() { + java.lang.Object ref = giVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + giVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Grid Infrastructure Version.
+     * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The giVersion to set. + * @return This builder for chaining. + */ + public Builder setGiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + giVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Grid Infrastructure Version.
+     * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGiVersion() { + giVersion_ = getDefaultInstance().getGiVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Grid Infrastructure Version.
+     * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for giVersion to set. + * @return This builder for chaining. + */ + public Builder setGiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + giVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.type.TimeZone timeZone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } else { + return timeZoneBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + } else { + timeZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeZone_ = builderForValue.build(); + } else { + timeZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && timeZone_ != null + && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { + getTimeZoneBuilder().mergeFrom(value); + } else { + timeZone_ = value; + } + } else { + timeZoneBuilder_.mergeFrom(value); + } + if (timeZone_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTimeZone() { + bitField0_ = (bitField0_ & ~0x00000008); + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTimeZoneFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeZoneBuilder_ != null) { + return timeZoneBuilder_.getMessageOrBuilder(); + } else { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + } + /** + * + * + *
+     * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+     * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + getTimeZone(), getParentForChildren(), isClean()); + timeZone_ = null; + } + return timeZoneBuilder_; + } + + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSshPublicKeysIsMutable() { + if (!sshPublicKeys_.isModifiable()) { + sshPublicKeys_ = new com.google.protobuf.LazyStringArrayList(sshPublicKeys_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList getSshPublicKeysList() { + sshPublicKeys_.makeImmutable(); + return sshPublicKeys_; + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The sshPublicKeys to set. + * @return This builder for chaining. + */ + public Builder setSshPublicKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addAllSshPublicKeys(java.lang.Iterable values) { + ensureSshPublicKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sshPublicKeys_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSshPublicKeys() { + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSH public keys to be stored with cluster.
+     * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int nodeCount_; + /** + * + * + *
+     * Optional. Number of database servers.
+     * 
+ * + * int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Optional. Number of database servers.
+     * 
+ * + * int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of database servers.
+     * 
+ * + * int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + bitField0_ = (bitField0_ & ~0x00000020); + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object shape_ = ""; + /** + * + * + *
+     * Output only. Shape of VM Cluster.
+     * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shape. + */ + public java.lang.String getShape() { + java.lang.Object ref = shape_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shape_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Shape of VM Cluster.
+     * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for shape. + */ + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Shape of VM Cluster.
+     * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The shape to set. + * @return This builder for chaining. + */ + public Builder setShape(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Shape of VM Cluster.
+     * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearShape() { + shape_ = getDefaultInstance().getShape(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Shape of VM Cluster.
+     * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for shape to set. + * @return This builder for chaining. + */ + public Builder setShapeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shape_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private float ocpuCount_; + /** + * + * + *
+     * Optional. OCPU count per VM. Minimum is 0.1.
+     * 
+ * + * float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + @java.lang.Override + public float getOcpuCount() { + return ocpuCount_; + } + /** + * + * + *
+     * Optional. OCPU count per VM. Minimum is 0.1.
+     * 
+ * + * float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ocpuCount to set. + * @return This builder for chaining. + */ + public Builder setOcpuCount(float value) { + + ocpuCount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCPU count per VM. Minimum is 0.1.
+     * 
+ * + * float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOcpuCount() { + bitField0_ = (bitField0_ & ~0x00000080); + ocpuCount_ = 0F; + onChanged(); + return this; + } + + private int memorySizeGb_; + /** + * + * + *
+     * Optional. Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + /** + * + * + *
+     * Optional. Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The memorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00000100); + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private int dbNodeStorageSizeGb_; + /** + * + * + *
+     * Optional. Local storage per VM.
+     * 
+ * + * int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + /** + * + * + *
+     * Optional. Local storage per VM.
+     * 
+ * + * int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbNodeStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDbNodeStorageSizeGb(int value) { + + dbNodeStorageSizeGb_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Local storage per VM.
+     * 
+ * + * int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbNodeStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000200); + dbNodeStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int storageSizeGb_; + /** + * + * + *
+     * Output only. The storage allocation for the disk group, in gigabytes (GB).
+     * 
+ * + * int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageSizeGb. + */ + @java.lang.Override + public int getStorageSizeGb() { + return storageSizeGb_; + } + /** + * + * + *
+     * Output only. The storage allocation for the disk group, in gigabytes (GB).
+     * 
+ * + * int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The storageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setStorageSizeGb(int value) { + + storageSizeGb_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The storage allocation for the disk group, in gigabytes (GB).
+     * 
+ * + * int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000400); + storageSizeGb_ = 0; + onChanged(); + return this; + } + + private double dataStorageSizeTb_; + /** + * + * + *
+     * Optional. The data disk group size to be allocated in TBs.
+     * 
+ * + * double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeTb. + */ + @java.lang.Override + public double getDataStorageSizeTb() { + return dataStorageSizeTb_; + } + /** + * + * + *
+     * Optional. The data disk group size to be allocated in TBs.
+     * 
+ * + * double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataStorageSizeTb to set. + * @return This builder for chaining. + */ + public Builder setDataStorageSizeTb(double value) { + + dataStorageSizeTb_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The data disk group size to be allocated in TBs.
+     * 
+ * + * double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageSizeTb() { + bitField0_ = (bitField0_ & ~0x00000800); + dataStorageSizeTb_ = 0D; + onChanged(); + return this; + } + + private int diskRedundancy_ = 0; + /** + * + * + *
+     * Optional. The type of redundancy.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskRedundancy. + */ + @java.lang.Override + public int getDiskRedundancyValue() { + return diskRedundancy_; + } + /** + * + * + *
+     * Optional. The type of redundancy.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for diskRedundancy to set. + * @return This builder for chaining. + */ + public Builder setDiskRedundancyValue(int value) { + diskRedundancy_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of redundancy.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskRedundancy. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy + getDiskRedundancy() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy.forNumber( + diskRedundancy_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The type of redundancy.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The diskRedundancy to set. + * @return This builder for chaining. + */ + public Builder setDiskRedundancy( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + diskRedundancy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of redundancy.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskRedundancy() { + bitField0_ = (bitField0_ & ~0x00001000); + diskRedundancy_ = 0; + onChanged(); + return this; + } + + private boolean sparseDiskgroupEnabled_; + /** + * + * + *
+     * Optional. Use exadata sparse snapshots.
+     * 
+ * + * bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sparseDiskgroupEnabled. + */ + @java.lang.Override + public boolean getSparseDiskgroupEnabled() { + return sparseDiskgroupEnabled_; + } + /** + * + * + *
+     * Optional. Use exadata sparse snapshots.
+     * 
+ * + * bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sparseDiskgroupEnabled to set. + * @return This builder for chaining. + */ + public Builder setSparseDiskgroupEnabled(boolean value) { + + sparseDiskgroupEnabled_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Use exadata sparse snapshots.
+     * 
+ * + * bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSparseDiskgroupEnabled() { + bitField0_ = (bitField0_ & ~0x00002000); + sparseDiskgroupEnabled_ = false; + onChanged(); + return this; + } + + private boolean localBackupEnabled_; + /** + * + * + *
+     * Optional. Use local backup.
+     * 
+ * + * bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localBackupEnabled. + */ + @java.lang.Override + public boolean getLocalBackupEnabled() { + return localBackupEnabled_; + } + /** + * + * + *
+     * Optional. Use local backup.
+     * 
+ * + * bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The localBackupEnabled to set. + * @return This builder for chaining. + */ + public Builder setLocalBackupEnabled(boolean value) { + + localBackupEnabled_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Use local backup.
+     * 
+ * + * bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocalBackupEnabled() { + bitField0_ = (bitField0_ & ~0x00004000); + localBackupEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object hostnamePrefix_ = ""; + /** + * + * + *
+     * Optional. Prefix for VM cluster host names.
+     * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostnamePrefix. + */ + public java.lang.String getHostnamePrefix() { + java.lang.Object ref = hostnamePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostnamePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Prefix for VM cluster host names.
+     * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostnamePrefix. + */ + public com.google.protobuf.ByteString getHostnamePrefixBytes() { + java.lang.Object ref = hostnamePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostnamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Prefix for VM cluster host names.
+     * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hostnamePrefix to set. + * @return This builder for chaining. + */ + public Builder setHostnamePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostnamePrefix_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Prefix for VM cluster host names.
+     * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHostnamePrefix() { + hostnamePrefix_ = getDefaultInstance().getHostnamePrefix(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Prefix for VM cluster host names.
+     * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hostnamePrefix to set. + * @return This builder for chaining. + */ + public Builder setHostnamePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostnamePrefix_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DataCollectionOptions + diagnosticsDataCollectionOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptions, + com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder> + diagnosticsDataCollectionOptionsBuilder_; + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diagnosticsDataCollectionOptions field is set. + */ + public boolean hasDiagnosticsDataCollectionOptions() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diagnosticsDataCollectionOptions. + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptions + getDiagnosticsDataCollectionOptions() { + if (diagnosticsDataCollectionOptionsBuilder_ == null) { + return diagnosticsDataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance() + : diagnosticsDataCollectionOptions_; + } else { + return diagnosticsDataCollectionOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDiagnosticsDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptions value) { + if (diagnosticsDataCollectionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + diagnosticsDataCollectionOptions_ = value; + } else { + diagnosticsDataCollectionOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDiagnosticsDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder builderForValue) { + if (diagnosticsDataCollectionOptionsBuilder_ == null) { + diagnosticsDataCollectionOptions_ = builderForValue.build(); + } else { + diagnosticsDataCollectionOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDiagnosticsDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptions value) { + if (diagnosticsDataCollectionOptionsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && diagnosticsDataCollectionOptions_ != null + && diagnosticsDataCollectionOptions_ + != com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance()) { + getDiagnosticsDataCollectionOptionsBuilder().mergeFrom(value); + } else { + diagnosticsDataCollectionOptions_ = value; + } + } else { + diagnosticsDataCollectionOptionsBuilder_.mergeFrom(value); + } + if (diagnosticsDataCollectionOptions_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDiagnosticsDataCollectionOptions() { + bitField0_ = (bitField0_ & ~0x00010000); + diagnosticsDataCollectionOptions_ = null; + if (diagnosticsDataCollectionOptionsBuilder_ != null) { + diagnosticsDataCollectionOptionsBuilder_.dispose(); + diagnosticsDataCollectionOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder + getDiagnosticsDataCollectionOptionsBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getDiagnosticsDataCollectionOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder + getDiagnosticsDataCollectionOptionsOrBuilder() { + if (diagnosticsDataCollectionOptionsBuilder_ != null) { + return diagnosticsDataCollectionOptionsBuilder_.getMessageOrBuilder(); + } else { + return diagnosticsDataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance() + : diagnosticsDataCollectionOptions_; + } + } + /** + * + * + *
+     * Optional. Data collection options for diagnostics.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptions, + com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder> + getDiagnosticsDataCollectionOptionsFieldBuilder() { + if (diagnosticsDataCollectionOptionsBuilder_ == null) { + diagnosticsDataCollectionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptions, + com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder>( + getDiagnosticsDataCollectionOptions(), getParentForChildren(), isClean()); + diagnosticsDataCollectionOptions_ = null; + } + return diagnosticsDataCollectionOptionsBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.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. State of the cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.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_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State getState() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00020000); + state_ = 0; + onChanged(); + return this; + } + + private int scanListenerPortTcp_; + /** + * + * + *
+     * Output only. SCAN listener port - TCP
+     * 
+ * + * int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanListenerPortTcp. + */ + @java.lang.Override + public int getScanListenerPortTcp() { + return scanListenerPortTcp_; + } + /** + * + * + *
+     * Output only. SCAN listener port - TCP
+     * 
+ * + * int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scanListenerPortTcp to set. + * @return This builder for chaining. + */ + public Builder setScanListenerPortTcp(int value) { + + scanListenerPortTcp_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SCAN listener port - TCP
+     * 
+ * + * int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScanListenerPortTcp() { + bitField0_ = (bitField0_ & ~0x00040000); + scanListenerPortTcp_ = 0; + onChanged(); + return this; + } + + private int scanListenerPortTcpSsl_; + /** + * + * + *
+     * Output only. SCAN listener port - TLS
+     * 
+ * + * int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanListenerPortTcpSsl. + */ + @java.lang.Override + public int getScanListenerPortTcpSsl() { + return scanListenerPortTcpSsl_; + } + /** + * + * + *
+     * Output only. SCAN listener port - TLS
+     * 
+ * + * int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The scanListenerPortTcpSsl to set. + * @return This builder for chaining. + */ + public Builder setScanListenerPortTcpSsl(int value) { + + scanListenerPortTcpSsl_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SCAN listener port - TLS
+     * 
+ * + * int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearScanListenerPortTcpSsl() { + bitField0_ = (bitField0_ & ~0x00080000); + scanListenerPortTcpSsl_ = 0; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + * + * + *
+     * Output only. Parent DNS domain where SCAN DNS and hosts names are
+     * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Parent DNS domain where SCAN DNS and hosts names are
+     * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Parent DNS domain where SCAN DNS and hosts names are
+     * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Parent DNS domain where SCAN DNS and hosts names are
+     * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Parent DNS domain where SCAN DNS and hosts names are
+     * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private java.lang.Object scanDns_ = ""; + /** + * + * + *
+     * Output only. SCAN DNS name.
+     * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanDns. + */ + public java.lang.String getScanDns() { + java.lang.Object ref = scanDns_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scanDns_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. SCAN DNS name.
+     * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scanDns. + */ + public com.google.protobuf.ByteString getScanDnsBytes() { + java.lang.Object ref = scanDns_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scanDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. SCAN DNS name.
+     * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scanDns to set. + * @return This builder for chaining. + */ + public Builder setScanDns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scanDns_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SCAN DNS name.
+     * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScanDns() { + scanDns_ = getDefaultInstance().getScanDns(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SCAN DNS name.
+     * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+     * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for scanDns to set. + * @return This builder for chaining. + */ + public Builder setScanDnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scanDns_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * Output only. host name without domain.
+     * format: "<hostname_prefix>-" with some suffix.
+     * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+     * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. host name without domain.
+     * format: "<hostname_prefix>-" with some suffix.
+     * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+     * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. host name without domain.
+     * format: "<hostname_prefix>-" with some suffix.
+     * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+     * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. host name without domain.
+     * format: "<hostname_prefix>-" with some suffix.
+     * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+     * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. host name without domain.
+     * format: "<hostname_prefix>-" with some suffix.
+     * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+     * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private int cpuCoreCount_; + /** + * + * + *
+     * Required. Number of enabled CPU cores.
+     * 
+ * + * int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cpuCoreCount. + */ + @java.lang.Override + public int getCpuCoreCount() { + return cpuCoreCount_; + } + /** + * + * + *
+     * Required. Number of enabled CPU cores.
+     * 
+ * + * int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cpuCoreCount to set. + * @return This builder for chaining. + */ + public Builder setCpuCoreCount(int value) { + + cpuCoreCount_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Number of enabled CPU cores.
+     * 
+ * + * int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCpuCoreCount() { + bitField0_ = (bitField0_ & ~0x00800000); + cpuCoreCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object systemVersion_ = ""; + /** + * + * + *
+     * Output only. Operating system version of the image.
+     * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemVersion. + */ + public java.lang.String getSystemVersion() { + java.lang.Object ref = systemVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Operating system version of the image.
+     * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for systemVersion. + */ + public com.google.protobuf.ByteString getSystemVersionBytes() { + java.lang.Object ref = systemVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Operating system version of the image.
+     * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The systemVersion to set. + * @return This builder for chaining. + */ + public Builder setSystemVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + systemVersion_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Operating system version of the image.
+     * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSystemVersion() { + systemVersion_ = getDefaultInstance().getSystemVersion(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Operating system version of the image.
+     * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for systemVersion to set. + * @return This builder for chaining. + */ + public Builder setSystemVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemVersion_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scanIpIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScanIpIdsIsMutable() { + if (!scanIpIds_.isModifiable()) { + scanIpIds_ = new com.google.protobuf.LazyStringArrayList(scanIpIds_); + } + bitField0_ |= 0x02000000; + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scanIpIds. + */ + public com.google.protobuf.ProtocolStringList getScanIpIdsList() { + scanIpIds_.makeImmutable(); + return scanIpIds_; + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scanIpIds. + */ + public int getScanIpIdsCount() { + return scanIpIds_.size(); + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scanIpIds at the given index. + */ + public java.lang.String getScanIpIds(int index) { + return scanIpIds_.get(index); + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scanIpIds at the given index. + */ + public com.google.protobuf.ByteString getScanIpIdsBytes(int index) { + return scanIpIds_.getByteString(index); + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The scanIpIds to set. + * @return This builder for chaining. + */ + public Builder setScanIpIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScanIpIdsIsMutable(); + scanIpIds_.set(index, value); + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scanIpIds to add. + * @return This builder for chaining. + */ + public Builder addScanIpIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScanIpIdsIsMutable(); + scanIpIds_.add(value); + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The scanIpIds to add. + * @return This builder for chaining. + */ + public Builder addAllScanIpIds(java.lang.Iterable values) { + ensureScanIpIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanIpIds_); + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScanIpIds() { + scanIpIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x02000000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCIDs of scan IPs.
+     * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the scanIpIds to add. + * @return This builder for chaining. + */ + public Builder addScanIpIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScanIpIdsIsMutable(); + scanIpIds_.add(value); + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + private java.lang.Object scanDnsRecordId_ = ""; + /** + * + * + *
+     * Output only. OCID of scan DNS record.
+     * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanDnsRecordId. + */ + public java.lang.String getScanDnsRecordId() { + java.lang.Object ref = scanDnsRecordId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scanDnsRecordId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCID of scan DNS record.
+     * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scanDnsRecordId. + */ + public com.google.protobuf.ByteString getScanDnsRecordIdBytes() { + java.lang.Object ref = scanDnsRecordId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scanDnsRecordId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCID of scan DNS record.
+     * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scanDnsRecordId to set. + * @return This builder for chaining. + */ + public Builder setScanDnsRecordId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scanDnsRecordId_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of scan DNS record.
+     * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScanDnsRecordId() { + scanDnsRecordId_ = getDefaultInstance().getScanDnsRecordId(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of scan DNS record.
+     * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for scanDnsRecordId to set. + * @return This builder for chaining. + */ + public Builder setScanDnsRecordIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scanDnsRecordId_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + private java.lang.Object ociUrl_ = ""; + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUrl_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deep link to the OCI console to view this resource.
+     * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUrl_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dbServerOcids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDbServerOcidsIsMutable() { + if (!dbServerOcids_.isModifiable()) { + dbServerOcids_ = new com.google.protobuf.LazyStringArrayList(dbServerOcids_); + } + bitField0_ |= 0x10000000; + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dbServerOcids. + */ + public com.google.protobuf.ProtocolStringList getDbServerOcidsList() { + dbServerOcids_.makeImmutable(); + return dbServerOcids_; + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dbServerOcids. + */ + public int getDbServerOcidsCount() { + return dbServerOcids_.size(); + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dbServerOcids at the given index. + */ + public java.lang.String getDbServerOcids(int index) { + return dbServerOcids_.get(index); + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dbServerOcids at the given index. + */ + public com.google.protobuf.ByteString getDbServerOcidsBytes(int index) { + return dbServerOcids_.getByteString(index); + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The dbServerOcids to set. + * @return This builder for chaining. + */ + public Builder setDbServerOcids(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbServerOcidsIsMutable(); + dbServerOcids_.set(index, value); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbServerOcids to add. + * @return This builder for chaining. + */ + public Builder addDbServerOcids(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbServerOcidsIsMutable(); + dbServerOcids_.add(value); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The dbServerOcids to add. + * @return This builder for chaining. + */ + public Builder addAllDbServerOcids(java.lang.Iterable values) { + ensureDbServerOcidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbServerOcids_); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbServerOcids() { + dbServerOcids_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x10000000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCID of database servers.
+     * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the dbServerOcids to add. + * @return This builder for chaining. + */ + public Builder addDbServerOcidsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDbServerOcidsIsMutable(); + dbServerOcids_.add(value); + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + private java.lang.Object compartmentId_ = ""; + /** + * + * + *
+     * Output only. Compartment ID of cluster.
+     * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compartmentId. + */ + public java.lang.String getCompartmentId() { + java.lang.Object ref = compartmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compartmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Compartment ID of cluster.
+     * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for compartmentId. + */ + public com.google.protobuf.ByteString getCompartmentIdBytes() { + java.lang.Object ref = compartmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compartmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Compartment ID of cluster.
+     * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The compartmentId to set. + * @return This builder for chaining. + */ + public Builder setCompartmentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + compartmentId_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Compartment ID of cluster.
+     * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCompartmentId() { + compartmentId_ = getDefaultInstance().getCompartmentId(); + bitField0_ = (bitField0_ & ~0x20000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Compartment ID of cluster.
+     * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for compartmentId to set. + * @return This builder for chaining. + */ + public Builder setCompartmentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + compartmentId_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + + private java.lang.Object dnsListenerIp_ = ""; + /** + * + * + *
+     * Output only. DNS listener IP.
+     * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dnsListenerIp. + */ + public java.lang.String getDnsListenerIp() { + java.lang.Object ref = dnsListenerIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dnsListenerIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. DNS listener IP.
+     * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dnsListenerIp. + */ + public com.google.protobuf.ByteString getDnsListenerIpBytes() { + java.lang.Object ref = dnsListenerIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsListenerIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. DNS listener IP.
+     * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dnsListenerIp to set. + * @return This builder for chaining. + */ + public Builder setDnsListenerIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dnsListenerIp_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DNS listener IP.
+     * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDnsListenerIp() { + dnsListenerIp_ = getDefaultInstance().getDnsListenerIp(); + bitField0_ = (bitField0_ & ~0x40000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DNS listener IP.
+     * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dnsListenerIp to set. + * @return This builder for chaining. + */ + public Builder setDnsListenerIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dnsListenerIp_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + private java.lang.Object clusterName_ = ""; + /** + * + * + *
+     * Optional. OCI Cluster name.
+     * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterName. + */ + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. OCI Cluster name.
+     * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterName. + */ + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. OCI Cluster name.
+     * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterName_ = value; + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCI Cluster name.
+     * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterName() { + clusterName_ = getDefaultInstance().getClusterName(); + bitField0_ = (bitField0_ & ~0x80000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCI Cluster name.
+     * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; + bitField0_ |= 0x80000000; + 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.oracledatabase.v1.CloudVmClusterProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties) + private static final com.google.cloud.oracledatabase.v1.CloudVmClusterProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CloudVmClusterProperties(); + } + + public static com.google.cloud.oracledatabase.v1.CloudVmClusterProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudVmClusterProperties 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.oracledatabase.v1.CloudVmClusterProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java new file mode 100644 index 000000000000..9344ed56b92b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java @@ -0,0 +1,820 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CloudVmClusterPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CloudVmClusterProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + /** + * + * + *
+   * Output only. Oracle Cloud Infrastructure ID of VM Cluster.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
+   * Required. License type of VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + int getLicenseTypeValue(); + /** + * + * + *
+   * Required. License type of VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType getLicenseType(); + + /** + * + * + *
+   * Optional. Grid Infrastructure Version.
+   * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The giVersion. + */ + java.lang.String getGiVersion(); + /** + * + * + *
+   * Optional. Grid Infrastructure Version.
+   * 
+ * + * string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for giVersion. + */ + com.google.protobuf.ByteString getGiVersionBytes(); + + /** + * + * + *
+   * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+   * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + /** + * + * + *
+   * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+   * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + com.google.type.TimeZone getTimeZone(); + /** + * + * + *
+   * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified.
+   * 
+ * + * .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); + + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sshPublicKeys. + */ + java.util.List getSshPublicKeysList(); + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sshPublicKeys. + */ + int getSshPublicKeysCount(); + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + java.lang.String getSshPublicKeys(int index); + /** + * + * + *
+   * Optional. SSH public keys to be stored with cluster.
+   * 
+ * + * repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + com.google.protobuf.ByteString getSshPublicKeysBytes(int index); + + /** + * + * + *
+   * Optional. Number of database servers.
+   * 
+ * + * int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeCount. + */ + int getNodeCount(); + + /** + * + * + *
+   * Output only. Shape of VM Cluster.
+   * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shape. + */ + java.lang.String getShape(); + /** + * + * + *
+   * Output only. Shape of VM Cluster.
+   * 
+ * + * string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for shape. + */ + com.google.protobuf.ByteString getShapeBytes(); + + /** + * + * + *
+   * Optional. OCPU count per VM. Minimum is 0.1.
+   * 
+ * + * float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + float getOcpuCount(); + + /** + * + * + *
+   * Optional. Memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + int getMemorySizeGb(); + + /** + * + * + *
+   * Optional. Local storage per VM.
+   * 
+ * + * int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + int getDbNodeStorageSizeGb(); + + /** + * + * + *
+   * Output only. The storage allocation for the disk group, in gigabytes (GB).
+   * 
+ * + * int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageSizeGb. + */ + int getStorageSizeGb(); + + /** + * + * + *
+   * Optional. The data disk group size to be allocated in TBs.
+   * 
+ * + * double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeTb. + */ + double getDataStorageSizeTb(); + + /** + * + * + *
+   * Optional. The type of redundancy.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskRedundancy. + */ + int getDiskRedundancyValue(); + /** + * + * + *
+   * Optional. The type of redundancy.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskRedundancy. + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy getDiskRedundancy(); + + /** + * + * + *
+   * Optional. Use exadata sparse snapshots.
+   * 
+ * + * bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sparseDiskgroupEnabled. + */ + boolean getSparseDiskgroupEnabled(); + + /** + * + * + *
+   * Optional. Use local backup.
+   * 
+ * + * bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localBackupEnabled. + */ + boolean getLocalBackupEnabled(); + + /** + * + * + *
+   * Optional. Prefix for VM cluster host names.
+   * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostnamePrefix. + */ + java.lang.String getHostnamePrefix(); + /** + * + * + *
+   * Optional. Prefix for VM cluster host names.
+   * 
+ * + * string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostnamePrefix. + */ + com.google.protobuf.ByteString getHostnamePrefixBytes(); + + /** + * + * + *
+   * Optional. Data collection options for diagnostics.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diagnosticsDataCollectionOptions field is set. + */ + boolean hasDiagnosticsDataCollectionOptions(); + /** + * + * + *
+   * Optional. Data collection options for diagnostics.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diagnosticsDataCollectionOptions. + */ + com.google.cloud.oracledatabase.v1.DataCollectionOptions getDiagnosticsDataCollectionOptions(); + /** + * + * + *
+   * Optional. Data collection options for diagnostics.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder + getDiagnosticsDataCollectionOptionsOrBuilder(); + + /** + * + * + *
+   * Output only. State of the cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.State getState(); + + /** + * + * + *
+   * Output only. SCAN listener port - TCP
+   * 
+ * + * int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanListenerPortTcp. + */ + int getScanListenerPortTcp(); + + /** + * + * + *
+   * Output only. SCAN listener port - TLS
+   * 
+ * + * int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanListenerPortTcpSsl. + */ + int getScanListenerPortTcpSsl(); + + /** + * + * + *
+   * Output only. Parent DNS domain where SCAN DNS and hosts names are
+   * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The domain. + */ + java.lang.String getDomain(); + /** + * + * + *
+   * Output only. Parent DNS domain where SCAN DNS and hosts names are
+   * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+   * Output only. SCAN DNS name.
+   * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanDns. + */ + java.lang.String getScanDns(); + /** + * + * + *
+   * Output only. SCAN DNS name.
+   * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
+   * 
+ * + * string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scanDns. + */ + com.google.protobuf.ByteString getScanDnsBytes(); + + /** + * + * + *
+   * Output only. host name without domain.
+   * format: "<hostname_prefix>-" with some suffix.
+   * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+   * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Output only. host name without domain.
+   * format: "<hostname_prefix>-" with some suffix.
+   * ex: sp2-yi0xq where "sp2" is the hostname_prefix.
+   * 
+ * + * string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Required. Number of enabled CPU cores.
+   * 
+ * + * int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cpuCoreCount. + */ + int getCpuCoreCount(); + + /** + * + * + *
+   * Output only. Operating system version of the image.
+   * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemVersion. + */ + java.lang.String getSystemVersion(); + /** + * + * + *
+   * Output only. Operating system version of the image.
+   * 
+ * + * string system_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for systemVersion. + */ + com.google.protobuf.ByteString getSystemVersionBytes(); + + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scanIpIds. + */ + java.util.List getScanIpIdsList(); + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scanIpIds. + */ + int getScanIpIdsCount(); + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scanIpIds at the given index. + */ + java.lang.String getScanIpIds(int index); + /** + * + * + *
+   * Output only. OCIDs of scan IPs.
+   * 
+ * + * repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scanIpIds at the given index. + */ + com.google.protobuf.ByteString getScanIpIdsBytes(int index); + + /** + * + * + *
+   * Output only. OCID of scan DNS record.
+   * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scanDnsRecordId. + */ + java.lang.String getScanDnsRecordId(); + /** + * + * + *
+   * Output only. OCID of scan DNS record.
+   * 
+ * + * string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scanDnsRecordId. + */ + com.google.protobuf.ByteString getScanDnsRecordIdBytes(); + + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + java.lang.String getOciUrl(); + /** + * + * + *
+   * Output only. Deep link to the OCI console to view this resource.
+   * 
+ * + * string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + com.google.protobuf.ByteString getOciUrlBytes(); + + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dbServerOcids. + */ + java.util.List getDbServerOcidsList(); + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dbServerOcids. + */ + int getDbServerOcidsCount(); + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dbServerOcids at the given index. + */ + java.lang.String getDbServerOcids(int index); + /** + * + * + *
+   * Optional. OCID of database servers.
+   * 
+ * + * repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dbServerOcids at the given index. + */ + com.google.protobuf.ByteString getDbServerOcidsBytes(int index); + + /** + * + * + *
+   * Output only. Compartment ID of cluster.
+   * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compartmentId. + */ + java.lang.String getCompartmentId(); + /** + * + * + *
+   * Output only. Compartment ID of cluster.
+   * 
+ * + * string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for compartmentId. + */ + com.google.protobuf.ByteString getCompartmentIdBytes(); + + /** + * + * + *
+   * Output only. DNS listener IP.
+   * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dnsListenerIp. + */ + java.lang.String getDnsListenerIp(); + /** + * + * + *
+   * Output only. DNS listener IP.
+   * 
+ * + * string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dnsListenerIp. + */ + com.google.protobuf.ByteString getDnsListenerIpBytes(); + + /** + * + * + *
+   * Optional. OCI Cluster name.
+   * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterName. + */ + java.lang.String getClusterName(); + /** + * + * + *
+   * Optional. OCI Cluster name.
+   * 
+ * + * string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterName. + */ + com.google.protobuf.ByteString getClusterNameBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java new file mode 100644 index 000000000000..9c67dcdde8b4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java @@ -0,0 +1,227 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class CloudVmClusterProto { + private CloudVmClusterProto() {} + + 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_oracledatabase_v1_CloudVmCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_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/oracledatabase/v1/vm_clus" + + "ter.proto\022\036google.cloud.oracledatabase.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\037google/protobuf/t" + + "imestamp.proto\032\032google/type/datetime.pro" + + "to\"\326\005\n\016CloudVmCluster\022\021\n\004name\030\001 \001(\tB\003\340A\010" + + "\022`\n\026exadata_infrastructure\030\002 \001(\tB@\340A\002\372A:" + + "\n8oracledatabase.googleapis.com/CloudExa" + + "dataInfrastructure\022\031\n\014display_name\030\003 \001(\t" + + "B\003\340A\001\022\034\n\017gcp_oracle_zone\030\014 \001(\tB\003\340A\003\022Q\n\np" + + "roperties\030\006 \001(\01328.google.cloud.oracledat" + + "abase.v1.CloudVmClusterPropertiesB\003\340A\001\022O" + + "\n\006labels\030\007 \003(\0132:.google.cloud.oracledata" + + "base.v1.CloudVmCluster.LabelsEntryB\003\340A\001\022" + + "4\n\013create_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\021\n\004cidr\030\t \001(\tB\003\340A\002\022\037\n\022back" + + "up_subnet_cidr\030\n \001(\tB\003\340A\002\0227\n\007network\030\013 \001" + + "(\tB&\340A\002\372A \n\036compute.googleapis.com/Netwo" + + "rk\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001:\237\001\352A\233\001\n,oracledatabase.googlea" + + "pis.com/CloudVmCluster\022Jprojects/{projec" + + "t}/locations/{location}/cloudVmClusters/" + + "{cloud_vm_cluster}*\017cloudVmClusters2\016clo" + + "udVmCluster\"\234\014\n\030CloudVmClusterProperties" + + "\022\021\n\004ocid\030\001 \001(\tB\003\340A\003\022_\n\014license_type\030\002 \001(" + + "\0162D.google.cloud.oracledatabase.v1.Cloud" + + "VmClusterProperties.LicenseTypeB\003\340A\002\022\027\n\n" + + "gi_version\030\003 \001(\tB\003\340A\001\022-\n\ttime_zone\030\004 \001(\013" + + "2\025.google.type.TimeZoneB\003\340A\001\022\034\n\017ssh_publ" + + "ic_keys\030\005 \003(\tB\003\340A\001\022\027\n\nnode_count\030\006 \001(\005B\003" + + "\340A\001\022\022\n\005shape\030\007 \001(\tB\003\340A\003\022\027\n\nocpu_count\030\010 " + + "\001(\002B\003\340A\001\022\033\n\016memory_size_gb\030\t \001(\005B\003\340A\001\022$\n" + + "\027db_node_storage_size_gb\030\n \001(\005B\003\340A\001\022\034\n\017s" + + "torage_size_gb\030\013 \001(\005B\003\340A\003\022!\n\024data_storag" + + "e_size_tb\030\014 \001(\001B\003\340A\001\022e\n\017disk_redundancy\030" + + "\r \001(\0162G.google.cloud.oracledatabase.v1.C" + + "loudVmClusterProperties.DiskRedundancyB\003" + + "\340A\001\022%\n\030sparse_diskgroup_enabled\030\016 \001(\010B\003\340" + + "A\001\022!\n\024local_backup_enabled\030\017 \001(\010B\003\340A\001\022\034\n" + + "\017hostname_prefix\030\020 \001(\tB\003\340A\001\022g\n#diagnosti" + + "cs_data_collection_options\030\023 \001(\01325.googl" + + "e.cloud.oracledatabase.v1.DataCollection" + + "OptionsB\003\340A\001\022R\n\005state\030\024 \001(\0162>.google.clo" + + "ud.oracledatabase.v1.CloudVmClusterPrope" + + "rties.StateB\003\340A\003\022#\n\026scan_listener_port_t" + + "cp\030\025 \001(\005B\003\340A\003\022\'\n\032scan_listener_port_tcp_" + + "ssl\030\026 \001(\005B\003\340A\003\022\023\n\006domain\030\027 \001(\tB\003\340A\003\022\025\n\010s" + + "can_dns\030\030 \001(\tB\003\340A\003\022\025\n\010hostname\030\031 \001(\tB\003\340A" + + "\003\022\033\n\016cpu_core_count\030\032 \001(\005B\003\340A\002\022\033\n\016system" + + "_version\030\033 \001(\tB\003\340A\003\022\030\n\013scan_ip_ids\030\034 \003(\t" + + "B\003\340A\003\022\037\n\022scan_dns_record_id\030\035 \001(\tB\003\340A\003\022\024" + + "\n\007oci_url\030\036 \001(\tB\003\340A\003\022\034\n\017db_server_ocids\030" + + "\037 \003(\tB\003\340A\001\022\033\n\016compartment_id\030 \001(\tB\003\340A\003\022" + + "\034\n\017dns_listener_ip\030# \001(\tB\003\340A\003\022\031\n\014cluster" + + "_name\030$ \001(\tB\003\340A\001\"]\n\013LicenseType\022\034\n\030LICEN" + + "SE_TYPE_UNSPECIFIED\020\000\022\024\n\020LICENSE_INCLUDE" + + "D\020\001\022\032\n\026BRING_YOUR_OWN_LICENSE\020\002\"G\n\016DiskR" + + "edundancy\022\037\n\033DISK_REDUNDANCY_UNSPECIFIED" + + "\020\000\022\010\n\004HIGH\020\001\022\n\n\006NORMAL\020\002\"\227\001\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\r\n\tA" + + "VAILABLE\020\002\022\014\n\010UPDATING\020\003\022\017\n\013TERMINATING\020" + + "\004\022\016\n\nTERMINATED\020\005\022\n\n\006FAILED\020\006\022\033\n\027MAINTEN" + + "ANCE_IN_PROGRESS\020\007\"\214\001\n\025DataCollectionOpt" + + "ions\022\'\n\032diagnostics_events_enabled\030\001 \001(\010" + + "B\003\340A\001\022&\n\031health_monitoring_enabled\030\002 \001(\010" + + "B\003\340A\001\022\"\n\025incident_logs_enabled\030\003 \001(\010B\003\340A" + + "\001B\355\001\n\"com.google.cloud.oracledatabase.v1" + + "B\023CloudVmClusterProtoP\001ZJcloud.google.co" + + "m/go/oracledatabase/apiv1/oracledatabase" + + "pb;oracledatabasepb\252\002\036Google.Cloud.Oracl" + + "eDatabase.V1\312\002\036Google\\Cloud\\OracleDataba" + + "se\\V1\352\002!Google::Cloud::OracleDatabase::V" + + "1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor, + new java.lang.String[] { + "Name", + "ExadataInfrastructure", + "DisplayName", + "GcpOracleZone", + "Properties", + "Labels", + "CreateTime", + "Cidr", + "BackupSubnetCidr", + "Network", + }); + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudVmClusterProperties_descriptor, + new java.lang.String[] { + "Ocid", + "LicenseType", + "GiVersion", + "TimeZone", + "SshPublicKeys", + "NodeCount", + "Shape", + "OcpuCount", + "MemorySizeGb", + "DbNodeStorageSizeGb", + "StorageSizeGb", + "DataStorageSizeTb", + "DiskRedundancy", + "SparseDiskgroupEnabled", + "LocalBackupEnabled", + "HostnamePrefix", + "DiagnosticsDataCollectionOptions", + "State", + "ScanListenerPortTcp", + "ScanListenerPortTcpSsl", + "Domain", + "ScanDns", + "Hostname", + "CpuCoreCount", + "SystemVersion", + "ScanIpIds", + "ScanDnsRecordId", + "OciUrl", + "DbServerOcids", + "CompartmentId", + "DnsListenerIp", + "ClusterName", + }); + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor, + new java.lang.String[] { + "DiagnosticsEventsEnabled", "HealthMonitoringEnabled", "IncidentLogsEnabled", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java new file mode 100644 index 000000000000..2fc35c02c0a8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java @@ -0,0 +1,78 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +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_oracledatabase_v1_CustomerContact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CustomerContact_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/oracledatabase/v1/common." + + "proto\022\036google.cloud.oracledatabase.v1\032\037g" + + "oogle/api/field_behavior.proto\"%\n\017Custom" + + "erContact\022\022\n\005email\030\001 \001(\tB\003\340A\002B\345\001\n\"com.go" + + "ogle.cloud.oracledatabase.v1B\013CommonProt" + + "oP\001ZJcloud.google.com/go/oracledatabase/" + + "apiv1/oracledatabasepb;oracledatabasepb\252" + + "\002\036Google.Cloud.OracleDatabase.V1\312\002\036Googl" + + "e\\Cloud\\OracleDatabase\\V1\352\002!Google::Clou" + + "d::OracleDatabase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_CustomerContact_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_CustomerContact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CustomerContact_descriptor, + new java.lang.String[] { + "Email", + }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..2a4b87d05996 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateAutonomousDatabaseRequest.java @@ -0,0 +1,1421 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabase.Create`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest} + */ +public final class CreateAutonomousDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) + CreateAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAutonomousDatabaseRequest.newBuilder() to construct. + private CreateAutonomousDatabaseRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAutonomousDatabaseRequest() { + parent_ = ""; + autonomousDatabaseId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 AUTONOMOUS_DATABASE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object autonomousDatabaseId_ = ""; + /** + * + * + *
+   * Required. The ID of the Autonomous Database to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The autonomousDatabaseId. + */ + @java.lang.Override + public java.lang.String getAutonomousDatabaseId() { + java.lang.Object ref = autonomousDatabaseId_; + 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(); + autonomousDatabaseId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the Autonomous Database to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for autonomousDatabaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutonomousDatabaseIdBytes() { + java.lang.Object ref = autonomousDatabaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousDatabaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTONOMOUS_DATABASE_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.AutonomousDatabase autonomousDatabase_; + /** + * + * + *
+   * Required. The Autonomous Database being created.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autonomousDatabase field is set. + */ + @java.lang.Override + public boolean hasAutonomousDatabase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The Autonomous Database being created.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autonomousDatabase. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase() { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } + /** + * + * + *
+   * Required. The Autonomous Database being created.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder + getAutonomousDatabaseOrBuilder() { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousDatabaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, autonomousDatabaseId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAutonomousDatabase()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousDatabaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, autonomousDatabaseId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutonomousDatabase()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.oracledatabase.v1.CreateAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAutonomousDatabaseId().equals(other.getAutonomousDatabaseId())) return false; + if (hasAutonomousDatabase() != other.hasAutonomousDatabase()) return false; + if (hasAutonomousDatabase()) { + if (!getAutonomousDatabase().equals(other.getAutonomousDatabase())) 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) + AUTONOMOUS_DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabaseId().hashCode(); + if (hasAutonomousDatabase()) { + hash = (37 * hash) + AUTONOMOUS_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabase().hashCode(); + } + 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.oracledatabase.v1.CreateAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest 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.oracledatabase.v1.CreateAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest 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.oracledatabase.v1.CreateAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest 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.oracledatabase.v1.CreateAutonomousDatabaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + 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.oracledatabase.v1.CreateAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest 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.oracledatabase.v1.CreateAutonomousDatabaseRequest 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 for `AutonomousDatabase.Create`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAutonomousDatabaseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + autonomousDatabaseId_ = ""; + autonomousDatabase_ = null; + if (autonomousDatabaseBuilder_ != null) { + autonomousDatabaseBuilder_.dispose(); + autonomousDatabaseBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autonomousDatabaseId_ = autonomousDatabaseId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autonomousDatabase_ = + autonomousDatabaseBuilder_ == null + ? autonomousDatabase_ + : autonomousDatabaseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 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.oracledatabase.v1.CreateAutonomousDatabaseRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAutonomousDatabaseId().isEmpty()) { + autonomousDatabaseId_ = other.autonomousDatabaseId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAutonomousDatabase()) { + mergeAutonomousDatabase(other.getAutonomousDatabase()); + } + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + autonomousDatabaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getAutonomousDatabaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object autonomousDatabaseId_ = ""; + /** + * + * + *
+     * Required. The ID of the Autonomous Database to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The autonomousDatabaseId. + */ + public java.lang.String getAutonomousDatabaseId() { + java.lang.Object ref = autonomousDatabaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autonomousDatabaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Autonomous Database to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for autonomousDatabaseId. + */ + public com.google.protobuf.ByteString getAutonomousDatabaseIdBytes() { + java.lang.Object ref = autonomousDatabaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousDatabaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Autonomous Database to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The autonomousDatabaseId to set. + * @return This builder for chaining. + */ + public Builder setAutonomousDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autonomousDatabaseId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Autonomous Database to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAutonomousDatabaseId() { + autonomousDatabaseId_ = getDefaultInstance().getAutonomousDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Autonomous Database to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for autonomousDatabaseId to set. + * @return This builder for chaining. + */ + public Builder setAutonomousDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autonomousDatabaseId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabase autonomousDatabase_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder> + autonomousDatabaseBuilder_; + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autonomousDatabase field is set. + */ + public boolean hasAutonomousDatabase() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autonomousDatabase. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase() { + if (autonomousDatabaseBuilder_ == null) { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } else { + return autonomousDatabaseBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutonomousDatabase( + com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autonomousDatabase_ = value; + } else { + autonomousDatabaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutonomousDatabase( + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder builderForValue) { + if (autonomousDatabaseBuilder_ == null) { + autonomousDatabase_ = builderForValue.build(); + } else { + autonomousDatabaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutonomousDatabase( + com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabaseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && autonomousDatabase_ != null + && autonomousDatabase_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance()) { + getAutonomousDatabaseBuilder().mergeFrom(value); + } else { + autonomousDatabase_ = value; + } + } else { + autonomousDatabaseBuilder_.mergeFrom(value); + } + if (autonomousDatabase_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutonomousDatabase() { + bitField0_ = (bitField0_ & ~0x00000004); + autonomousDatabase_ = null; + if (autonomousDatabaseBuilder_ != null) { + autonomousDatabaseBuilder_.dispose(); + autonomousDatabaseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder + getAutonomousDatabaseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAutonomousDatabaseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder + getAutonomousDatabaseOrBuilder() { + if (autonomousDatabaseBuilder_ != null) { + return autonomousDatabaseBuilder_.getMessageOrBuilder(); + } else { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } + } + /** + * + * + *
+     * Required. The Autonomous Database being created.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder> + getAutonomousDatabaseFieldBuilder() { + if (autonomousDatabaseBuilder_ == null) { + autonomousDatabaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder>( + getAutonomousDatabase(), getParentForChildren(), isClean()); + autonomousDatabase_ = null; + } + return autonomousDatabaseBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.oracledatabase.v1.CreateAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAutonomousDatabaseRequest 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.oracledatabase.v1.CreateAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..c53a8d6d6383 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CreateAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the Autonomous Database to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The autonomousDatabaseId. + */ + java.lang.String getAutonomousDatabaseId(); + /** + * + * + *
+   * Required. The ID of the Autonomous Database to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for autonomousDatabaseId. + */ + com.google.protobuf.ByteString getAutonomousDatabaseIdBytes(); + + /** + * + * + *
+   * Required. The Autonomous Database being created.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autonomousDatabase field is set. + */ + boolean hasAutonomousDatabase(); + /** + * + * + *
+   * Required. The Autonomous Database being created.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autonomousDatabase. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase(); + /** + * + * + *
+   * Required. The Autonomous Database being created.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder getAutonomousDatabaseOrBuilder(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudExadataInfrastructureRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudExadataInfrastructureRequest.java new file mode 100644 index 000000000000..df5f80e61392 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudExadataInfrastructureRequest.java @@ -0,0 +1,1451 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudExadataInfrastructure.Create`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest} + */ +public final class CreateCloudExadataInfrastructureRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) + CreateCloudExadataInfrastructureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCloudExadataInfrastructureRequest.newBuilder() to construct. + private CreateCloudExadataInfrastructureRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCloudExadataInfrastructureRequest() { + parent_ = ""; + cloudExadataInfrastructureId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCloudExadataInfrastructureRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest.class, + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 CLOUD_EXADATA_INFRASTRUCTURE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudExadataInfrastructureId_ = ""; + /** + * + * + *
+   * Required. The ID of the Exadata Infrastructure to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudExadataInfrastructureId. + */ + @java.lang.Override + public java.lang.String getCloudExadataInfrastructureId() { + java.lang.Object ref = cloudExadataInfrastructureId_; + 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(); + cloudExadataInfrastructureId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the Exadata Infrastructure to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for cloudExadataInfrastructureId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudExadataInfrastructureIdBytes() { + java.lang.Object ref = cloudExadataInfrastructureId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudExadataInfrastructureId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_EXADATA_INFRASTRUCTURE_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloudExadataInfrastructure_; + /** + * + * + *
+   * Required. Details of the Exadata Infrastructure instance to create.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cloudExadataInfrastructure field is set. + */ + @java.lang.Override + public boolean hasCloudExadataInfrastructure() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Details of the Exadata Infrastructure instance to create.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudExadataInfrastructure. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getCloudExadataInfrastructure() { + return cloudExadataInfrastructure_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance() + : cloudExadataInfrastructure_; + } + /** + * + * + *
+   * Required. Details of the Exadata Infrastructure instance to create.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder + getCloudExadataInfrastructureOrBuilder() { + return cloudExadataInfrastructure_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance() + : cloudExadataInfrastructure_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudExadataInfrastructureId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cloudExadataInfrastructureId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCloudExadataInfrastructure()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudExadataInfrastructureId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 2, cloudExadataInfrastructureId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getCloudExadataInfrastructure()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest other = + (com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCloudExadataInfrastructureId().equals(other.getCloudExadataInfrastructureId())) + return false; + if (hasCloudExadataInfrastructure() != other.hasCloudExadataInfrastructure()) return false; + if (hasCloudExadataInfrastructure()) { + if (!getCloudExadataInfrastructure().equals(other.getCloudExadataInfrastructure())) + 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) + CLOUD_EXADATA_INFRASTRUCTURE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCloudExadataInfrastructureId().hashCode(); + if (hasCloudExadataInfrastructure()) { + hash = (37 * hash) + CLOUD_EXADATA_INFRASTRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getCloudExadataInfrastructure().hashCode(); + } + 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest 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 for `CloudExadataInfrastructure.Create`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest.class, + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCloudExadataInfrastructureFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + cloudExadataInfrastructureId_ = ""; + cloudExadataInfrastructure_ = null; + if (cloudExadataInfrastructureBuilder_ != null) { + cloudExadataInfrastructureBuilder_.dispose(); + cloudExadataInfrastructureBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest build() { + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest result = + new com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cloudExadataInfrastructureId_ = cloudExadataInfrastructureId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cloudExadataInfrastructure_ = + cloudExadataInfrastructureBuilder_ == null + ? cloudExadataInfrastructure_ + : cloudExadataInfrastructureBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCloudExadataInfrastructureId().isEmpty()) { + cloudExadataInfrastructureId_ = other.cloudExadataInfrastructureId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCloudExadataInfrastructure()) { + mergeCloudExadataInfrastructure(other.getCloudExadataInfrastructure()); + } + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cloudExadataInfrastructureId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudExadataInfrastructureFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cloudExadataInfrastructureId_ = ""; + /** + * + * + *
+     * Required. The ID of the Exadata Infrastructure to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudExadataInfrastructureId. + */ + public java.lang.String getCloudExadataInfrastructureId() { + java.lang.Object ref = cloudExadataInfrastructureId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudExadataInfrastructureId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Exadata Infrastructure to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for cloudExadataInfrastructureId. + */ + public com.google.protobuf.ByteString getCloudExadataInfrastructureIdBytes() { + java.lang.Object ref = cloudExadataInfrastructureId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudExadataInfrastructureId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Exadata Infrastructure to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The cloudExadataInfrastructureId to set. + * @return This builder for chaining. + */ + public Builder setCloudExadataInfrastructureId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudExadataInfrastructureId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Exadata Infrastructure to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCloudExadataInfrastructureId() { + cloudExadataInfrastructureId_ = getDefaultInstance().getCloudExadataInfrastructureId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Exadata Infrastructure to create. This value is
+     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+     * 63 characters in length. The value must start with a letter and end with a
+     * letter or a number.
+     * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for cloudExadataInfrastructureId to set. + * @return This builder for chaining. + */ + public Builder setCloudExadataInfrastructureIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudExadataInfrastructureId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + cloudExadataInfrastructure_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder> + cloudExadataInfrastructureBuilder_; + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cloudExadataInfrastructure field is set. + */ + public boolean hasCloudExadataInfrastructure() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudExadataInfrastructure. + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getCloudExadataInfrastructure() { + if (cloudExadataInfrastructureBuilder_ == null) { + return cloudExadataInfrastructure_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance() + : cloudExadataInfrastructure_; + } else { + return cloudExadataInfrastructureBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure value) { + if (cloudExadataInfrastructureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudExadataInfrastructure_ = value; + } else { + cloudExadataInfrastructureBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder builderForValue) { + if (cloudExadataInfrastructureBuilder_ == null) { + cloudExadataInfrastructure_ = builderForValue.build(); + } else { + cloudExadataInfrastructureBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure value) { + if (cloudExadataInfrastructureBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && cloudExadataInfrastructure_ != null + && cloudExadataInfrastructure_ + != com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + .getDefaultInstance()) { + getCloudExadataInfrastructureBuilder().mergeFrom(value); + } else { + cloudExadataInfrastructure_ = value; + } + } else { + cloudExadataInfrastructureBuilder_.mergeFrom(value); + } + if (cloudExadataInfrastructure_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCloudExadataInfrastructure() { + bitField0_ = (bitField0_ & ~0x00000004); + cloudExadataInfrastructure_ = null; + if (cloudExadataInfrastructureBuilder_ != null) { + cloudExadataInfrastructureBuilder_.dispose(); + cloudExadataInfrastructureBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder + getCloudExadataInfrastructureBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCloudExadataInfrastructureFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder + getCloudExadataInfrastructureOrBuilder() { + if (cloudExadataInfrastructureBuilder_ != null) { + return cloudExadataInfrastructureBuilder_.getMessageOrBuilder(); + } else { + return cloudExadataInfrastructure_ == null + ? com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance() + : cloudExadataInfrastructure_; + } + } + /** + * + * + *
+     * Required. Details of the Exadata Infrastructure instance to create.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder> + getCloudExadataInfrastructureFieldBuilder() { + if (cloudExadataInfrastructureBuilder_ == null) { + cloudExadataInfrastructureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder>( + getCloudExadataInfrastructure(), getParentForChildren(), isClean()); + cloudExadataInfrastructure_ = null; + } + return cloudExadataInfrastructureBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) + private static final com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCloudExadataInfrastructureRequest 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.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudExadataInfrastructureRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudExadataInfrastructureRequestOrBuilder.java new file mode 100644 index 000000000000..210dd2d950ea --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudExadataInfrastructureRequestOrBuilder.java @@ -0,0 +1,175 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CreateCloudExadataInfrastructureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the Exadata Infrastructure to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudExadataInfrastructureId. + */ + java.lang.String getCloudExadataInfrastructureId(); + /** + * + * + *
+   * Required. The ID of the Exadata Infrastructure to create. This value is
+   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
+   * 63 characters in length. The value must start with a letter and end with a
+   * letter or a number.
+   * 
+ * + * string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for cloudExadataInfrastructureId. + */ + com.google.protobuf.ByteString getCloudExadataInfrastructureIdBytes(); + + /** + * + * + *
+   * Required. Details of the Exadata Infrastructure instance to create.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cloudExadataInfrastructure field is set. + */ + boolean hasCloudExadataInfrastructure(); + /** + * + * + *
+   * Required. Details of the Exadata Infrastructure instance to create.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudExadataInfrastructure. + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure getCloudExadataInfrastructure(); + /** + * + * + *
+   * Required. Details of the Exadata Infrastructure instance to create.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder + getCloudExadataInfrastructureOrBuilder(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudVmClusterRequest.java new file mode 100644 index 000000000000..725b0b4fd07d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudVmClusterRequest.java @@ -0,0 +1,1407 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudVmCluster.Create`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest} + */ +public final class CreateCloudVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest) + CreateCloudVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCloudVmClusterRequest.newBuilder() to construct. + private CreateCloudVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCloudVmClusterRequest() { + parent_ = ""; + cloudVmClusterId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCloudVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 CLOUD_VM_CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudVmClusterId_ = ""; + /** + * + * + *
+   * Required. The ID of the VM Cluster to create. This value is restricted
+   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+   * characters in length. The value must start with a letter and end with
+   * a letter or a number.
+   * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cloudVmClusterId. + */ + @java.lang.Override + public java.lang.String getCloudVmClusterId() { + java.lang.Object ref = cloudVmClusterId_; + 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(); + cloudVmClusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the VM Cluster to create. This value is restricted
+   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+   * characters in length. The value must start with a letter and end with
+   * a letter or a number.
+   * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cloudVmClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudVmClusterIdBytes() { + java.lang.Object ref = cloudVmClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudVmClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_VM_CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.CloudVmCluster cloudVmCluster_; + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cloudVmCluster field is set. + */ + @java.lang.Override + public boolean hasCloudVmCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudVmCluster. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster() { + return cloudVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance() + : cloudVmCluster_; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder getCloudVmClusterOrBuilder() { + return cloudVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance() + : cloudVmCluster_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudVmClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cloudVmClusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCloudVmCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudVmClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cloudVmClusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCloudVmCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.oracledatabase.v1.CreateCloudVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCloudVmClusterId().equals(other.getCloudVmClusterId())) return false; + if (hasCloudVmCluster() != other.hasCloudVmCluster()) return false; + if (hasCloudVmCluster()) { + if (!getCloudVmCluster().equals(other.getCloudVmCluster())) 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) + CLOUD_VM_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCloudVmClusterId().hashCode(); + if (hasCloudVmCluster()) { + hash = (37 * hash) + CLOUD_VM_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCloudVmCluster().hashCode(); + } + 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.oracledatabase.v1.CreateCloudVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest 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.oracledatabase.v1.CreateCloudVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest 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.oracledatabase.v1.CreateCloudVmClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest 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.oracledatabase.v1.CreateCloudVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest 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.oracledatabase.v1.CreateCloudVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest 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.oracledatabase.v1.CreateCloudVmClusterRequest 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 for `CloudVmCluster.Create`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest) + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCloudVmClusterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + cloudVmClusterId_ = ""; + cloudVmCluster_ = null; + if (cloudVmClusterBuilder_ != null) { + cloudVmClusterBuilder_.dispose(); + cloudVmClusterBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cloudVmClusterId_ = cloudVmClusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cloudVmCluster_ = + cloudVmClusterBuilder_ == null ? cloudVmCluster_ : cloudVmClusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 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.oracledatabase.v1.CreateCloudVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCloudVmClusterId().isEmpty()) { + cloudVmClusterId_ = other.cloudVmClusterId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCloudVmCluster()) { + mergeCloudVmCluster(other.getCloudVmCluster()); + } + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cloudVmClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCloudVmClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cloudVmClusterId_ = ""; + /** + * + * + *
+     * Required. The ID of the VM Cluster to create. This value is restricted
+     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+     * characters in length. The value must start with a letter and end with
+     * a letter or a number.
+     * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cloudVmClusterId. + */ + public java.lang.String getCloudVmClusterId() { + java.lang.Object ref = cloudVmClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudVmClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the VM Cluster to create. This value is restricted
+     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+     * characters in length. The value must start with a letter and end with
+     * a letter or a number.
+     * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cloudVmClusterId. + */ + public com.google.protobuf.ByteString getCloudVmClusterIdBytes() { + java.lang.Object ref = cloudVmClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudVmClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the VM Cluster to create. This value is restricted
+     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+     * characters in length. The value must start with a letter and end with
+     * a letter or a number.
+     * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cloudVmClusterId to set. + * @return This builder for chaining. + */ + public Builder setCloudVmClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudVmClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the VM Cluster to create. This value is restricted
+     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+     * characters in length. The value must start with a letter and end with
+     * a letter or a number.
+     * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCloudVmClusterId() { + cloudVmClusterId_ = getDefaultInstance().getCloudVmClusterId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the VM Cluster to create. This value is restricted
+     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+     * characters in length. The value must start with a letter and end with
+     * a letter or a number.
+     * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for cloudVmClusterId to set. + * @return This builder for chaining. + */ + public Builder setCloudVmClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudVmClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.CloudVmCluster cloudVmCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmCluster, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder> + cloudVmClusterBuilder_; + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cloudVmCluster field is set. + */ + public boolean hasCloudVmCluster() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudVmCluster. + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster() { + if (cloudVmClusterBuilder_ == null) { + return cloudVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance() + : cloudVmCluster_; + } else { + return cloudVmClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCloudVmCluster(com.google.cloud.oracledatabase.v1.CloudVmCluster value) { + if (cloudVmClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudVmCluster_ = value; + } else { + cloudVmClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCloudVmCluster( + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder builderForValue) { + if (cloudVmClusterBuilder_ == null) { + cloudVmCluster_ = builderForValue.build(); + } else { + cloudVmClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCloudVmCluster(com.google.cloud.oracledatabase.v1.CloudVmCluster value) { + if (cloudVmClusterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && cloudVmCluster_ != null + && cloudVmCluster_ + != com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance()) { + getCloudVmClusterBuilder().mergeFrom(value); + } else { + cloudVmCluster_ = value; + } + } else { + cloudVmClusterBuilder_.mergeFrom(value); + } + if (cloudVmCluster_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCloudVmCluster() { + bitField0_ = (bitField0_ & ~0x00000004); + cloudVmCluster_ = null; + if (cloudVmClusterBuilder_ != null) { + cloudVmClusterBuilder_.dispose(); + cloudVmClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder getCloudVmClusterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCloudVmClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder getCloudVmClusterOrBuilder() { + if (cloudVmClusterBuilder_ != null) { + return cloudVmClusterBuilder_.getMessageOrBuilder(); + } else { + return cloudVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance() + : cloudVmCluster_; + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmCluster, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder> + getCloudVmClusterFieldBuilder() { + if (cloudVmClusterBuilder_ == null) { + cloudVmClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmCluster, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder>( + getCloudVmCluster(), getParentForChildren(), isClean()); + cloudVmCluster_ = null; + } + return cloudVmClusterBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.oracledatabase.v1.CreateCloudVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCloudVmClusterRequest 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.oracledatabase.v1.CreateCloudVmClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..ccf5b67a2a96 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateCloudVmClusterRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CreateCloudVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the VM Cluster to create. This value is restricted
+   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+   * characters in length. The value must start with a letter and end with
+   * a letter or a number.
+   * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cloudVmClusterId. + */ + java.lang.String getCloudVmClusterId(); + /** + * + * + *
+   * Required. The ID of the VM Cluster to create. This value is restricted
+   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+   * characters in length. The value must start with a letter and end with
+   * a letter or a number.
+   * 
+ * + * string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cloudVmClusterId. + */ + com.google.protobuf.ByteString getCloudVmClusterIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cloudVmCluster field is set. + */ + boolean hasCloudVmCluster(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cloudVmCluster. + */ + com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder getCloudVmClusterOrBuilder(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CustomerContact.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CustomerContact.java new file mode 100644 index 000000000000..9d8e22928e3b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CustomerContact.java @@ -0,0 +1,634 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The CustomerContact reference as defined by Oracle.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CustomerContact} + */ +public final class CustomerContact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CustomerContact) + CustomerContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomerContact.newBuilder() to construct. + private CustomerContact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomerContact() { + email_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomerContact(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_CustomerContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_CustomerContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CustomerContact.class, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder.class); + } + + public static final int EMAIL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * + * + *
+   * Required. The email address used by Oracle to send notifications regarding
+   * databases and infrastructure.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The email address used by Oracle to send notifications regarding
+   * databases and infrastructure.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = 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(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); + } + 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(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, email_); + } + 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.oracledatabase.v1.CustomerContact)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CustomerContact other = + (com.google.cloud.oracledatabase.v1.CustomerContact) obj; + + if (!getEmail().equals(other.getEmail())) 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) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact 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.oracledatabase.v1.CustomerContact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact 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.oracledatabase.v1.CustomerContact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact 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.oracledatabase.v1.CustomerContact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact 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.oracledatabase.v1.CustomerContact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact 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.oracledatabase.v1.CustomerContact 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 CustomerContact reference as defined by Oracle.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.CustomerContact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CustomerContact) + com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_CustomerContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_CustomerContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CustomerContact.class, + com.google.cloud.oracledatabase.v1.CustomerContact.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CustomerContact.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + email_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_CustomerContact_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContact getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CustomerContact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContact build() { + com.google.cloud.oracledatabase.v1.CustomerContact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CustomerContact buildPartial() { + com.google.cloud.oracledatabase.v1.CustomerContact result = + new com.google.cloud.oracledatabase.v1.CustomerContact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CustomerContact result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.email_ = email_; + } + } + + @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.oracledatabase.v1.CustomerContact) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CustomerContact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CustomerContact other) { + if (other == com.google.cloud.oracledatabase.v1.CustomerContact.getDefaultInstance()) + return this; + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + 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: + { + email_ = 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 email_ = ""; + /** + * + * + *
+     * Required. The email address used by Oracle to send notifications regarding
+     * databases and infrastructure.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The email address used by Oracle to send notifications regarding
+     * databases and infrastructure.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The email address used by Oracle to send notifications regarding
+     * databases and infrastructure.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The email address used by Oracle to send notifications regarding
+     * databases and infrastructure.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The email address used by Oracle to send notifications regarding
+     * databases and infrastructure.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = 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.oracledatabase.v1.CustomerContact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CustomerContact) + private static final com.google.cloud.oracledatabase.v1.CustomerContact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CustomerContact(); + } + + public static com.google.cloud.oracledatabase.v1.CustomerContact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerContact 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.oracledatabase.v1.CustomerContact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CustomerContactOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CustomerContactOrBuilder.java new file mode 100644 index 000000000000..eaba4e533ea3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CustomerContactOrBuilder.java @@ -0,0 +1,53 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface CustomerContactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CustomerContact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The email address used by Oracle to send notifications regarding
+   * databases and infrastructure.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+   * Required. The email address used by Oracle to send notifications regarding
+   * databases and infrastructure.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DBWorkload.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DBWorkload.java new file mode 100644 index 000000000000..6669bc57fc53 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DBWorkload.java @@ -0,0 +1,225 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The various states available for the Autonomous Database workload type.
+ * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DBWorkload} + */ +public enum DBWorkload implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * DB_WORKLOAD_UNSPECIFIED = 0; + */ + DB_WORKLOAD_UNSPECIFIED(0), + /** + * + * + *
+   * Autonomous Transaction Processing database.
+   * 
+ * + * OLTP = 1; + */ + OLTP(1), + /** + * + * + *
+   * Autonomous Data Warehouse database.
+   * 
+ * + * DW = 2; + */ + DW(2), + /** + * + * + *
+   * Autonomous JSON Database.
+   * 
+ * + * AJD = 3; + */ + AJD(3), + /** + * + * + *
+   * Autonomous Database with the Oracle APEX Application Development workload
+   * type.
+   * 
+ * + * APEX = 4; + */ + APEX(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * DB_WORKLOAD_UNSPECIFIED = 0; + */ + public static final int DB_WORKLOAD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Autonomous Transaction Processing database.
+   * 
+ * + * OLTP = 1; + */ + public static final int OLTP_VALUE = 1; + /** + * + * + *
+   * Autonomous Data Warehouse database.
+   * 
+ * + * DW = 2; + */ + public static final int DW_VALUE = 2; + /** + * + * + *
+   * Autonomous JSON Database.
+   * 
+ * + * AJD = 3; + */ + public static final int AJD_VALUE = 3; + /** + * + * + *
+   * Autonomous Database with the Oracle APEX Application Development workload
+   * type.
+   * 
+ * + * APEX = 4; + */ + public static final int APEX_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 DBWorkload 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 DBWorkload forNumber(int value) { + switch (value) { + case 0: + return DB_WORKLOAD_UNSPECIFIED; + case 1: + return OLTP; + case 2: + return DW; + case 3: + return AJD; + case 4: + return APEX; + 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 DBWorkload findValueByNumber(int number) { + return DBWorkload.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.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final DBWorkload[] VALUES = values(); + + public static DBWorkload 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 DBWorkload(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DBWorkload) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptions.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptions.java new file mode 100644 index 000000000000..0ffe52c5c88e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptions.java @@ -0,0 +1,730 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Data collection options for diagnostics.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DataCollectionOptions} + */ +public final class DataCollectionOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DataCollectionOptions) + DataCollectionOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataCollectionOptions.newBuilder() to construct. + private DataCollectionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataCollectionOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataCollectionOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DataCollectionOptions.class, + com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder.class); + } + + public static final int DIAGNOSTICS_EVENTS_ENABLED_FIELD_NUMBER = 1; + private boolean diagnosticsEventsEnabled_ = false; + /** + * + * + *
+   * Optional. Indicates whether diagnostic collection is enabled for the VM
+   * cluster
+   * 
+ * + * bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diagnosticsEventsEnabled. + */ + @java.lang.Override + public boolean getDiagnosticsEventsEnabled() { + return diagnosticsEventsEnabled_; + } + + public static final int HEALTH_MONITORING_ENABLED_FIELD_NUMBER = 2; + private boolean healthMonitoringEnabled_ = false; + /** + * + * + *
+   * Optional. Indicates whether health monitoring is enabled for the VM cluster
+   * 
+ * + * bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The healthMonitoringEnabled. + */ + @java.lang.Override + public boolean getHealthMonitoringEnabled() { + return healthMonitoringEnabled_; + } + + public static final int INCIDENT_LOGS_ENABLED_FIELD_NUMBER = 3; + private boolean incidentLogsEnabled_ = false; + /** + * + * + *
+   * Optional. Indicates whether incident logs and trace collection are enabled
+   * for the VM cluster
+   * 
+ * + * bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The incidentLogsEnabled. + */ + @java.lang.Override + public boolean getIncidentLogsEnabled() { + return incidentLogsEnabled_; + } + + 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 (diagnosticsEventsEnabled_ != false) { + output.writeBool(1, diagnosticsEventsEnabled_); + } + if (healthMonitoringEnabled_ != false) { + output.writeBool(2, healthMonitoringEnabled_); + } + if (incidentLogsEnabled_ != false) { + output.writeBool(3, incidentLogsEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (diagnosticsEventsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, diagnosticsEventsEnabled_); + } + if (healthMonitoringEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, healthMonitoringEnabled_); + } + if (incidentLogsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, incidentLogsEnabled_); + } + 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.oracledatabase.v1.DataCollectionOptions)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DataCollectionOptions other = + (com.google.cloud.oracledatabase.v1.DataCollectionOptions) obj; + + if (getDiagnosticsEventsEnabled() != other.getDiagnosticsEventsEnabled()) return false; + if (getHealthMonitoringEnabled() != other.getHealthMonitoringEnabled()) return false; + if (getIncidentLogsEnabled() != other.getIncidentLogsEnabled()) 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) + DIAGNOSTICS_EVENTS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDiagnosticsEventsEnabled()); + hash = (37 * hash) + HEALTH_MONITORING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHealthMonitoringEnabled()); + hash = (37 * hash) + INCIDENT_LOGS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncidentLogsEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions 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.oracledatabase.v1.DataCollectionOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions 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.oracledatabase.v1.DataCollectionOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions 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.oracledatabase.v1.DataCollectionOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions 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.oracledatabase.v1.DataCollectionOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions 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.oracledatabase.v1.DataCollectionOptions 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; + } + /** + * + * + *
+   * Data collection options for diagnostics.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DataCollectionOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DataCollectionOptions) + com.google.cloud.oracledatabase.v1.DataCollectionOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DataCollectionOptions.class, + com.google.cloud.oracledatabase.v1.DataCollectionOptions.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DataCollectionOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diagnosticsEventsEnabled_ = false; + healthMonitoringEnabled_ = false; + incidentLogsEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptions getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptions build() { + com.google.cloud.oracledatabase.v1.DataCollectionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptions buildPartial() { + com.google.cloud.oracledatabase.v1.DataCollectionOptions result = + new com.google.cloud.oracledatabase.v1.DataCollectionOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DataCollectionOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diagnosticsEventsEnabled_ = diagnosticsEventsEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.healthMonitoringEnabled_ = healthMonitoringEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.incidentLogsEnabled_ = incidentLogsEnabled_; + } + } + + @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.oracledatabase.v1.DataCollectionOptions) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DataCollectionOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DataCollectionOptions other) { + if (other == com.google.cloud.oracledatabase.v1.DataCollectionOptions.getDefaultInstance()) + return this; + if (other.getDiagnosticsEventsEnabled() != false) { + setDiagnosticsEventsEnabled(other.getDiagnosticsEventsEnabled()); + } + if (other.getHealthMonitoringEnabled() != false) { + setHealthMonitoringEnabled(other.getHealthMonitoringEnabled()); + } + if (other.getIncidentLogsEnabled() != false) { + setIncidentLogsEnabled(other.getIncidentLogsEnabled()); + } + 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: + { + diagnosticsEventsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + healthMonitoringEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + incidentLogsEnabled_ = 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 boolean diagnosticsEventsEnabled_; + /** + * + * + *
+     * Optional. Indicates whether diagnostic collection is enabled for the VM
+     * cluster
+     * 
+ * + * bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diagnosticsEventsEnabled. + */ + @java.lang.Override + public boolean getDiagnosticsEventsEnabled() { + return diagnosticsEventsEnabled_; + } + /** + * + * + *
+     * Optional. Indicates whether diagnostic collection is enabled for the VM
+     * cluster
+     * 
+ * + * bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diagnosticsEventsEnabled to set. + * @return This builder for chaining. + */ + public Builder setDiagnosticsEventsEnabled(boolean value) { + + diagnosticsEventsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether diagnostic collection is enabled for the VM
+     * cluster
+     * 
+ * + * bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDiagnosticsEventsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + diagnosticsEventsEnabled_ = false; + onChanged(); + return this; + } + + private boolean healthMonitoringEnabled_; + /** + * + * + *
+     * Optional. Indicates whether health monitoring is enabled for the VM cluster
+     * 
+ * + * bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The healthMonitoringEnabled. + */ + @java.lang.Override + public boolean getHealthMonitoringEnabled() { + return healthMonitoringEnabled_; + } + /** + * + * + *
+     * Optional. Indicates whether health monitoring is enabled for the VM cluster
+     * 
+ * + * bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The healthMonitoringEnabled to set. + * @return This builder for chaining. + */ + public Builder setHealthMonitoringEnabled(boolean value) { + + healthMonitoringEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether health monitoring is enabled for the VM cluster
+     * 
+ * + * bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHealthMonitoringEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + healthMonitoringEnabled_ = false; + onChanged(); + return this; + } + + private boolean incidentLogsEnabled_; + /** + * + * + *
+     * Optional. Indicates whether incident logs and trace collection are enabled
+     * for the VM cluster
+     * 
+ * + * bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The incidentLogsEnabled. + */ + @java.lang.Override + public boolean getIncidentLogsEnabled() { + return incidentLogsEnabled_; + } + /** + * + * + *
+     * Optional. Indicates whether incident logs and trace collection are enabled
+     * for the VM cluster
+     * 
+ * + * bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The incidentLogsEnabled to set. + * @return This builder for chaining. + */ + public Builder setIncidentLogsEnabled(boolean value) { + + incidentLogsEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether incident logs and trace collection are enabled
+     * for the VM cluster
+     * 
+ * + * bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncidentLogsEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + incidentLogsEnabled_ = 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.oracledatabase.v1.DataCollectionOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DataCollectionOptions) + private static final com.google.cloud.oracledatabase.v1.DataCollectionOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DataCollectionOptions(); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataCollectionOptions 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.oracledatabase.v1.DataCollectionOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsOrBuilder.java new file mode 100644 index 000000000000..d0e9d4a4ab0d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsOrBuilder.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/vm_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DataCollectionOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DataCollectionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Indicates whether diagnostic collection is enabled for the VM
+   * cluster
+   * 
+ * + * bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diagnosticsEventsEnabled. + */ + boolean getDiagnosticsEventsEnabled(); + + /** + * + * + *
+   * Optional. Indicates whether health monitoring is enabled for the VM cluster
+   * 
+ * + * bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The healthMonitoringEnabled. + */ + boolean getHealthMonitoringEnabled(); + + /** + * + * + *
+   * Optional. Indicates whether incident logs and trace collection are enabled
+   * for the VM cluster
+   * 
+ * + * bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The incidentLogsEnabled. + */ + boolean getIncidentLogsEnabled(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseConnectionStringProfile.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseConnectionStringProfile.java new file mode 100644 index 000000000000..ee971aa8a350 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseConnectionStringProfile.java @@ -0,0 +1,3053 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The connection string profile to allow clients to group.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile} + */ +public final class DatabaseConnectionStringProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile) + DatabaseConnectionStringProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseConnectionStringProfile.newBuilder() to construct. + private DatabaseConnectionStringProfile( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseConnectionStringProfile() { + consumerGroup_ = 0; + displayName_ = ""; + hostFormat_ = 0; + protocol_ = 0; + sessionMode_ = 0; + syntaxFormat_ = 0; + tlsAuthentication_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseConnectionStringProfile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.class, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder.class); + } + + /** + * + * + *
+   * The various consumer groups available in the connection string profile.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup} + */ + public enum ConsumerGroup implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * CONSUMER_GROUP_UNSPECIFIED = 0; + */ + CONSUMER_GROUP_UNSPECIFIED(0), + /** + * + * + *
+     * High consumer group.
+     * 
+ * + * HIGH = 1; + */ + HIGH(1), + /** + * + * + *
+     * Medium consumer group.
+     * 
+ * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
+     * Low consumer group.
+     * 
+ * + * LOW = 3; + */ + LOW(3), + /** + * + * + *
+     * TP consumer group.
+     * 
+ * + * TP = 4; + */ + TP(4), + /** + * + * + *
+     * TPURGENT consumer group.
+     * 
+ * + * TPURGENT = 5; + */ + TPURGENT(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * CONSUMER_GROUP_UNSPECIFIED = 0; + */ + public static final int CONSUMER_GROUP_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * High consumer group.
+     * 
+ * + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + /** + * + * + *
+     * Medium consumer group.
+     * 
+ * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + /** + * + * + *
+     * Low consumer group.
+     * 
+ * + * LOW = 3; + */ + public static final int LOW_VALUE = 3; + /** + * + * + *
+     * TP consumer group.
+     * 
+ * + * TP = 4; + */ + public static final int TP_VALUE = 4; + /** + * + * + *
+     * TPURGENT consumer group.
+     * 
+ * + * TPURGENT = 5; + */ + public static final int TPURGENT_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 ConsumerGroup 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 ConsumerGroup forNumber(int value) { + switch (value) { + case 0: + return CONSUMER_GROUP_UNSPECIFIED; + case 1: + return HIGH; + case 2: + return MEDIUM; + case 3: + return LOW; + case 4: + return TP; + case 5: + return TPURGENT; + 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 ConsumerGroup findValueByNumber(int number) { + return ConsumerGroup.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.oracledatabase.v1.DatabaseConnectionStringProfile.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConsumerGroup[] VALUES = values(); + + public static ConsumerGroup 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 ConsumerGroup(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup) + } + + /** + * + * + *
+   * The host name format being used in the connection string.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat} + */ + public enum HostFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * HOST_FORMAT_UNSPECIFIED = 0; + */ + HOST_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * FQDN
+     * 
+ * + * FQDN = 1; + */ + FQDN(1), + /** + * + * + *
+     * IP
+     * 
+ * + * IP = 2; + */ + IP(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * HOST_FORMAT_UNSPECIFIED = 0; + */ + public static final int HOST_FORMAT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * FQDN
+     * 
+ * + * FQDN = 1; + */ + public static final int FQDN_VALUE = 1; + /** + * + * + *
+     * IP
+     * 
+ * + * IP = 2; + */ + public static final int IP_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 HostFormat 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 HostFormat forNumber(int value) { + switch (value) { + case 0: + return HOST_FORMAT_UNSPECIFIED; + case 1: + return FQDN; + case 2: + return IP; + 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 HostFormat findValueByNumber(int number) { + return HostFormat.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.oracledatabase.v1.DatabaseConnectionStringProfile.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final HostFormat[] VALUES = values(); + + public static HostFormat 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 HostFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat) + } + + /** + * + * + *
+   * The protocol being used by the connection.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol} + */ + public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * PROTOCOL_UNSPECIFIED = 0; + */ + PROTOCOL_UNSPECIFIED(0), + /** + * + * + *
+     * Tcp
+     * 
+ * + * TCP = 1; + */ + TCP(1), + /** + * + * + *
+     * Tcps
+     * 
+ * + * TCPS = 2; + */ + TCPS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Tcp
+     * 
+ * + * TCP = 1; + */ + public static final int TCP_VALUE = 1; + /** + * + * + *
+     * Tcps
+     * 
+ * + * TCPS = 2; + */ + public static final int TCPS_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 Protocol 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 Protocol forNumber(int value) { + switch (value) { + case 0: + return PROTOCOL_UNSPECIFIED; + case 1: + return TCP; + case 2: + return TCPS; + 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 Protocol findValueByNumber(int number) { + return Protocol.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.oracledatabase.v1.DatabaseConnectionStringProfile.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol 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 Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol) + } + + /** + * + * + *
+   * The session mode of the connection.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode} + */ + public enum SessionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * SESSION_MODE_UNSPECIFIED = 0; + */ + SESSION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Direct
+     * 
+ * + * DIRECT = 1; + */ + DIRECT(1), + /** + * + * + *
+     * Indirect
+     * 
+ * + * INDIRECT = 2; + */ + INDIRECT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * SESSION_MODE_UNSPECIFIED = 0; + */ + public static final int SESSION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Direct
+     * 
+ * + * DIRECT = 1; + */ + public static final int DIRECT_VALUE = 1; + /** + * + * + *
+     * Indirect
+     * 
+ * + * INDIRECT = 2; + */ + public static final int INDIRECT_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 SessionMode 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 SessionMode forNumber(int value) { + switch (value) { + case 0: + return SESSION_MODE_UNSPECIFIED; + case 1: + return DIRECT; + case 2: + return INDIRECT; + 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 SessionMode findValueByNumber(int number) { + return SessionMode.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.oracledatabase.v1.DatabaseConnectionStringProfile.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final SessionMode[] VALUES = values(); + + public static SessionMode 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 SessionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode) + } + + /** + * + * + *
+   * Specifies syntax of the connection string.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat} + */ + public enum SyntaxFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * SYNTAX_FORMAT_UNSPECIFIED = 0; + */ + SYNTAX_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * Long
+     * 
+ * + * LONG = 1; + */ + LONG(1), + /** + * + * + *
+     * Ezconnect
+     * 
+ * + * EZCONNECT = 2; + */ + EZCONNECT(2), + /** + * + * + *
+     * Ezconnectplus
+     * 
+ * + * EZCONNECTPLUS = 3; + */ + EZCONNECTPLUS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * SYNTAX_FORMAT_UNSPECIFIED = 0; + */ + public static final int SYNTAX_FORMAT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Long
+     * 
+ * + * LONG = 1; + */ + public static final int LONG_VALUE = 1; + /** + * + * + *
+     * Ezconnect
+     * 
+ * + * EZCONNECT = 2; + */ + public static final int EZCONNECT_VALUE = 2; + /** + * + * + *
+     * Ezconnectplus
+     * 
+ * + * EZCONNECTPLUS = 3; + */ + public static final int EZCONNECTPLUS_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 SyntaxFormat 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 SyntaxFormat forNumber(int value) { + switch (value) { + case 0: + return SYNTAX_FORMAT_UNSPECIFIED; + case 1: + return LONG; + case 2: + return EZCONNECT; + case 3: + return EZCONNECTPLUS; + 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 SyntaxFormat findValueByNumber(int number) { + return SyntaxFormat.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.oracledatabase.v1.DatabaseConnectionStringProfile.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final SyntaxFormat[] VALUES = values(); + + public static SyntaxFormat 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 SyntaxFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat) + } + + /** + * + * + *
+   * This field indicates the TLS authentication type of the connection.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication} + */ + public enum TLSAuthentication implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * TLS_AUTHENTICATION_UNSPECIFIED = 0; + */ + TLS_AUTHENTICATION_UNSPECIFIED(0), + /** + * + * + *
+     * Server
+     * 
+ * + * SERVER = 1; + */ + SERVER(1), + /** + * + * + *
+     * Mutual
+     * 
+ * + * MUTUAL = 2; + */ + MUTUAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * TLS_AUTHENTICATION_UNSPECIFIED = 0; + */ + public static final int TLS_AUTHENTICATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Server
+     * 
+ * + * SERVER = 1; + */ + public static final int SERVER_VALUE = 1; + /** + * + * + *
+     * Mutual
+     * 
+ * + * MUTUAL = 2; + */ + public static final int MUTUAL_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 TLSAuthentication 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 TLSAuthentication forNumber(int value) { + switch (value) { + case 0: + return TLS_AUTHENTICATION_UNSPECIFIED; + case 1: + return SERVER; + case 2: + return MUTUAL; + 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 TLSAuthentication findValueByNumber(int number) { + return TLSAuthentication.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.oracledatabase.v1.DatabaseConnectionStringProfile.getDescriptor() + .getEnumTypes() + .get(5); + } + + private static final TLSAuthentication[] VALUES = values(); + + public static TLSAuthentication 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 TLSAuthentication(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication) + } + + public static final int CONSUMER_GROUP_FIELD_NUMBER = 1; + private int consumerGroup_ = 0; + /** + * + * + *
+   * Output only. The current consumer group being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consumerGroup. + */ + @java.lang.Override + public int getConsumerGroupValue() { + return consumerGroup_; + } + /** + * + * + *
+   * Output only. The current consumer group being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consumerGroup. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + getConsumerGroup() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup.forNumber( + consumerGroup_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + .UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Output only. The display name for the database connection.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name for the database connection.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOST_FORMAT_FIELD_NUMBER = 3; + private int hostFormat_ = 0; + /** + * + * + *
+   * Output only. The host name format being currently used in connection
+   * string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for hostFormat. + */ + @java.lang.Override + public int getHostFormatValue() { + return hostFormat_; + } + /** + * + * + *
+   * Output only. The host name format being currently used in connection
+   * string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hostFormat. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat + getHostFormat() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat.forNumber( + hostFormat_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat.UNRECOGNIZED + : result; + } + + public static final int IS_REGIONAL_FIELD_NUMBER = 4; + private boolean isRegional_ = false; + /** + * + * + *
+   * Output only. This field indicates if the connection string is regional and
+   * is only applicable for cross-region Data Guard.
+   * 
+ * + * bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRegional. + */ + @java.lang.Override + public boolean getIsRegional() { + return isRegional_; + } + + public static final int PROTOCOL_FIELD_NUMBER = 5; + private int protocol_ = 0; + /** + * + * + *
+   * Output only. The protocol being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override + public int getProtocolValue() { + return protocol_; + } + /** + * + * + *
+   * Output only. The protocol being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The protocol. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol getProtocol() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol.forNumber( + protocol_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol.UNRECOGNIZED + : result; + } + + public static final int SESSION_MODE_FIELD_NUMBER = 6; + private int sessionMode_ = 0; + /** + * + * + *
+   * Output only. The current session mode of the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for sessionMode. + */ + @java.lang.Override + public int getSessionModeValue() { + return sessionMode_; + } + /** + * + * + *
+   * Output only. The current session mode of the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + getSessionMode() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode.forNumber( + sessionMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + .UNRECOGNIZED + : result; + } + + public static final int SYNTAX_FORMAT_FIELD_NUMBER = 7; + private int syntaxFormat_ = 0; + /** + * + * + *
+   * Output only. The syntax of the connection string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for syntaxFormat. + */ + @java.lang.Override + public int getSyntaxFormatValue() { + return syntaxFormat_; + } + /** + * + * + *
+   * Output only. The syntax of the connection string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The syntaxFormat. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + getSyntaxFormat() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat.forNumber( + syntaxFormat_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + .UNRECOGNIZED + : result; + } + + public static final int TLS_AUTHENTICATION_FIELD_NUMBER = 8; + private int tlsAuthentication_ = 0; + /** + * + * + *
+   * Output only. This field indicates the TLS authentication type of the
+   * connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for tlsAuthentication. + */ + @java.lang.Override + public int getTlsAuthenticationValue() { + return tlsAuthentication_; + } + /** + * + * + *
+   * Output only. This field indicates the TLS authentication type of the
+   * connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tlsAuthentication. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + getTlsAuthentication() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + .forNumber(tlsAuthentication_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + .UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * Output only. The value of the connection string.
+   * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The value of the connection string.
+   * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 (consumerGroup_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + .CONSUMER_GROUP_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, consumerGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (hostFormat_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat + .HOST_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, hostFormat_); + } + if (isRegional_ != false) { + output.writeBool(4, isRegional_); + } + if (protocol_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol + .PROTOCOL_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, protocol_); + } + if (sessionMode_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + .SESSION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, sessionMode_); + } + if (syntaxFormat_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + .SYNTAX_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, syntaxFormat_); + } + if (tlsAuthentication_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + .TLS_AUTHENTICATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, tlsAuthentication_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumerGroup_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + .CONSUMER_GROUP_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumerGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (hostFormat_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat + .HOST_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, hostFormat_); + } + if (isRegional_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isRegional_); + } + if (protocol_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol + .PROTOCOL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, protocol_); + } + if (sessionMode_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + .SESSION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, sessionMode_); + } + if (syntaxFormat_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + .SYNTAX_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, syntaxFormat_); + } + if (tlsAuthentication_ + != com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + .TLS_AUTHENTICATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, tlsAuthentication_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.oracledatabase.v1.DatabaseConnectionStringProfile)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile other = + (com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile) obj; + + if (consumerGroup_ != other.consumerGroup_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hostFormat_ != other.hostFormat_) return false; + if (getIsRegional() != other.getIsRegional()) return false; + if (protocol_ != other.protocol_) return false; + if (sessionMode_ != other.sessionMode_) return false; + if (syntaxFormat_ != other.syntaxFormat_) return false; + if (tlsAuthentication_ != other.tlsAuthentication_) 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) + CONSUMER_GROUP_FIELD_NUMBER; + hash = (53 * hash) + consumerGroup_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + HOST_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + hostFormat_; + hash = (37 * hash) + IS_REGIONAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRegional()); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (37 * hash) + SESSION_MODE_FIELD_NUMBER; + hash = (53 * hash) + sessionMode_; + hash = (37 * hash) + SYNTAX_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + syntaxFormat_; + hash = (37 * hash) + TLS_AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + tlsAuthentication_; + 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.oracledatabase.v1.DatabaseConnectionStringProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile 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.oracledatabase.v1.DatabaseConnectionStringProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile 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.oracledatabase.v1.DatabaseConnectionStringProfile parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile 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.oracledatabase.v1.DatabaseConnectionStringProfile + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + 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.oracledatabase.v1.DatabaseConnectionStringProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile 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.oracledatabase.v1.DatabaseConnectionStringProfile 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 connection string profile to allow clients to group.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile) + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.class, + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumerGroup_ = 0; + displayName_ = ""; + hostFormat_ = 0; + isRegional_ = false; + protocol_ = 0; + sessionMode_ = 0; + syntaxFormat_ = 0; + tlsAuthentication_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile build() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile buildPartial() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile result = + new com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumerGroup_ = consumerGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hostFormat_ = hostFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isRegional_ = isRegional_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sessionMode_ = sessionMode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.syntaxFormat_ = syntaxFormat_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.tlsAuthentication_ = tlsAuthentication_; + } + if (((from_bitField0_ & 0x00000100) != 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.oracledatabase.v1.DatabaseConnectionStringProfile) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile other) { + if (other + == com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + .getDefaultInstance()) return this; + if (other.consumerGroup_ != 0) { + setConsumerGroupValue(other.getConsumerGroupValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hostFormat_ != 0) { + setHostFormatValue(other.getHostFormatValue()); + } + if (other.getIsRegional() != false) { + setIsRegional(other.getIsRegional()); + } + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + if (other.sessionMode_ != 0) { + setSessionModeValue(other.getSessionModeValue()); + } + if (other.syntaxFormat_ != 0) { + setSyntaxFormatValue(other.getSyntaxFormatValue()); + } + if (other.tlsAuthentication_ != 0) { + setTlsAuthenticationValue(other.getTlsAuthenticationValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000100; + 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: + { + consumerGroup_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + hostFormat_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + isRegional_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + sessionMode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + syntaxFormat_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + tlsAuthentication_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + 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 consumerGroup_ = 0; + /** + * + * + *
+     * Output only. The current consumer group being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consumerGroup. + */ + @java.lang.Override + public int getConsumerGroupValue() { + return consumerGroup_; + } + /** + * + * + *
+     * Output only. The current consumer group being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for consumerGroup to set. + * @return This builder for chaining. + */ + public Builder setConsumerGroupValue(int value) { + consumerGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current consumer group being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consumerGroup. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + getConsumerGroup() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + .forNumber(consumerGroup_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The current consumer group being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consumerGroup to set. + * @return This builder for chaining. + */ + public Builder setConsumerGroup( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + consumerGroup_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current consumer group being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsumerGroup() { + bitField0_ = (bitField0_ & ~0x00000001); + consumerGroup_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. The display name for the database connection.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name for the database connection.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name for the database connection.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name for the database connection.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name for the database connection.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int hostFormat_ = 0; + /** + * + * + *
+     * Output only. The host name format being currently used in connection
+     * string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for hostFormat. + */ + @java.lang.Override + public int getHostFormatValue() { + return hostFormat_; + } + /** + * + * + *
+     * Output only. The host name format being currently used in connection
+     * string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for hostFormat to set. + * @return This builder for chaining. + */ + public Builder setHostFormatValue(int value) { + hostFormat_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The host name format being currently used in connection
+     * string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hostFormat. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat + getHostFormat() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat.forNumber( + hostFormat_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The host name format being currently used in connection
+     * string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The hostFormat to set. + * @return This builder for chaining. + */ + public Builder setHostFormat( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + hostFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The host name format being currently used in connection
+     * string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearHostFormat() { + bitField0_ = (bitField0_ & ~0x00000004); + hostFormat_ = 0; + onChanged(); + return this; + } + + private boolean isRegional_; + /** + * + * + *
+     * Output only. This field indicates if the connection string is regional and
+     * is only applicable for cross-region Data Guard.
+     * 
+ * + * bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRegional. + */ + @java.lang.Override + public boolean getIsRegional() { + return isRegional_; + } + /** + * + * + *
+     * Output only. This field indicates if the connection string is regional and
+     * is only applicable for cross-region Data Guard.
+     * 
+ * + * bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isRegional to set. + * @return This builder for chaining. + */ + public Builder setIsRegional(boolean value) { + + isRegional_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates if the connection string is regional and
+     * is only applicable for cross-region Data Guard.
+     * 
+ * + * bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsRegional() { + bitField0_ = (bitField0_ & ~0x00000008); + isRegional_ = false; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + * + * + *
+     * Output only. The protocol being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override + public int getProtocolValue() { + return protocol_; + } + /** + * + * + *
+     * Output only. The protocol being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The protocol being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The protocol. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol + getProtocol() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol.forNumber( + protocol_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The protocol being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The protocol being used by the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000010); + protocol_ = 0; + onChanged(); + return this; + } + + private int sessionMode_ = 0; + /** + * + * + *
+     * Output only. The current session mode of the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for sessionMode. + */ + @java.lang.Override + public int getSessionModeValue() { + return sessionMode_; + } + /** + * + * + *
+     * Output only. The current session mode of the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for sessionMode to set. + * @return This builder for chaining. + */ + public Builder setSessionModeValue(int value) { + sessionMode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current session mode of the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + getSessionMode() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode.forNumber( + sessionMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The current session mode of the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The sessionMode to set. + * @return This builder for chaining. + */ + public Builder setSessionMode( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + sessionMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current session mode of the connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSessionMode() { + bitField0_ = (bitField0_ & ~0x00000020); + sessionMode_ = 0; + onChanged(); + return this; + } + + private int syntaxFormat_ = 0; + /** + * + * + *
+     * Output only. The syntax of the connection string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for syntaxFormat. + */ + @java.lang.Override + public int getSyntaxFormatValue() { + return syntaxFormat_; + } + /** + * + * + *
+     * Output only. The syntax of the connection string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for syntaxFormat to set. + * @return This builder for chaining. + */ + public Builder setSyntaxFormatValue(int value) { + syntaxFormat_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The syntax of the connection string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The syntaxFormat. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + getSyntaxFormat() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat.forNumber( + syntaxFormat_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The syntax of the connection string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The syntaxFormat to set. + * @return This builder for chaining. + */ + public Builder setSyntaxFormat( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + syntaxFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The syntax of the connection string.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSyntaxFormat() { + bitField0_ = (bitField0_ & ~0x00000040); + syntaxFormat_ = 0; + onChanged(); + return this; + } + + private int tlsAuthentication_ = 0; + /** + * + * + *
+     * Output only. This field indicates the TLS authentication type of the
+     * connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for tlsAuthentication. + */ + @java.lang.Override + public int getTlsAuthenticationValue() { + return tlsAuthentication_; + } + /** + * + * + *
+     * Output only. This field indicates the TLS authentication type of the
+     * connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for tlsAuthentication to set. + * @return This builder for chaining. + */ + public Builder setTlsAuthenticationValue(int value) { + tlsAuthentication_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the TLS authentication type of the
+     * connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tlsAuthentication. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + getTlsAuthentication() { + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication result = + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + .forNumber(tlsAuthentication_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. This field indicates the TLS authentication type of the
+     * connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The tlsAuthentication to set. + * @return This builder for chaining. + */ + public Builder setTlsAuthentication( + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + tlsAuthentication_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This field indicates the TLS authentication type of the
+     * connection.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTlsAuthentication() { + bitField0_ = (bitField0_ & ~0x00000080); + tlsAuthentication_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Output only. The value of the connection string.
+     * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The value of the connection string.
+     * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The value of the connection string.
+     * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The value of the connection string.
+     * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The value of the connection string.
+     * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000100; + 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.oracledatabase.v1.DatabaseConnectionStringProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile) + private static final com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile(); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseConnectionStringProfile 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.oracledatabase.v1.DatabaseConnectionStringProfile + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseConnectionStringProfileOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseConnectionStringProfileOrBuilder.java new file mode 100644 index 000000000000..cc0b36661c8e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseConnectionStringProfileOrBuilder.java @@ -0,0 +1,270 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DatabaseConnectionStringProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The current consumer group being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consumerGroup. + */ + int getConsumerGroupValue(); + /** + * + * + *
+   * Output only. The current consumer group being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consumerGroup. + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + getConsumerGroup(); + + /** + * + * + *
+   * Output only. The display name for the database connection.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. The display name for the database connection.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The host name format being currently used in connection
+   * string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for hostFormat. + */ + int getHostFormatValue(); + /** + * + * + *
+   * Output only. The host name format being currently used in connection
+   * string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hostFormat. + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat getHostFormat(); + + /** + * + * + *
+   * Output only. This field indicates if the connection string is regional and
+   * is only applicable for cross-region Data Guard.
+   * 
+ * + * bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRegional. + */ + boolean getIsRegional(); + + /** + * + * + *
+   * Output only. The protocol being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + /** + * + * + *
+   * Output only. The protocol being used by the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The protocol. + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol getProtocol(); + + /** + * + * + *
+   * Output only. The current session mode of the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for sessionMode. + */ + int getSessionModeValue(); + /** + * + * + *
+   * Output only. The current session mode of the connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionMode. + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode getSessionMode(); + + /** + * + * + *
+   * Output only. The syntax of the connection string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for syntaxFormat. + */ + int getSyntaxFormatValue(); + /** + * + * + *
+   * Output only. The syntax of the connection string.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The syntaxFormat. + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat getSyntaxFormat(); + + /** + * + * + *
+   * Output only. This field indicates the TLS authentication type of the
+   * connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for tlsAuthentication. + */ + int getTlsAuthenticationValue(); + /** + * + * + *
+   * Output only. This field indicates the TLS authentication type of the
+   * connection.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tlsAuthentication. + */ + com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + getTlsAuthentication(); + + /** + * + * + *
+   * Output only. The value of the connection string.
+   * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * Output only. The value of the connection string.
+   * 
+ * + * string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNode.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNode.java new file mode 100644 index 000000000000..23b977f58a6f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNode.java @@ -0,0 +1,938 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_node.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the database node resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbNode} + */ +public final class DbNode extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbNode) + DbNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DbNode.newBuilder() to construct. + private DbNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbNode() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbNode(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbNode.class, + com.google.cloud.oracledatabase.v1.DbNode.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the database node resource in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+   * 
+ * + * 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 name of the database node resource in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+   * 
+ * + * 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 PROPERTIES_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.DbNodeProperties properties_; + /** + * + * + *
+   * Optional. Various properties of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Various properties of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance() + : properties_; + } + /** + * + * + *
+   * Optional. Various properties of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance() + : properties_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getProperties()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProperties()); + } + 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.oracledatabase.v1.DbNode)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbNode other = + (com.google.cloud.oracledatabase.v1.DbNode) obj; + + if (!getName().equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) 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 (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbNode parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbNode 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.oracledatabase.v1.DbNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbNode 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.oracledatabase.v1.DbNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbNode parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbNode 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.oracledatabase.v1.DbNode parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbNode 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.oracledatabase.v1.DbNode parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbNode 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.oracledatabase.v1.DbNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the database node resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbNode} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbNode) + com.google.cloud.oracledatabase.v1.DbNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbNode.class, + com.google.cloud.oracledatabase.v1.DbNode.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNode_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNode getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbNode.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNode build() { + com.google.cloud.oracledatabase.v1.DbNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNode buildPartial() { + com.google.cloud.oracledatabase.v1.DbNode result = + new com.google.cloud.oracledatabase.v1.DbNode(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.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.oracledatabase.v1.DbNode) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbNode) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbNode other) { + if (other == com.google.cloud.oracledatabase.v1.DbNode.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + 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: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 name_ = ""; + /** + * + * + *
+     * Identifier. The name of the database node resource in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+     * 
+ * + * 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 name of the database node resource in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+     * 
+ * + * 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 name of the database node resource in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+     * 
+ * + * 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 name of the database node resource in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+     * 
+ * + * 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 name of the database node resource in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+     * 
+ * + * 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 com.google.cloud.oracledatabase.v1.DbNodeProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbNodeProperties, + com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder, + com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder> + propertiesBuilder_; + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.DbNodeProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(com.google.cloud.oracledatabase.v1.DbNodeProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties(com.google.cloud.oracledatabase.v1.DbNodeProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance() + : properties_; + } + } + /** + * + * + *
+     * Optional. Various properties of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbNodeProperties, + com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder, + com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbNodeProperties, + com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder, + com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + @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.oracledatabase.v1.DbNode) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbNode) + private static final com.google.cloud.oracledatabase.v1.DbNode DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbNode(); + } + + public static com.google.cloud.oracledatabase.v1.DbNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbNode 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.oracledatabase.v1.DbNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java new file mode 100644 index 000000000000..abd1a6d306f7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java @@ -0,0 +1,269 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 DbNodeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cloudVmCluster; + private final String dbNode; + + @Deprecated + protected DbNodeName() { + project = null; + location = null; + cloudVmCluster = null; + dbNode = null; + } + + private DbNodeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudVmCluster = Preconditions.checkNotNull(builder.getCloudVmCluster()); + dbNode = Preconditions.checkNotNull(builder.getDbNode()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudVmCluster() { + return cloudVmCluster; + } + + public String getDbNode() { + return dbNode; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DbNodeName of( + String project, String location, String cloudVmCluster, String dbNode) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudVmCluster(cloudVmCluster) + .setDbNode(dbNode) + .build(); + } + + public static String format( + String project, String location, String cloudVmCluster, String dbNode) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudVmCluster(cloudVmCluster) + .setDbNode(dbNode) + .build() + .toString(); + } + + public static DbNodeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.validatedMatch( + formattedString, "DbNodeName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cloud_vm_cluster"), + matchMap.get("db_node")); + } + + 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 (DbNodeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.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 (cloudVmCluster != null) { + fieldMapBuilder.put("cloud_vm_cluster", cloudVmCluster); + } + if (dbNode != null) { + fieldMapBuilder.put("db_node", dbNode); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.instantiate( + "project", + project, + "location", + location, + "cloud_vm_cluster", + cloudVmCluster, + "db_node", + dbNode); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DbNodeName that = ((DbNodeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cloudVmCluster, that.cloudVmCluster) + && Objects.equals(this.dbNode, that.dbNode); + } + 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(cloudVmCluster); + h *= 1000003; + h ^= Objects.hashCode(dbNode); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}. + */ + public static class Builder { + private String project; + private String location; + private String cloudVmCluster; + private String dbNode; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudVmCluster() { + return cloudVmCluster; + } + + public String getDbNode() { + return dbNode; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCloudVmCluster(String cloudVmCluster) { + this.cloudVmCluster = cloudVmCluster; + return this; + } + + public Builder setDbNode(String dbNode) { + this.dbNode = dbNode; + return this; + } + + private Builder(DbNodeName dbNodeName) { + this.project = dbNodeName.project; + this.location = dbNodeName.location; + this.cloudVmCluster = dbNodeName.cloudVmCluster; + this.dbNode = dbNodeName.dbNode; + } + + public DbNodeName build() { + return new DbNodeName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeOrBuilder.java new file mode 100644 index 000000000000..eb5cb970b966 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeOrBuilder.java @@ -0,0 +1,94 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_node.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DbNodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbNode) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the database node resource in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the database node resource in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Various properties of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * + * + *
+   * Optional. Various properties of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.DbNodeProperties getProperties(); + /** + * + * + *
+   * Optional. Various properties of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder getPropertiesOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java new file mode 100644 index 000000000000..d88aefbd54a2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java @@ -0,0 +1,1844 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_node.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Various properties and settings associated with Db node.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbNodeProperties} + */ +public final class DbNodeProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbNodeProperties) + DbNodePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use DbNodeProperties.newBuilder() to construct. + private DbNodeProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbNodeProperties() { + ocid_ = ""; + dbServerOcid_ = ""; + hostname_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbNodeProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbNodeProperties.class, + com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder.class); + } + + /** + * + * + *
+   * The various lifecycle states of the database node.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbNodeProperties.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Indicates that the resource is in provisioning state.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * Indicates that the resource is in available state.
+     * 
+ * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
+     * Indicates that the resource is in updating state.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * Indicates that the resource is in stopping state.
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + * + * + *
+     * Indicates that the resource is in stopped state.
+     * 
+ * + * STOPPED = 5; + */ + STOPPED(5), + /** + * + * + *
+     * Indicates that the resource is in starting state.
+     * 
+ * + * STARTING = 6; + */ + STARTING(6), + /** + * + * + *
+     * Indicates that the resource is in terminating state.
+     * 
+ * + * TERMINATING = 7; + */ + TERMINATING(7), + /** + * + * + *
+     * Indicates that the resource is in terminated state.
+     * 
+ * + * TERMINATED = 8; + */ + TERMINATED(8), + /** + * + * + *
+     * Indicates that the resource is in failed state.
+     * 
+ * + * FAILED = 9; + */ + FAILED(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Indicates that the resource is in provisioning state.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * Indicates that the resource is in available state.
+     * 
+ * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + /** + * + * + *
+     * Indicates that the resource is in updating state.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * Indicates that the resource is in stopping state.
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + /** + * + * + *
+     * Indicates that the resource is in stopped state.
+     * 
+ * + * STOPPED = 5; + */ + public static final int STOPPED_VALUE = 5; + /** + * + * + *
+     * Indicates that the resource is in starting state.
+     * 
+ * + * STARTING = 6; + */ + public static final int STARTING_VALUE = 6; + /** + * + * + *
+     * Indicates that the resource is in terminating state.
+     * 
+ * + * TERMINATING = 7; + */ + public static final int TERMINATING_VALUE = 7; + /** + * + * + *
+     * Indicates that the resource is in terminated state.
+     * 
+ * + * TERMINATED = 8; + */ + public static final int TERMINATED_VALUE = 8; + /** + * + * + *
+     * Indicates that the resource is in failed state.
+     * 
+ * + * FAILED = 9; + */ + public static final int FAILED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return STOPPING; + case 5: + return STOPPED; + case 6: + return STARTING; + case 7: + return TERMINATING; + case 8: + return TERMINATED; + case 9: + return FAILED; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.DbNodeProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbNodeProperties.State) + } + + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + /** + * + * + *
+   * Output only. OCID of database node.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCID of database node.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCPU_COUNT_FIELD_NUMBER = 2; + private int ocpuCount_ = 0; + /** + * + * + *
+   * Optional. OCPU count per database node.
+   * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + @java.lang.Override + public int getOcpuCount() { + return ocpuCount_; + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 3; + private int memorySizeGb_ = 0; + /** + * + * + *
+   * Memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 3; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER = 4; + private int dbNodeStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. Local storage per database node.
+   * 
+ * + * int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + + public static final int DB_SERVER_OCID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbServerOcid_ = ""; + /** + * + * + *
+   * Optional. Database server OCID.
+   * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbServerOcid. + */ + @java.lang.Override + public java.lang.String getDbServerOcid() { + java.lang.Object ref = dbServerOcid_; + 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(); + dbServerOcid_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Database server OCID.
+   * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbServerOcid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbServerOcidBytes() { + java.lang.Object ref = dbServerOcid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbServerOcid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + * + * + *
+   * Optional. DNS
+   * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. DNS
+   * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.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. State of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeProperties.State getState() { + com.google.cloud.oracledatabase.v1.DbNodeProperties.State result = + com.google.cloud.oracledatabase.v1.DbNodeProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbNodeProperties.State.UNRECOGNIZED + : result; + } + + public static final int TOTAL_CPU_CORE_COUNT_FIELD_NUMBER = 10; + private int totalCpuCoreCount_ = 0; + /** + * + * + *
+   * Total CPU core count of the database node.
+   * 
+ * + * int32 total_cpu_core_count = 10; + * + * @return The totalCpuCoreCount. + */ + @java.lang.Override + public int getTotalCpuCoreCount() { + return totalCpuCoreCount_; + } + + 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(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (ocpuCount_ != 0) { + output.writeInt32(2, ocpuCount_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(3, memorySizeGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + output.writeInt32(4, dbNodeStorageSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbServerOcid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dbServerOcid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hostname_); + } + if (state_ + != com.google.cloud.oracledatabase.v1.DbNodeProperties.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, state_); + } + if (totalCpuCoreCount_ != 0) { + output.writeInt32(10, totalCpuCoreCount_); + } + 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(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (ocpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, ocpuCount_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, memorySizeGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, dbNodeStorageSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbServerOcid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dbServerOcid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hostname_); + } + if (state_ + != com.google.cloud.oracledatabase.v1.DbNodeProperties.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (totalCpuCoreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, totalCpuCoreCount_); + } + 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.oracledatabase.v1.DbNodeProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbNodeProperties other = + (com.google.cloud.oracledatabase.v1.DbNodeProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (getOcpuCount() != other.getOcpuCount()) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (getDbNodeStorageSizeGb() != other.getDbNodeStorageSizeGb()) return false; + if (!getDbServerOcid().equals(other.getDbServerOcid())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (state_ != other.state_) return false; + if (getTotalCpuCoreCount() != other.getTotalCpuCoreCount()) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + OCPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getOcpuCount(); + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDbNodeStorageSizeGb(); + hash = (37 * hash) + DB_SERVER_OCID_FIELD_NUMBER; + hash = (53 * hash) + getDbServerOcid().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + TOTAL_CPU_CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCpuCoreCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties 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.oracledatabase.v1.DbNodeProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties 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.oracledatabase.v1.DbNodeProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties 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.oracledatabase.v1.DbNodeProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties 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.oracledatabase.v1.DbNodeProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties 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.oracledatabase.v1.DbNodeProperties 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; + } + /** + * + * + *
+   * Various properties and settings associated with Db node.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbNodeProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbNodeProperties) + com.google.cloud.oracledatabase.v1.DbNodePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbNodeProperties.class, + com.google.cloud.oracledatabase.v1.DbNodeProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbNodeProperties.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ocid_ = ""; + ocpuCount_ = 0; + memorySizeGb_ = 0; + dbNodeStorageSizeGb_ = 0; + dbServerOcid_ = ""; + hostname_ = ""; + state_ = 0; + totalCpuCoreCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbNodeProto + .internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeProperties build() { + com.google.cloud.oracledatabase.v1.DbNodeProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeProperties buildPartial() { + com.google.cloud.oracledatabase.v1.DbNodeProperties result = + new com.google.cloud.oracledatabase.v1.DbNodeProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbNodeProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ocpuCount_ = ocpuCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.memorySizeGb_ = memorySizeGb_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dbNodeStorageSizeGb_ = dbNodeStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dbServerOcid_ = dbServerOcid_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.totalCpuCoreCount_ = totalCpuCoreCount_; + } + } + + @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.oracledatabase.v1.DbNodeProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbNodeProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbNodeProperties other) { + if (other == com.google.cloud.oracledatabase.v1.DbNodeProperties.getDefaultInstance()) + return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getOcpuCount() != 0) { + setOcpuCount(other.getOcpuCount()); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (other.getDbNodeStorageSizeGb() != 0) { + setDbNodeStorageSizeGb(other.getDbNodeStorageSizeGb()); + } + if (!other.getDbServerOcid().isEmpty()) { + dbServerOcid_ = other.dbServerOcid_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getTotalCpuCoreCount() != 0) { + setTotalCpuCoreCount(other.getTotalCpuCoreCount()); + } + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + ocpuCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + memorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + dbNodeStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + dbServerOcid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 80: + { + totalCpuCoreCount_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 80 + 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 ocid_ = ""; + /** + * + * + *
+     * Output only. OCID of database node.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCID of database node.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCID of database node.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database node.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database node.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int ocpuCount_; + /** + * + * + *
+     * Optional. OCPU count per database node.
+     * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + @java.lang.Override + public int getOcpuCount() { + return ocpuCount_; + } + /** + * + * + *
+     * Optional. OCPU count per database node.
+     * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ocpuCount to set. + * @return This builder for chaining. + */ + public Builder setOcpuCount(int value) { + + ocpuCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCPU count per database node.
+     * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOcpuCount() { + bitField0_ = (bitField0_ & ~0x00000002); + ocpuCount_ = 0; + onChanged(); + return this; + } + + private int memorySizeGb_; + /** + * + * + *
+     * Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 3; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + /** + * + * + *
+     * Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 3; + * + * @param value The memorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 3; + * + * @return This builder for chaining. + */ + public Builder clearMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private int dbNodeStorageSizeGb_; + /** + * + * + *
+     * Optional. Local storage per database node.
+     * 
+ * + * int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + /** + * + * + *
+     * Optional. Local storage per database node.
+     * 
+ * + * int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbNodeStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDbNodeStorageSizeGb(int value) { + + dbNodeStorageSizeGb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Local storage per database node.
+     * 
+ * + * int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbNodeStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000008); + dbNodeStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object dbServerOcid_ = ""; + /** + * + * + *
+     * Optional. Database server OCID.
+     * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbServerOcid. + */ + public java.lang.String getDbServerOcid() { + java.lang.Object ref = dbServerOcid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbServerOcid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Database server OCID.
+     * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbServerOcid. + */ + public com.google.protobuf.ByteString getDbServerOcidBytes() { + java.lang.Object ref = dbServerOcid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbServerOcid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Database server OCID.
+     * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbServerOcid to set. + * @return This builder for chaining. + */ + public Builder setDbServerOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbServerOcid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Database server OCID.
+     * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbServerOcid() { + dbServerOcid_ = getDefaultInstance().getDbServerOcid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Database server OCID.
+     * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dbServerOcid to set. + * @return This builder for chaining. + */ + public Builder setDbServerOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbServerOcid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * Optional. DNS
+     * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. DNS
+     * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. DNS
+     * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DNS
+     * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DNS
+     * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.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. State of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeProperties.State getState() { + com.google.cloud.oracledatabase.v1.DbNodeProperties.State result = + com.google.cloud.oracledatabase.v1.DbNodeProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbNodeProperties.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.DbNodeProperties.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the database node.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private int totalCpuCoreCount_; + /** + * + * + *
+     * Total CPU core count of the database node.
+     * 
+ * + * int32 total_cpu_core_count = 10; + * + * @return The totalCpuCoreCount. + */ + @java.lang.Override + public int getTotalCpuCoreCount() { + return totalCpuCoreCount_; + } + /** + * + * + *
+     * Total CPU core count of the database node.
+     * 
+ * + * int32 total_cpu_core_count = 10; + * + * @param value The totalCpuCoreCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCpuCoreCount(int value) { + + totalCpuCoreCount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Total CPU core count of the database node.
+     * 
+ * + * int32 total_cpu_core_count = 10; + * + * @return This builder for chaining. + */ + public Builder clearTotalCpuCoreCount() { + bitField0_ = (bitField0_ & ~0x00000080); + totalCpuCoreCount_ = 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.oracledatabase.v1.DbNodeProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbNodeProperties) + private static final com.google.cloud.oracledatabase.v1.DbNodeProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbNodeProperties(); + } + + public static com.google.cloud.oracledatabase.v1.DbNodeProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbNodeProperties 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.oracledatabase.v1.DbNodeProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java new file mode 100644 index 000000000000..d5d1afc287f8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_node.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DbNodePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbNodeProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. OCID of database node.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + /** + * + * + *
+   * Output only. OCID of database node.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
+   * Optional. OCPU count per database node.
+   * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + int getOcpuCount(); + + /** + * + * + *
+   * Memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 3; + * + * @return The memorySizeGb. + */ + int getMemorySizeGb(); + + /** + * + * + *
+   * Optional. Local storage per database node.
+   * 
+ * + * int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + int getDbNodeStorageSizeGb(); + + /** + * + * + *
+   * Optional. Database server OCID.
+   * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbServerOcid. + */ + java.lang.String getDbServerOcid(); + /** + * + * + *
+   * Optional. Database server OCID.
+   * 
+ * + * string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbServerOcid. + */ + com.google.protobuf.ByteString getDbServerOcidBytes(); + + /** + * + * + *
+   * Optional. DNS
+   * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Optional. DNS
+   * 
+ * + * string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Output only. State of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the database node.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.DbNodeProperties.State getState(); + + /** + * + * + *
+   * Total CPU core count of the database node.
+   * 
+ * + * int32 total_cpu_core_count = 10; + * + * @return The totalCpuCoreCount. + */ + int getTotalCpuCoreCount(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java new file mode 100644 index 000000000000..c2720fa2afaf --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java @@ -0,0 +1,118 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_node.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class DbNodeProto { + private DbNodeProto() {} + + 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_oracledatabase_v1_DbNode_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbNode_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_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/oracledatabase/v1/db_node" + + ".proto\022\036google.cloud.oracledatabase.v1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\"\202\002\n\006DbNode\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\010\022I\n\nproperties\030\003 \001(\01320.google.cl" + + "oud.oracledatabase.v1.DbNodePropertiesB\003" + + "\340A\001:\231\001\352A\225\001\n$oracledatabase.googleapis.co" + + "m/DbNode\022\\projects/{project}/locations/{" + + "location}/cloudVmClusters/{cloud_vm_clus" + + "ter}/dbNodes/{db_node}*\007dbNodes2\006dbNode\"" + + "\300\003\n\020DbNodeProperties\022\021\n\004ocid\030\001 \001(\tB\003\340A\003\022" + + "\027\n\nocpu_count\030\002 \001(\005B\003\340A\001\022\026\n\016memory_size_" + + "gb\030\003 \001(\005\022$\n\027db_node_storage_size_gb\030\004 \001(" + + "\005B\003\340A\001\022\033\n\016db_server_ocid\030\005 \001(\tB\003\340A\001\022\025\n\010h" + + "ostname\030\010 \001(\tB\003\340A\001\022J\n\005state\030\t \001(\01626.goog" + + "le.cloud.oracledatabase.v1.DbNodePropert" + + "ies.StateB\003\340A\003\022\034\n\024total_cpu_core_count\030\n" + + " \001(\005\"\243\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r\n\tAVAILABLE\020\002\022\014\n\010UPDATI" + + "NG\020\003\022\014\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\014\n\010START" + + "ING\020\006\022\017\n\013TERMINATING\020\007\022\016\n\nTERMINATED\020\010\022\n" + + "\n\006FAILED\020\tB\345\001\n\"com.google.cloud.oracleda" + + "tabase.v1B\013DbNodeProtoP\001ZJcloud.google.c" + + "om/go/oracledatabase/apiv1/oracledatabas" + + "epb;oracledatabasepb\252\002\036Google.Cloud.Orac" + + "leDatabase.V1\312\002\036Google\\Cloud\\OracleDatab" + + "ase\\V1\352\002!Google::Cloud::OracleDatabase::" + + "V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_DbNode_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbNode_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbNode_descriptor, + new java.lang.String[] { + "Name", "Properties", + }); + internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbNodeProperties_descriptor, + new java.lang.String[] { + "Ocid", + "OcpuCount", + "MemorySizeGb", + "DbNodeStorageSizeGb", + "DbServerOcid", + "Hostname", + "State", + "TotalCpuCoreCount", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServer.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServer.java new file mode 100644 index 000000000000..716eabcdb2cc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServer.java @@ -0,0 +1,1120 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_server.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the database server resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbServer} + */ +public final class DbServer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbServer) + DbServerOrBuilder { + private static final long serialVersionUID = 0L; + // Use DbServer.newBuilder() to construct. + private DbServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbServer() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbServer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbServer.class, + com.google.cloud.oracledatabase.v1.DbServer.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the database server resource with the format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+   * 
+ * + * 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 name of the database server resource with the format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+   * 
+ * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.DbServerProperties properties_; + /** + * + * + *
+   * Optional. Various properties of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Various properties of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance() + : properties_; + } + /** + * + * + *
+   * Optional. Various properties of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance() + : properties_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getProperties()); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProperties()); + } + 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.oracledatabase.v1.DbServer)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbServer other = + (com.google.cloud.oracledatabase.v1.DbServer) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbServer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbServer 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.oracledatabase.v1.DbServer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbServer 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.oracledatabase.v1.DbServer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbServer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbServer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbServer 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.oracledatabase.v1.DbServer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbServer 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.oracledatabase.v1.DbServer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbServer 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.oracledatabase.v1.DbServer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the database server resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbServer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbServer) + com.google.cloud.oracledatabase.v1.DbServerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbServer.class, + com.google.cloud.oracledatabase.v1.DbServer.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbServer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServer_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServer getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbServer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServer build() { + com.google.cloud.oracledatabase.v1.DbServer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServer buildPartial() { + com.google.cloud.oracledatabase.v1.DbServer result = + new com.google.cloud.oracledatabase.v1.DbServer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbServer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.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.oracledatabase.v1.DbServer) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbServer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbServer other) { + if (other == com.google.cloud.oracledatabase.v1.DbServer.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + 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 name_ = ""; + /** + * + * + *
+     * Identifier. The name of the database server resource with the format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+     * 
+ * + * 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 name of the database server resource with the format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+     * 
+ * + * 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 name of the database server resource with the format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+     * 
+ * + * 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 name of the database server resource with the format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+     * 
+ * + * 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 name of the database server resource with the format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+     * 
+ * + * 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 displayName_ = ""; + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly name for this resource.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DbServerProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbServerProperties, + com.google.cloud.oracledatabase.v1.DbServerProperties.Builder, + com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder> + propertiesBuilder_; + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.DbServerProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(com.google.cloud.oracledatabase.v1.DbServerProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DbServerProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties(com.google.cloud.oracledatabase.v1.DbServerProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000004); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbServerProperties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance() + : properties_; + } + } + /** + * + * + *
+     * Optional. Various properties of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbServerProperties, + com.google.cloud.oracledatabase.v1.DbServerProperties.Builder, + com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbServerProperties, + com.google.cloud.oracledatabase.v1.DbServerProperties.Builder, + com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + @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.oracledatabase.v1.DbServer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbServer) + private static final com.google.cloud.oracledatabase.v1.DbServer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbServer(); + } + + public static com.google.cloud.oracledatabase.v1.DbServer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbServer 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.oracledatabase.v1.DbServer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java new file mode 100644 index 000000000000..59db343c240a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java @@ -0,0 +1,270 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 DbServerName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE_DB_SERVER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cloudExadataInfrastructure; + private final String dbServer; + + @Deprecated + protected DbServerName() { + project = null; + location = null; + cloudExadataInfrastructure = null; + dbServer = null; + } + + private DbServerName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudExadataInfrastructure = + Preconditions.checkNotNull(builder.getCloudExadataInfrastructure()); + dbServer = Preconditions.checkNotNull(builder.getDbServer()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudExadataInfrastructure() { + return cloudExadataInfrastructure; + } + + public String getDbServer() { + return dbServer; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DbServerName of( + String project, String location, String cloudExadataInfrastructure, String dbServer) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .setDbServer(dbServer) + .build(); + } + + public static String format( + String project, String location, String cloudExadataInfrastructure, String dbServer) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .setDbServer(dbServer) + .build() + .toString(); + } + + public static DbServerName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE_DB_SERVER.validatedMatch( + formattedString, "DbServerName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cloud_exadata_infrastructure"), + matchMap.get("db_server")); + } + + 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 (DbServerName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE_DB_SERVER.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 (cloudExadataInfrastructure != null) { + fieldMapBuilder.put("cloud_exadata_infrastructure", cloudExadataInfrastructure); + } + if (dbServer != null) { + fieldMapBuilder.put("db_server", dbServer); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLOUD_EXADATA_INFRASTRUCTURE_DB_SERVER.instantiate( + "project", + project, + "location", + location, + "cloud_exadata_infrastructure", + cloudExadataInfrastructure, + "db_server", + dbServer); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DbServerName that = ((DbServerName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cloudExadataInfrastructure, that.cloudExadataInfrastructure) + && Objects.equals(this.dbServer, that.dbServer); + } + 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(cloudExadataInfrastructure); + h *= 1000003; + h ^= Objects.hashCode(dbServer); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}. + */ + public static class Builder { + private String project; + private String location; + private String cloudExadataInfrastructure; + private String dbServer; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudExadataInfrastructure() { + return cloudExadataInfrastructure; + } + + public String getDbServer() { + return dbServer; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCloudExadataInfrastructure(String cloudExadataInfrastructure) { + this.cloudExadataInfrastructure = cloudExadataInfrastructure; + return this; + } + + public Builder setDbServer(String dbServer) { + this.dbServer = dbServer; + return this; + } + + private Builder(DbServerName dbServerName) { + this.project = dbServerName.project; + this.location = dbServerName.location; + this.cloudExadataInfrastructure = dbServerName.cloudExadataInfrastructure; + this.dbServer = dbServerName.dbServer; + } + + public DbServerName build() { + return new DbServerName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerOrBuilder.java new file mode 100644 index 000000000000..0816e87c72c0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_server.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DbServerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbServer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the database server resource with the format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the database server resource with the format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. User friendly name for this resource.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Various properties of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * + * + *
+   * Optional. Various properties of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.DbServerProperties getProperties(); + /** + * + * + *
+   * Optional. Various properties of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder getPropertiesOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerProperties.java new file mode 100644 index 000000000000..8b44228b9d15 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerProperties.java @@ -0,0 +1,1949 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_server.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Various properties and settings associated with Exadata database server.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbServerProperties} + */ +public final class DbServerProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbServerProperties) + DbServerPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use DbServerProperties.newBuilder() to construct. + private DbServerProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbServerProperties() { + ocid_ = ""; + state_ = 0; + dbNodeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbServerProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServerProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServerProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbServerProperties.class, + com.google.cloud.oracledatabase.v1.DbServerProperties.Builder.class); + } + + /** + * + * + *
+   * The various lifecycle states of the database server.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbServerProperties.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Indicates that the resource is in creating state.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * Indicates that the resource is in available state.
+     * 
+ * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
+     * Indicates that the resource is in unavailable state.
+     * 
+ * + * UNAVAILABLE = 3; + */ + UNAVAILABLE(3), + /** + * + * + *
+     * Indicates that the resource is in deleting state.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
+     * Indicates that the resource is in deleted state.
+     * 
+ * + * DELETED = 5; + */ + DELETED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Indicates that the resource is in creating state.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * Indicates that the resource is in available state.
+     * 
+ * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + /** + * + * + *
+     * Indicates that the resource is in unavailable state.
+     * 
+ * + * UNAVAILABLE = 3; + */ + public static final int UNAVAILABLE_VALUE = 3; + /** + * + * + *
+     * Indicates that the resource is in deleting state.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + * + * + *
+     * Indicates that the resource is in deleted state.
+     * 
+ * + * DELETED = 5; + */ + public static final int DELETED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return AVAILABLE; + case 3: + return UNAVAILABLE; + case 4: + return DELETING; + case 5: + return DELETED; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.DbServerProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbServerProperties.State) + } + + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + /** + * + * + *
+   * Output only. OCID of database server.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. OCID of database server.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCPU_COUNT_FIELD_NUMBER = 2; + private int ocpuCount_ = 0; + /** + * + * + *
+   * Optional. OCPU count per database.
+   * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + @java.lang.Override + public int getOcpuCount() { + return ocpuCount_; + } + + public static final int MAX_OCPU_COUNT_FIELD_NUMBER = 3; + private int maxOcpuCount_ = 0; + /** + * + * + *
+   * Optional. Maximum OCPU count per database.
+   * 
+ * + * int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxOcpuCount. + */ + @java.lang.Override + public int getMaxOcpuCount() { + return maxOcpuCount_; + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 4; + private int memorySizeGb_ = 0; + /** + * + * + *
+   * Optional. Memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int MAX_MEMORY_SIZE_GB_FIELD_NUMBER = 5; + private int maxMemorySizeGb_ = 0; + /** + * + * + *
+   * Optional. Maximum memory allocated in GBs.
+   * 
+ * + * int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMemorySizeGb. + */ + @java.lang.Override + public int getMaxMemorySizeGb() { + return maxMemorySizeGb_; + } + + public static final int DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER = 6; + private int dbNodeStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. Local storage per VM.
+   * 
+ * + * int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + + public static final int MAX_DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER = 7; + private int maxDbNodeStorageSizeGb_ = 0; + /** + * + * + *
+   * Optional. Maximum local storage per VM.
+   * 
+ * + * int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxDbNodeStorageSizeGb. + */ + @java.lang.Override + public int getMaxDbNodeStorageSizeGb() { + return maxDbNodeStorageSizeGb_; + } + + public static final int VM_COUNT_FIELD_NUMBER = 8; + private int vmCount_ = 0; + /** + * + * + *
+   * Optional. Vm count per database.
+   * 
+ * + * int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vmCount. + */ + @java.lang.Override + public int getVmCount() { + return vmCount_; + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.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. State of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerProperties.State getState() { + com.google.cloud.oracledatabase.v1.DbServerProperties.State result = + com.google.cloud.oracledatabase.v1.DbServerProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbServerProperties.State.UNRECOGNIZED + : result; + } + + public static final int DB_NODE_IDS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dbNodeIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the dbNodeIds. + */ + public com.google.protobuf.ProtocolStringList getDbNodeIdsList() { + return dbNodeIds_; + } + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of dbNodeIds. + */ + public int getDbNodeIdsCount() { + return dbNodeIds_.size(); + } + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The dbNodeIds at the given index. + */ + public java.lang.String getDbNodeIds(int index) { + return dbNodeIds_.get(index); + } + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the dbNodeIds at the given index. + */ + public com.google.protobuf.ByteString getDbNodeIdsBytes(int index) { + return dbNodeIds_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (ocpuCount_ != 0) { + output.writeInt32(2, ocpuCount_); + } + if (maxOcpuCount_ != 0) { + output.writeInt32(3, maxOcpuCount_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(4, memorySizeGb_); + } + if (maxMemorySizeGb_ != 0) { + output.writeInt32(5, maxMemorySizeGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + output.writeInt32(6, dbNodeStorageSizeGb_); + } + if (maxDbNodeStorageSizeGb_ != 0) { + output.writeInt32(7, maxDbNodeStorageSizeGb_); + } + if (vmCount_ != 0) { + output.writeInt32(8, vmCount_); + } + if (state_ + != com.google.cloud.oracledatabase.v1.DbServerProperties.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, state_); + } + for (int i = 0; i < dbNodeIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, dbNodeIds_.getRaw(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(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (ocpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, ocpuCount_); + } + if (maxOcpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxOcpuCount_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, memorySizeGb_); + } + if (maxMemorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxMemorySizeGb_); + } + if (dbNodeStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, dbNodeStorageSizeGb_); + } + if (maxDbNodeStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, maxDbNodeStorageSizeGb_); + } + if (vmCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, vmCount_); + } + if (state_ + != com.google.cloud.oracledatabase.v1.DbServerProperties.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + { + int dataSize = 0; + for (int i = 0; i < dbNodeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(dbNodeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getDbNodeIdsList().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.oracledatabase.v1.DbServerProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbServerProperties other = + (com.google.cloud.oracledatabase.v1.DbServerProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (getOcpuCount() != other.getOcpuCount()) return false; + if (getMaxOcpuCount() != other.getMaxOcpuCount()) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (getMaxMemorySizeGb() != other.getMaxMemorySizeGb()) return false; + if (getDbNodeStorageSizeGb() != other.getDbNodeStorageSizeGb()) return false; + if (getMaxDbNodeStorageSizeGb() != other.getMaxDbNodeStorageSizeGb()) return false; + if (getVmCount() != other.getVmCount()) return false; + if (state_ != other.state_) return false; + if (!getDbNodeIdsList().equals(other.getDbNodeIdsList())) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + OCPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getOcpuCount(); + hash = (37 * hash) + MAX_OCPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxOcpuCount(); + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + MAX_MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMaxMemorySizeGb(); + hash = (37 * hash) + DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDbNodeStorageSizeGb(); + hash = (37 * hash) + MAX_DB_NODE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMaxDbNodeStorageSizeGb(); + hash = (37 * hash) + VM_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVmCount(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getDbNodeIdsCount() > 0) { + hash = (37 * hash) + DB_NODE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDbNodeIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties 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.oracledatabase.v1.DbServerProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties 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.oracledatabase.v1.DbServerProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties 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.oracledatabase.v1.DbServerProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties 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.oracledatabase.v1.DbServerProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties 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.oracledatabase.v1.DbServerProperties 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; + } + /** + * + * + *
+   * Various properties and settings associated with Exadata database server.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbServerProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbServerProperties) + com.google.cloud.oracledatabase.v1.DbServerPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServerProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServerProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbServerProperties.class, + com.google.cloud.oracledatabase.v1.DbServerProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbServerProperties.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ocid_ = ""; + ocpuCount_ = 0; + maxOcpuCount_ = 0; + memorySizeGb_ = 0; + maxMemorySizeGb_ = 0; + dbNodeStorageSizeGb_ = 0; + maxDbNodeStorageSizeGb_ = 0; + vmCount_ = 0; + state_ = 0; + dbNodeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbServerProto + .internal_static_google_cloud_oracledatabase_v1_DbServerProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerProperties build() { + com.google.cloud.oracledatabase.v1.DbServerProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerProperties buildPartial() { + com.google.cloud.oracledatabase.v1.DbServerProperties result = + new com.google.cloud.oracledatabase.v1.DbServerProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbServerProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ocpuCount_ = ocpuCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxOcpuCount_ = maxOcpuCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.memorySizeGb_ = memorySizeGb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxMemorySizeGb_ = maxMemorySizeGb_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dbNodeStorageSizeGb_ = dbNodeStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.maxDbNodeStorageSizeGb_ = maxDbNodeStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.vmCount_ = vmCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + dbNodeIds_.makeImmutable(); + result.dbNodeIds_ = dbNodeIds_; + } + } + + @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.oracledatabase.v1.DbServerProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbServerProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbServerProperties other) { + if (other == com.google.cloud.oracledatabase.v1.DbServerProperties.getDefaultInstance()) + return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getOcpuCount() != 0) { + setOcpuCount(other.getOcpuCount()); + } + if (other.getMaxOcpuCount() != 0) { + setMaxOcpuCount(other.getMaxOcpuCount()); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (other.getMaxMemorySizeGb() != 0) { + setMaxMemorySizeGb(other.getMaxMemorySizeGb()); + } + if (other.getDbNodeStorageSizeGb() != 0) { + setDbNodeStorageSizeGb(other.getDbNodeStorageSizeGb()); + } + if (other.getMaxDbNodeStorageSizeGb() != 0) { + setMaxDbNodeStorageSizeGb(other.getMaxDbNodeStorageSizeGb()); + } + if (other.getVmCount() != 0) { + setVmCount(other.getVmCount()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.dbNodeIds_.isEmpty()) { + if (dbNodeIds_.isEmpty()) { + dbNodeIds_ = other.dbNodeIds_; + bitField0_ |= 0x00000200; + } else { + ensureDbNodeIdsIsMutable(); + dbNodeIds_.addAll(other.dbNodeIds_); + } + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + ocpuCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxOcpuCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + memorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + maxMemorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + dbNodeStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + maxDbNodeStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + vmCount_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDbNodeIdsIsMutable(); + dbNodeIds_.add(s); + break; + } // case 82 + 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 ocid_ = ""; + /** + * + * + *
+     * Output only. OCID of database server.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. OCID of database server.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. OCID of database server.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database server.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database server.
+     * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int ocpuCount_; + /** + * + * + *
+     * Optional. OCPU count per database.
+     * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + @java.lang.Override + public int getOcpuCount() { + return ocpuCount_; + } + /** + * + * + *
+     * Optional. OCPU count per database.
+     * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ocpuCount to set. + * @return This builder for chaining. + */ + public Builder setOcpuCount(int value) { + + ocpuCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OCPU count per database.
+     * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOcpuCount() { + bitField0_ = (bitField0_ & ~0x00000002); + ocpuCount_ = 0; + onChanged(); + return this; + } + + private int maxOcpuCount_; + /** + * + * + *
+     * Optional. Maximum OCPU count per database.
+     * 
+ * + * int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxOcpuCount. + */ + @java.lang.Override + public int getMaxOcpuCount() { + return maxOcpuCount_; + } + /** + * + * + *
+     * Optional. Maximum OCPU count per database.
+     * 
+ * + * int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxOcpuCount to set. + * @return This builder for chaining. + */ + public Builder setMaxOcpuCount(int value) { + + maxOcpuCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum OCPU count per database.
+     * 
+ * + * int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxOcpuCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxOcpuCount_ = 0; + onChanged(); + return this; + } + + private int memorySizeGb_; + /** + * + * + *
+     * Optional. Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + /** + * + * + *
+     * Optional. Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The memorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Memory allocated in GBs.
+     * 
+ * + * int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00000008); + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private int maxMemorySizeGb_; + /** + * + * + *
+     * Optional. Maximum memory allocated in GBs.
+     * 
+ * + * int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMemorySizeGb. + */ + @java.lang.Override + public int getMaxMemorySizeGb() { + return maxMemorySizeGb_; + } + /** + * + * + *
+     * Optional. Maximum memory allocated in GBs.
+     * 
+ * + * int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxMemorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMaxMemorySizeGb(int value) { + + maxMemorySizeGb_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum memory allocated in GBs.
+     * 
+ * + * int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00000010); + maxMemorySizeGb_ = 0; + onChanged(); + return this; + } + + private int dbNodeStorageSizeGb_; + /** + * + * + *
+     * Optional. Local storage per VM.
+     * 
+ * + * int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + @java.lang.Override + public int getDbNodeStorageSizeGb() { + return dbNodeStorageSizeGb_; + } + /** + * + * + *
+     * Optional. Local storage per VM.
+     * 
+ * + * int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbNodeStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDbNodeStorageSizeGb(int value) { + + dbNodeStorageSizeGb_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Local storage per VM.
+     * 
+ * + * int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbNodeStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000020); + dbNodeStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int maxDbNodeStorageSizeGb_; + /** + * + * + *
+     * Optional. Maximum local storage per VM.
+     * 
+ * + * int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxDbNodeStorageSizeGb. + */ + @java.lang.Override + public int getMaxDbNodeStorageSizeGb() { + return maxDbNodeStorageSizeGb_; + } + /** + * + * + *
+     * Optional. Maximum local storage per VM.
+     * 
+ * + * int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxDbNodeStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setMaxDbNodeStorageSizeGb(int value) { + + maxDbNodeStorageSizeGb_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum local storage per VM.
+     * 
+ * + * int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxDbNodeStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000040); + maxDbNodeStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int vmCount_; + /** + * + * + *
+     * Optional. Vm count per database.
+     * 
+ * + * int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vmCount. + */ + @java.lang.Override + public int getVmCount() { + return vmCount_; + } + /** + * + * + *
+     * Optional. Vm count per database.
+     * 
+ * + * int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The vmCount to set. + * @return This builder for chaining. + */ + public Builder setVmCount(int value) { + + vmCount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Vm count per database.
+     * 
+ * + * int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVmCount() { + bitField0_ = (bitField0_ & ~0x00000080); + vmCount_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.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. State of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.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; + } + /** + * + * + *
+     * Output only. State of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerProperties.State getState() { + com.google.cloud.oracledatabase.v1.DbServerProperties.State result = + com.google.cloud.oracledatabase.v1.DbServerProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbServerProperties.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.DbServerProperties.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the database server.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000100); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dbNodeIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDbNodeIdsIsMutable() { + if (!dbNodeIds_.isModifiable()) { + dbNodeIds_ = new com.google.protobuf.LazyStringArrayList(dbNodeIds_); + } + bitField0_ |= 0x00000200; + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the dbNodeIds. + */ + public com.google.protobuf.ProtocolStringList getDbNodeIdsList() { + dbNodeIds_.makeImmutable(); + return dbNodeIds_; + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of dbNodeIds. + */ + public int getDbNodeIdsCount() { + return dbNodeIds_.size(); + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The dbNodeIds at the given index. + */ + public java.lang.String getDbNodeIds(int index) { + return dbNodeIds_.get(index); + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the dbNodeIds at the given index. + */ + public com.google.protobuf.ByteString getDbNodeIdsBytes(int index) { + return dbNodeIds_.getByteString(index); + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The dbNodeIds to set. + * @return This builder for chaining. + */ + public Builder setDbNodeIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbNodeIdsIsMutable(); + dbNodeIds_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dbNodeIds to add. + * @return This builder for chaining. + */ + public Builder addDbNodeIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbNodeIdsIsMutable(); + dbNodeIds_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The dbNodeIds to add. + * @return This builder for chaining. + */ + public Builder addAllDbNodeIds(java.lang.Iterable values) { + ensureDbNodeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbNodeIds_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDbNodeIds() { + dbNodeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. OCID of database nodes associated with the database server.
+     * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the dbNodeIds to add. + * @return This builder for chaining. + */ + public Builder addDbNodeIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDbNodeIdsIsMutable(); + dbNodeIds_.add(value); + bitField0_ |= 0x00000200; + 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.oracledatabase.v1.DbServerProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbServerProperties) + private static final com.google.cloud.oracledatabase.v1.DbServerProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbServerProperties(); + } + + public static com.google.cloud.oracledatabase.v1.DbServerProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbServerProperties 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.oracledatabase.v1.DbServerProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerPropertiesOrBuilder.java new file mode 100644 index 000000000000..9cb7787d017f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerPropertiesOrBuilder.java @@ -0,0 +1,222 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_server.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DbServerPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbServerProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. OCID of database server.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + /** + * + * + *
+   * Output only. OCID of database server.
+   * 
+ * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
+   * Optional. OCPU count per database.
+   * 
+ * + * int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ocpuCount. + */ + int getOcpuCount(); + + /** + * + * + *
+   * Optional. Maximum OCPU count per database.
+   * 
+ * + * int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxOcpuCount. + */ + int getMaxOcpuCount(); + + /** + * + * + *
+   * Optional. Memory allocated in GBs.
+   * 
+ * + * int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + int getMemorySizeGb(); + + /** + * + * + *
+   * Optional. Maximum memory allocated in GBs.
+   * 
+ * + * int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMemorySizeGb. + */ + int getMaxMemorySizeGb(); + + /** + * + * + *
+   * Optional. Local storage per VM.
+   * 
+ * + * int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbNodeStorageSizeGb. + */ + int getDbNodeStorageSizeGb(); + + /** + * + * + *
+   * Optional. Maximum local storage per VM.
+   * 
+ * + * int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxDbNodeStorageSizeGb. + */ + int getMaxDbNodeStorageSizeGb(); + + /** + * + * + *
+   * Optional. Vm count per database.
+   * 
+ * + * int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vmCount. + */ + int getVmCount(); + + /** + * + * + *
+   * Output only. State of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the database server.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.DbServerProperties.State getState(); + + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the dbNodeIds. + */ + java.util.List getDbNodeIdsList(); + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of dbNodeIds. + */ + int getDbNodeIdsCount(); + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The dbNodeIds at the given index. + */ + java.lang.String getDbNodeIds(int index); + /** + * + * + *
+   * Output only. OCID of database nodes associated with the database server.
+   * 
+ * + * repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the dbNodeIds at the given index. + */ + com.google.protobuf.ByteString getDbNodeIdsBytes(int index); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerProto.java new file mode 100644 index 000000000000..4478d971be09 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerProto.java @@ -0,0 +1,122 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_server.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class DbServerProto { + private DbServerProto() {} + + 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_oracledatabase_v1_DbServer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbServer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbServerProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbServerProperties_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/oracledatabase/v1/db_serv" + + "er.proto\022\036google.cloud.oracledatabase.v1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\303\002\n\010DbServer\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\001\022" + + "K\n\nproperties\030\003 \001(\01322.google.cloud.oracl" + + "edatabase.v1.DbServerPropertiesB\003\340A\001:\273\001\352" + + "A\267\001\n&oracledatabase.googleapis.com/DbSer" + + "ver\022xprojects/{project}/locations/{locat" + + "ion}/cloudExadataInfrastructures/{cloud_" + + "exadata_infrastructure}/dbServers/{db_se" + + "rver}*\tdbServers2\010dbServer\"\323\003\n\022DbServerP" + + "roperties\022\021\n\004ocid\030\001 \001(\tB\003\340A\003\022\027\n\nocpu_cou" + + "nt\030\002 \001(\005B\003\340A\001\022\033\n\016max_ocpu_count\030\003 \001(\005B\003\340" + + "A\001\022\033\n\016memory_size_gb\030\004 \001(\005B\003\340A\001\022\037\n\022max_m" + + "emory_size_gb\030\005 \001(\005B\003\340A\001\022$\n\027db_node_stor" + + "age_size_gb\030\006 \001(\005B\003\340A\001\022(\n\033max_db_node_st" + + "orage_size_gb\030\007 \001(\005B\003\340A\001\022\025\n\010vm_count\030\010 \001" + + "(\005B\003\340A\001\022L\n\005state\030\t \001(\01628.google.cloud.or" + + "acledatabase.v1.DbServerProperties.State" + + "B\003\340A\003\022\030\n\013db_node_ids\030\n \003(\tB\003\340A\003\"g\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n" + + "\tAVAILABLE\020\002\022\017\n\013UNAVAILABLE\020\003\022\014\n\010DELETIN" + + "G\020\004\022\013\n\007DELETED\020\005B\347\001\n\"com.google.cloud.or" + + "acledatabase.v1B\rDbServerProtoP\001ZJcloud." + + "google.com/go/oracledatabase/apiv1/oracl" + + "edatabasepb;oracledatabasepb\252\002\036Google.Cl" + + "oud.OracleDatabase.V1\312\002\036Google\\Cloud\\Ora" + + "cleDatabase\\V1\352\002!Google::Cloud::OracleDa" + + "tabase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_DbServer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbServer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbServer_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Properties", + }); + internal_static_google_cloud_oracledatabase_v1_DbServerProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_DbServerProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbServerProperties_descriptor, + new java.lang.String[] { + "Ocid", + "OcpuCount", + "MaxOcpuCount", + "MemorySizeGb", + "MaxMemorySizeGb", + "DbNodeStorageSizeGb", + "MaxDbNodeStorageSizeGb", + "VmCount", + "State", + "DbNodeIds", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShape.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShape.java new file mode 100644 index 000000000000..10d6ffc8b5f5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShape.java @@ -0,0 +1,1757 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_system_shape.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Database System Shapes resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemShape} + */ +public final class DbSystemShape extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbSystemShape) + DbSystemShapeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DbSystemShape.newBuilder() to construct. + private DbSystemShape(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbSystemShape() { + name_ = ""; + shape_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbSystemShape(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemShapeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemShape_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemShapeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemShape_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemShape.class, + com.google.cloud.oracledatabase.v1.DbSystemShape.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Database System Shape resource with the format:
+   * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+   * 
+ * + * 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 name of the Database System Shape resource with the format:
+   * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+   * 
+ * + * 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 SHAPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object shape_ = ""; + /** + * + * + *
+   * Optional. shape
+   * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shape. + */ + @java.lang.Override + public java.lang.String getShape() { + java.lang.Object ref = shape_; + 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(); + shape_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. shape
+   * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for shape. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 3; + private int minNodeCount_ = 0; + /** + * + * + *
+   * Optional. Minimum number of database servers.
+   * 
+ * + * int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + + public static final int MAX_NODE_COUNT_FIELD_NUMBER = 4; + private int maxNodeCount_ = 0; + /** + * + * + *
+   * Optional. Maximum number of database servers.
+   * 
+ * + * int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + + public static final int MIN_STORAGE_COUNT_FIELD_NUMBER = 5; + private int minStorageCount_ = 0; + /** + * + * + *
+   * Optional. Minimum number of storage servers.
+   * 
+ * + * int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minStorageCount. + */ + @java.lang.Override + public int getMinStorageCount() { + return minStorageCount_; + } + + public static final int MAX_STORAGE_COUNT_FIELD_NUMBER = 6; + private int maxStorageCount_ = 0; + /** + * + * + *
+   * Optional. Maximum number of storage servers.
+   * 
+ * + * int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxStorageCount. + */ + @java.lang.Override + public int getMaxStorageCount() { + return maxStorageCount_; + } + + public static final int AVAILABLE_CORE_COUNT_PER_NODE_FIELD_NUMBER = 7; + private int availableCoreCountPerNode_ = 0; + /** + * + * + *
+   * Optional. Number of cores per node.
+   * 
+ * + * int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableCoreCountPerNode. + */ + @java.lang.Override + public int getAvailableCoreCountPerNode() { + return availableCoreCountPerNode_; + } + + public static final int AVAILABLE_MEMORY_PER_NODE_GB_FIELD_NUMBER = 8; + private int availableMemoryPerNodeGb_ = 0; + /** + * + * + *
+   * Optional. Memory per database server node in gigabytes.
+   * 
+ * + * int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableMemoryPerNodeGb. + */ + @java.lang.Override + public int getAvailableMemoryPerNodeGb() { + return availableMemoryPerNodeGb_; + } + + public static final int AVAILABLE_DATA_STORAGE_TB_FIELD_NUMBER = 9; + private int availableDataStorageTb_ = 0; + /** + * + * + *
+   * Optional. Storage per storage server in terabytes.
+   * 
+ * + * int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableDataStorageTb. + */ + @java.lang.Override + public int getAvailableDataStorageTb() { + return availableDataStorageTb_; + } + + public static final int MIN_CORE_COUNT_PER_NODE_FIELD_NUMBER = 10; + private int minCoreCountPerNode_ = 0; + /** + * + * + *
+   * Optional. Minimum core count per node.
+   * 
+ * + * int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minCoreCountPerNode. + */ + @java.lang.Override + public int getMinCoreCountPerNode() { + return minCoreCountPerNode_; + } + + public static final int MIN_MEMORY_PER_NODE_GB_FIELD_NUMBER = 11; + private int minMemoryPerNodeGb_ = 0; + /** + * + * + *
+   * Optional. Minimum memory per node in gigabytes.
+   * 
+ * + * int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minMemoryPerNodeGb. + */ + @java.lang.Override + public int getMinMemoryPerNodeGb() { + return minMemoryPerNodeGb_; + } + + public static final int MIN_DB_NODE_STORAGE_PER_NODE_GB_FIELD_NUMBER = 12; + private int minDbNodeStoragePerNodeGb_ = 0; + /** + * + * + *
+   * Optional. Minimum node storage per database server in gigabytes.
+   * 
+ * + * int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minDbNodeStoragePerNodeGb. + */ + @java.lang.Override + public int getMinDbNodeStoragePerNodeGb() { + return minDbNodeStoragePerNodeGb_; + } + + 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(shape_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shape_); + } + if (minNodeCount_ != 0) { + output.writeInt32(3, minNodeCount_); + } + if (maxNodeCount_ != 0) { + output.writeInt32(4, maxNodeCount_); + } + if (minStorageCount_ != 0) { + output.writeInt32(5, minStorageCount_); + } + if (maxStorageCount_ != 0) { + output.writeInt32(6, maxStorageCount_); + } + if (availableCoreCountPerNode_ != 0) { + output.writeInt32(7, availableCoreCountPerNode_); + } + if (availableMemoryPerNodeGb_ != 0) { + output.writeInt32(8, availableMemoryPerNodeGb_); + } + if (availableDataStorageTb_ != 0) { + output.writeInt32(9, availableDataStorageTb_); + } + if (minCoreCountPerNode_ != 0) { + output.writeInt32(10, minCoreCountPerNode_); + } + if (minMemoryPerNodeGb_ != 0) { + output.writeInt32(11, minMemoryPerNodeGb_); + } + if (minDbNodeStoragePerNodeGb_ != 0) { + output.writeInt32(12, minDbNodeStoragePerNodeGb_); + } + 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(shape_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shape_); + } + if (minNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, minNodeCount_); + } + if (maxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxNodeCount_); + } + if (minStorageCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, minStorageCount_); + } + if (maxStorageCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxStorageCount_); + } + if (availableCoreCountPerNode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, availableCoreCountPerNode_); + } + if (availableMemoryPerNodeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, availableMemoryPerNodeGb_); + } + if (availableDataStorageTb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, availableDataStorageTb_); + } + if (minCoreCountPerNode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, minCoreCountPerNode_); + } + if (minMemoryPerNodeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, minMemoryPerNodeGb_); + } + if (minDbNodeStoragePerNodeGb_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(12, minDbNodeStoragePerNodeGb_); + } + 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.oracledatabase.v1.DbSystemShape)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbSystemShape other = + (com.google.cloud.oracledatabase.v1.DbSystemShape) obj; + + if (!getName().equals(other.getName())) return false; + if (!getShape().equals(other.getShape())) return false; + if (getMinNodeCount() != other.getMinNodeCount()) return false; + if (getMaxNodeCount() != other.getMaxNodeCount()) return false; + if (getMinStorageCount() != other.getMinStorageCount()) return false; + if (getMaxStorageCount() != other.getMaxStorageCount()) return false; + if (getAvailableCoreCountPerNode() != other.getAvailableCoreCountPerNode()) return false; + if (getAvailableMemoryPerNodeGb() != other.getAvailableMemoryPerNodeGb()) return false; + if (getAvailableDataStorageTb() != other.getAvailableDataStorageTb()) return false; + if (getMinCoreCountPerNode() != other.getMinCoreCountPerNode()) return false; + if (getMinMemoryPerNodeGb() != other.getMinMemoryPerNodeGb()) return false; + if (getMinDbNodeStoragePerNodeGb() != other.getMinDbNodeStoragePerNodeGb()) 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) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + hash = (37 * hash) + MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinNodeCount(); + hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxNodeCount(); + hash = (37 * hash) + MIN_STORAGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinStorageCount(); + hash = (37 * hash) + MAX_STORAGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxStorageCount(); + hash = (37 * hash) + AVAILABLE_CORE_COUNT_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getAvailableCoreCountPerNode(); + hash = (37 * hash) + AVAILABLE_MEMORY_PER_NODE_GB_FIELD_NUMBER; + hash = (53 * hash) + getAvailableMemoryPerNodeGb(); + hash = (37 * hash) + AVAILABLE_DATA_STORAGE_TB_FIELD_NUMBER; + hash = (53 * hash) + getAvailableDataStorageTb(); + hash = (37 * hash) + MIN_CORE_COUNT_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getMinCoreCountPerNode(); + hash = (37 * hash) + MIN_MEMORY_PER_NODE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMinMemoryPerNodeGb(); + hash = (37 * hash) + MIN_DB_NODE_STORAGE_PER_NODE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMinDbNodeStoragePerNodeGb(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape 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.oracledatabase.v1.DbSystemShape parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape 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.oracledatabase.v1.DbSystemShape parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape 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.oracledatabase.v1.DbSystemShape parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape 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.oracledatabase.v1.DbSystemShape parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape 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.oracledatabase.v1.DbSystemShape prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Database System Shapes resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemShape} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbSystemShape) + com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemShapeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemShape_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemShapeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemShape_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemShape.class, + com.google.cloud.oracledatabase.v1.DbSystemShape.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbSystemShape.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + shape_ = ""; + minNodeCount_ = 0; + maxNodeCount_ = 0; + minStorageCount_ = 0; + maxStorageCount_ = 0; + availableCoreCountPerNode_ = 0; + availableMemoryPerNodeGb_ = 0; + availableDataStorageTb_ = 0; + minCoreCountPerNode_ = 0; + minMemoryPerNodeGb_ = 0; + minDbNodeStoragePerNodeGb_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemShapeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemShape_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemShape getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbSystemShape.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemShape build() { + com.google.cloud.oracledatabase.v1.DbSystemShape result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemShape buildPartial() { + com.google.cloud.oracledatabase.v1.DbSystemShape result = + new com.google.cloud.oracledatabase.v1.DbSystemShape(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbSystemShape result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.shape_ = shape_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minNodeCount_ = minNodeCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxNodeCount_ = maxNodeCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.minStorageCount_ = minStorageCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.maxStorageCount_ = maxStorageCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.availableCoreCountPerNode_ = availableCoreCountPerNode_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.availableMemoryPerNodeGb_ = availableMemoryPerNodeGb_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.availableDataStorageTb_ = availableDataStorageTb_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.minCoreCountPerNode_ = minCoreCountPerNode_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.minMemoryPerNodeGb_ = minMemoryPerNodeGb_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.minDbNodeStoragePerNodeGb_ = minDbNodeStoragePerNodeGb_; + } + } + + @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.oracledatabase.v1.DbSystemShape) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbSystemShape) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbSystemShape other) { + if (other == com.google.cloud.oracledatabase.v1.DbSystemShape.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getShape().isEmpty()) { + shape_ = other.shape_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + if (other.getMinStorageCount() != 0) { + setMinStorageCount(other.getMinStorageCount()); + } + if (other.getMaxStorageCount() != 0) { + setMaxStorageCount(other.getMaxStorageCount()); + } + if (other.getAvailableCoreCountPerNode() != 0) { + setAvailableCoreCountPerNode(other.getAvailableCoreCountPerNode()); + } + if (other.getAvailableMemoryPerNodeGb() != 0) { + setAvailableMemoryPerNodeGb(other.getAvailableMemoryPerNodeGb()); + } + if (other.getAvailableDataStorageTb() != 0) { + setAvailableDataStorageTb(other.getAvailableDataStorageTb()); + } + if (other.getMinCoreCountPerNode() != 0) { + setMinCoreCountPerNode(other.getMinCoreCountPerNode()); + } + if (other.getMinMemoryPerNodeGb() != 0) { + setMinMemoryPerNodeGb(other.getMinMemoryPerNodeGb()); + } + if (other.getMinDbNodeStoragePerNodeGb() != 0) { + setMinDbNodeStoragePerNodeGb(other.getMinDbNodeStoragePerNodeGb()); + } + 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: + { + shape_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + minNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + maxNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + minStorageCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + maxStorageCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + availableCoreCountPerNode_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + availableMemoryPerNodeGb_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + availableDataStorageTb_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + minCoreCountPerNode_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + minMemoryPerNodeGb_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + minDbNodeStoragePerNodeGb_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + 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 name of the Database System Shape resource with the format:
+     * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+     * 
+ * + * 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 name of the Database System Shape resource with the format:
+     * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+     * 
+ * + * 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 name of the Database System Shape resource with the format:
+     * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+     * 
+ * + * 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 name of the Database System Shape resource with the format:
+     * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+     * 
+ * + * 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 name of the Database System Shape resource with the format:
+     * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+     * 
+ * + * 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 shape_ = ""; + /** + * + * + *
+     * Optional. shape
+     * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shape. + */ + public java.lang.String getShape() { + java.lang.Object ref = shape_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shape_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. shape
+     * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for shape. + */ + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. shape
+     * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The shape to set. + * @return This builder for chaining. + */ + public Builder setShape(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. shape
+     * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShape() { + shape_ = getDefaultInstance().getShape(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. shape
+     * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for shape to set. + * @return This builder for chaining. + */ + public Builder setShapeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shape_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int minNodeCount_; + /** + * + * + *
+     * Optional. Minimum number of database servers.
+     * 
+ * + * int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + /** + * + * + *
+     * Optional. Minimum number of database servers.
+     * 
+ * + * int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMinNodeCount(int value) { + + minNodeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Minimum number of database servers.
+     * 
+ * + * int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_; + /** + * + * + *
+     * Optional. Maximum number of database servers.
+     * 
+ * + * int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + * + * + *
+     * Optional. Maximum number of database servers.
+     * 
+ * + * int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of database servers.
+     * 
+ * + * int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxNodeCount() { + bitField0_ = (bitField0_ & ~0x00000008); + maxNodeCount_ = 0; + onChanged(); + return this; + } + + private int minStorageCount_; + /** + * + * + *
+     * Optional. Minimum number of storage servers.
+     * 
+ * + * int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minStorageCount. + */ + @java.lang.Override + public int getMinStorageCount() { + return minStorageCount_; + } + /** + * + * + *
+     * Optional. Minimum number of storage servers.
+     * 
+ * + * int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minStorageCount to set. + * @return This builder for chaining. + */ + public Builder setMinStorageCount(int value) { + + minStorageCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Minimum number of storage servers.
+     * 
+ * + * int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinStorageCount() { + bitField0_ = (bitField0_ & ~0x00000010); + minStorageCount_ = 0; + onChanged(); + return this; + } + + private int maxStorageCount_; + /** + * + * + *
+     * Optional. Maximum number of storage servers.
+     * 
+ * + * int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxStorageCount. + */ + @java.lang.Override + public int getMaxStorageCount() { + return maxStorageCount_; + } + /** + * + * + *
+     * Optional. Maximum number of storage servers.
+     * 
+ * + * int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxStorageCount to set. + * @return This builder for chaining. + */ + public Builder setMaxStorageCount(int value) { + + maxStorageCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of storage servers.
+     * 
+ * + * int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxStorageCount() { + bitField0_ = (bitField0_ & ~0x00000020); + maxStorageCount_ = 0; + onChanged(); + return this; + } + + private int availableCoreCountPerNode_; + /** + * + * + *
+     * Optional. Number of cores per node.
+     * 
+ * + * int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The availableCoreCountPerNode. + */ + @java.lang.Override + public int getAvailableCoreCountPerNode() { + return availableCoreCountPerNode_; + } + /** + * + * + *
+     * Optional. Number of cores per node.
+     * 
+ * + * int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The availableCoreCountPerNode to set. + * @return This builder for chaining. + */ + public Builder setAvailableCoreCountPerNode(int value) { + + availableCoreCountPerNode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of cores per node.
+     * 
+ * + * int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableCoreCountPerNode() { + bitField0_ = (bitField0_ & ~0x00000040); + availableCoreCountPerNode_ = 0; + onChanged(); + return this; + } + + private int availableMemoryPerNodeGb_; + /** + * + * + *
+     * Optional. Memory per database server node in gigabytes.
+     * 
+ * + * int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The availableMemoryPerNodeGb. + */ + @java.lang.Override + public int getAvailableMemoryPerNodeGb() { + return availableMemoryPerNodeGb_; + } + /** + * + * + *
+     * Optional. Memory per database server node in gigabytes.
+     * 
+ * + * int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The availableMemoryPerNodeGb to set. + * @return This builder for chaining. + */ + public Builder setAvailableMemoryPerNodeGb(int value) { + + availableMemoryPerNodeGb_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Memory per database server node in gigabytes.
+     * 
+ * + * int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableMemoryPerNodeGb() { + bitField0_ = (bitField0_ & ~0x00000080); + availableMemoryPerNodeGb_ = 0; + onChanged(); + return this; + } + + private int availableDataStorageTb_; + /** + * + * + *
+     * Optional. Storage per storage server in terabytes.
+     * 
+ * + * int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableDataStorageTb. + */ + @java.lang.Override + public int getAvailableDataStorageTb() { + return availableDataStorageTb_; + } + /** + * + * + *
+     * Optional. Storage per storage server in terabytes.
+     * 
+ * + * int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The availableDataStorageTb to set. + * @return This builder for chaining. + */ + public Builder setAvailableDataStorageTb(int value) { + + availableDataStorageTb_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Storage per storage server in terabytes.
+     * 
+ * + * int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAvailableDataStorageTb() { + bitField0_ = (bitField0_ & ~0x00000100); + availableDataStorageTb_ = 0; + onChanged(); + return this; + } + + private int minCoreCountPerNode_; + /** + * + * + *
+     * Optional. Minimum core count per node.
+     * 
+ * + * int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minCoreCountPerNode. + */ + @java.lang.Override + public int getMinCoreCountPerNode() { + return minCoreCountPerNode_; + } + /** + * + * + *
+     * Optional. Minimum core count per node.
+     * 
+ * + * int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minCoreCountPerNode to set. + * @return This builder for chaining. + */ + public Builder setMinCoreCountPerNode(int value) { + + minCoreCountPerNode_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Minimum core count per node.
+     * 
+ * + * int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinCoreCountPerNode() { + bitField0_ = (bitField0_ & ~0x00000200); + minCoreCountPerNode_ = 0; + onChanged(); + return this; + } + + private int minMemoryPerNodeGb_; + /** + * + * + *
+     * Optional. Minimum memory per node in gigabytes.
+     * 
+ * + * int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minMemoryPerNodeGb. + */ + @java.lang.Override + public int getMinMemoryPerNodeGb() { + return minMemoryPerNodeGb_; + } + /** + * + * + *
+     * Optional. Minimum memory per node in gigabytes.
+     * 
+ * + * int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minMemoryPerNodeGb to set. + * @return This builder for chaining. + */ + public Builder setMinMemoryPerNodeGb(int value) { + + minMemoryPerNodeGb_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Minimum memory per node in gigabytes.
+     * 
+ * + * int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinMemoryPerNodeGb() { + bitField0_ = (bitField0_ & ~0x00000400); + minMemoryPerNodeGb_ = 0; + onChanged(); + return this; + } + + private int minDbNodeStoragePerNodeGb_; + /** + * + * + *
+     * Optional. Minimum node storage per database server in gigabytes.
+     * 
+ * + * int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minDbNodeStoragePerNodeGb. + */ + @java.lang.Override + public int getMinDbNodeStoragePerNodeGb() { + return minDbNodeStoragePerNodeGb_; + } + /** + * + * + *
+     * Optional. Minimum node storage per database server in gigabytes.
+     * 
+ * + * int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The minDbNodeStoragePerNodeGb to set. + * @return This builder for chaining. + */ + public Builder setMinDbNodeStoragePerNodeGb(int value) { + + minDbNodeStoragePerNodeGb_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Minimum node storage per database server in gigabytes.
+     * 
+ * + * int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMinDbNodeStoragePerNodeGb() { + bitField0_ = (bitField0_ & ~0x00000800); + minDbNodeStoragePerNodeGb_ = 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.oracledatabase.v1.DbSystemShape) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbSystemShape) + private static final com.google.cloud.oracledatabase.v1.DbSystemShape DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbSystemShape(); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemShape getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbSystemShape 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.oracledatabase.v1.DbSystemShape getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java new file mode 100644 index 000000000000..c1f546fc964b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java @@ -0,0 +1,227 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 DbSystemShapeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DB_SYSTEM_SHAPE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dbSystemShapes/{db_system_shape}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dbSystemShape; + + @Deprecated + protected DbSystemShapeName() { + project = null; + location = null; + dbSystemShape = null; + } + + private DbSystemShapeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dbSystemShape = Preconditions.checkNotNull(builder.getDbSystemShape()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbSystemShape() { + return dbSystemShape; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DbSystemShapeName of(String project, String location, String dbSystemShape) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDbSystemShape(dbSystemShape) + .build(); + } + + public static String format(String project, String location, String dbSystemShape) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDbSystemShape(dbSystemShape) + .build() + .toString(); + } + + public static DbSystemShapeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DB_SYSTEM_SHAPE.validatedMatch( + formattedString, "DbSystemShapeName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("db_system_shape")); + } + + 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 (DbSystemShapeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DB_SYSTEM_SHAPE.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 (dbSystemShape != null) { + fieldMapBuilder.put("db_system_shape", dbSystemShape); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DB_SYSTEM_SHAPE.instantiate( + "project", project, "location", location, "db_system_shape", dbSystemShape); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DbSystemShapeName that = ((DbSystemShapeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dbSystemShape, that.dbSystemShape); + } + 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(dbSystemShape); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dbSystemShapes/{db_system_shape}. */ + public static class Builder { + private String project; + private String location; + private String dbSystemShape; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbSystemShape() { + return dbSystemShape; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDbSystemShape(String dbSystemShape) { + this.dbSystemShape = dbSystemShape; + return this; + } + + private Builder(DbSystemShapeName dbSystemShapeName) { + this.project = dbSystemShapeName.project; + this.location = dbSystemShapeName.location; + this.dbSystemShape = dbSystemShapeName.dbSystemShape; + } + + public DbSystemShapeName build() { + return new DbSystemShapeName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeOrBuilder.java new file mode 100644 index 000000000000..ec70e9e03e77 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeOrBuilder.java @@ -0,0 +1,209 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_system_shape.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DbSystemShapeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbSystemShape) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Database System Shape resource with the format:
+   * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Database System Shape resource with the format:
+   * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. shape
+   * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shape. + */ + java.lang.String getShape(); + /** + * + * + *
+   * Optional. shape
+   * 
+ * + * string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for shape. + */ + com.google.protobuf.ByteString getShapeBytes(); + + /** + * + * + *
+   * Optional. Minimum number of database servers.
+   * 
+ * + * int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minNodeCount. + */ + int getMinNodeCount(); + + /** + * + * + *
+   * Optional. Maximum number of database servers.
+   * 
+ * + * int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxNodeCount. + */ + int getMaxNodeCount(); + + /** + * + * + *
+   * Optional. Minimum number of storage servers.
+   * 
+ * + * int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minStorageCount. + */ + int getMinStorageCount(); + + /** + * + * + *
+   * Optional. Maximum number of storage servers.
+   * 
+ * + * int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxStorageCount. + */ + int getMaxStorageCount(); + + /** + * + * + *
+   * Optional. Number of cores per node.
+   * 
+ * + * int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableCoreCountPerNode. + */ + int getAvailableCoreCountPerNode(); + + /** + * + * + *
+   * Optional. Memory per database server node in gigabytes.
+   * 
+ * + * int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableMemoryPerNodeGb. + */ + int getAvailableMemoryPerNodeGb(); + + /** + * + * + *
+   * Optional. Storage per storage server in terabytes.
+   * 
+ * + * int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The availableDataStorageTb. + */ + int getAvailableDataStorageTb(); + + /** + * + * + *
+   * Optional. Minimum core count per node.
+   * 
+ * + * int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minCoreCountPerNode. + */ + int getMinCoreCountPerNode(); + + /** + * + * + *
+   * Optional. Minimum memory per node in gigabytes.
+   * 
+ * + * int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minMemoryPerNodeGb. + */ + int getMinMemoryPerNodeGb(); + + /** + * + * + *
+   * Optional. Minimum node storage per database server in gigabytes.
+   * 
+ * + * int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minDbNodeStoragePerNodeGb. + */ + int getMinDbNodeStoragePerNodeGb(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeProto.java new file mode 100644 index 000000000000..8b4cb0a0d17f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeProto.java @@ -0,0 +1,107 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/db_system_shape.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class DbSystemShapeProto { + private DbSystemShapeProto() {} + + 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_oracledatabase_v1_DbSystemShape_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystemShape_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/oracledatabase/v1/db_syst" + + "em_shape.proto\022\036google.cloud.oracledatab" + + "ase.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\"\305\004\n\rDbSystemS" + + "hape\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\022\n\005shape\030\002 \001(\tB\003" + + "\340A\001\022\033\n\016min_node_count\030\003 \001(\005B\003\340A\001\022\033\n\016max_" + + "node_count\030\004 \001(\005B\003\340A\001\022\036\n\021min_storage_cou" + + "nt\030\005 \001(\005B\003\340A\001\022\036\n\021max_storage_count\030\006 \001(\005" + + "B\003\340A\001\022*\n\035available_core_count_per_node\030\007" + + " \001(\005B\003\340A\001\022)\n\034available_memory_per_node_g" + + "b\030\010 \001(\005B\003\340A\001\022&\n\031available_data_storage_t" + + "b\030\t \001(\005B\003\340A\001\022$\n\027min_core_count_per_node\030" + + "\n \001(\005B\003\340A\001\022#\n\026min_memory_per_node_gb\030\013 \001" + + "(\005B\003\340A\001\022,\n\037min_db_node_storage_per_node_" + + "gb\030\014 \001(\005B\003\340A\001:\232\001\352A\226\001\n+oracledatabase.goo" + + "gleapis.com/DbSystemShape\022Hprojects/{pro" + + "ject}/locations/{location}/dbSystemShape" + + "s/{db_system_shape}*\016dbSystemShapes2\rdbS" + + "ystemShapeB\354\001\n\"com.google.cloud.oracleda" + + "tabase.v1B\022DbSystemShapeProtoP\001ZJcloud.g" + + "oogle.com/go/oracledatabase/apiv1/oracle" + + "databasepb;oracledatabasepb\252\002\036Google.Clo" + + "ud.OracleDatabase.V1\312\002\036Google\\Cloud\\Orac" + + "leDatabase\\V1\352\002!Google::Cloud::OracleDat" + + "abase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_DbSystemShape_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbSystemShape_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystemShape_descriptor, + new java.lang.String[] { + "Name", + "Shape", + "MinNodeCount", + "MaxNodeCount", + "MinStorageCount", + "MaxStorageCount", + "AvailableCoreCountPerNode", + "AvailableMemoryPerNodeGb", + "AvailableDataStorageTb", + "MinCoreCountPerNode", + "MinMemoryPerNodeGb", + "MinDbNodeStoragePerNodeGb", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..e441bed1be9b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteAutonomousDatabaseRequest.java @@ -0,0 +1,904 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabase.Delete`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest} + */ +public final class DeleteAutonomousDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) + DeleteAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAutonomousDatabaseRequest.newBuilder() to construct. + private DeleteAutonomousDatabaseRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAutonomousDatabaseRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the resource in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 name of the resource in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) obj; + + if (!getName().equals(other.getName())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest 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 for `AutonomousDatabase.Delete`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 name_ = ""; + /** + * + * + *
+     * Required. The name of the resource in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the resource in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the resource in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the resource in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.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 name of the resource in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAutonomousDatabaseRequest 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.oracledatabase.v1.DeleteAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..371ee22b2147 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the resource in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the resource in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudExadataInfrastructureRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudExadataInfrastructureRequest.java new file mode 100644 index 000000000000..7a756ac4aab8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudExadataInfrastructureRequest.java @@ -0,0 +1,1025 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudExadataInfrastructure.Delete`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest} + */ +public final class DeleteCloudExadataInfrastructureRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) + DeleteCloudExadataInfrastructureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCloudExadataInfrastructureRequest.newBuilder() to construct. + private DeleteCloudExadataInfrastructureRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCloudExadataInfrastructureRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCloudExadataInfrastructureRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest.class, + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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 FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
+   * Optional. If set to true, all VM clusters for this Exadata Infrastructure
+   * will be deleted. An Exadata Infrastructure can only be deleted once all its
+   * VM clusters have been deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest other = + (com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest 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 for `CloudExadataInfrastructure.Delete`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest.class, + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest build() { + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest result = + new com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = 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 name_ = ""; + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * Optional. If set to true, all VM clusters for this Exadata Infrastructure
+     * will be deleted. An Exadata Infrastructure can only be deleted once all its
+     * VM clusters have been deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. If set to true, all VM clusters for this Exadata Infrastructure
+     * will be deleted. An Exadata Infrastructure can only be deleted once all its
+     * VM clusters have been deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, all VM clusters for this Exadata Infrastructure
+     * will be deleted. An Exadata Infrastructure can only be deleted once all its
+     * VM clusters have been deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCloudExadataInfrastructureRequest 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.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudExadataInfrastructureRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudExadataInfrastructureRequestOrBuilder.java new file mode 100644 index 000000000000..5db1cef81739 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudExadataInfrastructureRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteCloudExadataInfrastructureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, all VM clusters for this Exadata Infrastructure
+   * will be deleted. An Exadata Infrastructure can only be deleted once all its
+   * VM clusters have been deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudVmClusterRequest.java new file mode 100644 index 000000000000..8539f8b96719 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudVmClusterRequest.java @@ -0,0 +1,999 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudVmCluster.Delete`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest} + */ +public final class DeleteCloudVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest) + DeleteCloudVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCloudVmClusterRequest.newBuilder() to construct. + private DeleteCloudVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCloudVmClusterRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCloudVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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 FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
+   * Optional. If set to true, all child resources for the VM Cluster will be
+   * deleted. A VM Cluster can only be deleted once all its child resources have
+   * been deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.oracledatabase.v1.DeleteCloudVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest 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.oracledatabase.v1.DeleteCloudVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest 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.oracledatabase.v1.DeleteCloudVmClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest 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.oracledatabase.v1.DeleteCloudVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest 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.oracledatabase.v1.DeleteCloudVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest 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.oracledatabase.v1.DeleteCloudVmClusterRequest 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 for `CloudVmCluster.Delete`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest) + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @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.oracledatabase.v1.DeleteCloudVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = 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 name_ = ""; + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * Optional. If set to true, all child resources for the VM Cluster will be
+     * deleted. A VM Cluster can only be deleted once all its child resources have
+     * been deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. If set to true, all child resources for the VM Cluster will be
+     * deleted. A VM Cluster can only be deleted once all its child resources have
+     * been deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, all child resources for the VM Cluster will be
+     * deleted. A VM Cluster can only be deleted once all its child resources have
+     * been deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = 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.oracledatabase.v1.DeleteCloudVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCloudVmClusterRequest 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.oracledatabase.v1.DeleteCloudVmClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..9b5b29aa06e9 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteCloudVmClusterRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteCloudVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, all child resources for the VM Cluster will be
+   * deleted. A VM Cluster can only be deleted once all its child resources have
+   * been deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/Entitlement.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/Entitlement.java new file mode 100644 index 000000000000..ca961ae6b775 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/Entitlement.java @@ -0,0 +1,1450 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/entitlement.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Entitlement resource.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.Entitlement} + */ +public final class Entitlement extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.Entitlement) + EntitlementOrBuilder { + private static final long serialVersionUID = 0L; + // Use Entitlement.newBuilder() to construct. + private Entitlement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Entitlement() { + name_ = ""; + entitlementId_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entitlement(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_Entitlement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_Entitlement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.Entitlement.class, + com.google.cloud.oracledatabase.v1.Entitlement.Builder.class); + } + + /** + * + * + *
+   * The various lifecycle states of the subscription.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.Entitlement.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Account not linked.
+     * 
+ * + * ACCOUNT_NOT_LINKED = 1; + */ + ACCOUNT_NOT_LINKED(1), + /** + * + * + *
+     * Account is linked but not active.
+     * 
+ * + * ACCOUNT_NOT_ACTIVE = 2; + */ + ACCOUNT_NOT_ACTIVE(2), + /** + * + * + *
+     * Entitlement and Account are active.
+     * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Account not linked.
+     * 
+ * + * ACCOUNT_NOT_LINKED = 1; + */ + public static final int ACCOUNT_NOT_LINKED_VALUE = 1; + /** + * + * + *
+     * Account is linked but not active.
+     * 
+ * + * ACCOUNT_NOT_ACTIVE = 2; + */ + public static final int ACCOUNT_NOT_ACTIVE_VALUE = 2; + /** + * + * + *
+     * Entitlement and Account are active.
+     * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACCOUNT_NOT_LINKED; + case 2: + return ACCOUNT_NOT_ACTIVE; + case 3: + return ACTIVE; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.Entitlement.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.Entitlement.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Entitlement resource with the format:
+   * projects/{project}/locations/{region}/entitlements/{entitlement}
+   * 
+ * + * 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 name of the Entitlement resource with the format:
+   * projects/{project}/locations/{region}/entitlements/{entitlement}
+   * 
+ * + * 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 CLOUD_ACCOUNT_DETAILS_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.CloudAccountDetails cloudAccountDetails_; + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * + * @return Whether the cloudAccountDetails field is set. + */ + @java.lang.Override + public boolean hasCloudAccountDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * + * @return The cloudAccountDetails. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudAccountDetails getCloudAccountDetails() { + return cloudAccountDetails_ == null + ? com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance() + : cloudAccountDetails_; + } + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder + getCloudAccountDetailsOrBuilder() { + return cloudAccountDetails_ == null + ? com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance() + : cloudAccountDetails_; + } + + public static final int ENTITLEMENT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + /** + * + * + *
+   * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+   * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+   * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + /** + * + * + *
+   * Output only. Entitlement State.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.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. Entitlement State.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Entitlement.State getState() { + com.google.cloud.oracledatabase.v1.Entitlement.State result = + com.google.cloud.oracledatabase.v1.Entitlement.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.Entitlement.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCloudAccountDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entitlementId_); + } + if (state_ + != com.google.cloud.oracledatabase.v1.Entitlement.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCloudAccountDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entitlementId_); + } + if (state_ + != com.google.cloud.oracledatabase.v1.Entitlement.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + 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.oracledatabase.v1.Entitlement)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.Entitlement other = + (com.google.cloud.oracledatabase.v1.Entitlement) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCloudAccountDetails() != other.hasCloudAccountDetails()) return false; + if (hasCloudAccountDetails()) { + if (!getCloudAccountDetails().equals(other.getCloudAccountDetails())) return false; + } + if (!getEntitlementId().equals(other.getEntitlementId())) return false; + if (state_ != other.state_) 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 (hasCloudAccountDetails()) { + hash = (37 * hash) + CLOUD_ACCOUNT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloudAccountDetails().hashCode(); + } + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.Entitlement parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement 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.oracledatabase.v1.Entitlement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement 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.oracledatabase.v1.Entitlement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement 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.oracledatabase.v1.Entitlement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement 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.oracledatabase.v1.Entitlement parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement 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.oracledatabase.v1.Entitlement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Entitlement resource.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.Entitlement} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.Entitlement) + com.google.cloud.oracledatabase.v1.EntitlementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_Entitlement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_Entitlement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.Entitlement.class, + com.google.cloud.oracledatabase.v1.Entitlement.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.Entitlement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCloudAccountDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + cloudAccountDetails_ = null; + if (cloudAccountDetailsBuilder_ != null) { + cloudAccountDetailsBuilder_.dispose(); + cloudAccountDetailsBuilder_ = null; + } + entitlementId_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.EntitlementProto + .internal_static_google_cloud_oracledatabase_v1_Entitlement_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Entitlement getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.Entitlement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Entitlement build() { + com.google.cloud.oracledatabase.v1.Entitlement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Entitlement buildPartial() { + com.google.cloud.oracledatabase.v1.Entitlement result = + new com.google.cloud.oracledatabase.v1.Entitlement(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.Entitlement result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cloudAccountDetails_ = + cloudAccountDetailsBuilder_ == null + ? cloudAccountDetails_ + : cloudAccountDetailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entitlementId_ = entitlementId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + 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.oracledatabase.v1.Entitlement) { + return mergeFrom((com.google.cloud.oracledatabase.v1.Entitlement) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.Entitlement other) { + if (other == com.google.cloud.oracledatabase.v1.Entitlement.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCloudAccountDetails()) { + mergeCloudAccountDetails(other.getCloudAccountDetails()); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + input.readMessage( + getCloudAccountDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 name of the Entitlement resource with the format:
+     * projects/{project}/locations/{region}/entitlements/{entitlement}
+     * 
+ * + * 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 name of the Entitlement resource with the format:
+     * projects/{project}/locations/{region}/entitlements/{entitlement}
+     * 
+ * + * 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 name of the Entitlement resource with the format:
+     * projects/{project}/locations/{region}/entitlements/{entitlement}
+     * 
+ * + * 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 name of the Entitlement resource with the format:
+     * projects/{project}/locations/{region}/entitlements/{entitlement}
+     * 
+ * + * 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 name of the Entitlement resource with the format:
+     * projects/{project}/locations/{region}/entitlements/{entitlement}
+     * 
+ * + * 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 com.google.cloud.oracledatabase.v1.CloudAccountDetails cloudAccountDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudAccountDetails, + com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder, + com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder> + cloudAccountDetailsBuilder_; + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * + * @return Whether the cloudAccountDetails field is set. + */ + public boolean hasCloudAccountDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * + * @return The cloudAccountDetails. + */ + public com.google.cloud.oracledatabase.v1.CloudAccountDetails getCloudAccountDetails() { + if (cloudAccountDetailsBuilder_ == null) { + return cloudAccountDetails_ == null + ? com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance() + : cloudAccountDetails_; + } else { + return cloudAccountDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + public Builder setCloudAccountDetails( + com.google.cloud.oracledatabase.v1.CloudAccountDetails value) { + if (cloudAccountDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudAccountDetails_ = value; + } else { + cloudAccountDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + public Builder setCloudAccountDetails( + com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder builderForValue) { + if (cloudAccountDetailsBuilder_ == null) { + cloudAccountDetails_ = builderForValue.build(); + } else { + cloudAccountDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + public Builder mergeCloudAccountDetails( + com.google.cloud.oracledatabase.v1.CloudAccountDetails value) { + if (cloudAccountDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && cloudAccountDetails_ != null + && cloudAccountDetails_ + != com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance()) { + getCloudAccountDetailsBuilder().mergeFrom(value); + } else { + cloudAccountDetails_ = value; + } + } else { + cloudAccountDetailsBuilder_.mergeFrom(value); + } + if (cloudAccountDetails_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + public Builder clearCloudAccountDetails() { + bitField0_ = (bitField0_ & ~0x00000002); + cloudAccountDetails_ = null; + if (cloudAccountDetailsBuilder_ != null) { + cloudAccountDetailsBuilder_.dispose(); + cloudAccountDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + public com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder + getCloudAccountDetailsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCloudAccountDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + public com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder + getCloudAccountDetailsOrBuilder() { + if (cloudAccountDetailsBuilder_ != null) { + return cloudAccountDetailsBuilder_.getMessageOrBuilder(); + } else { + return cloudAccountDetails_ == null + ? com.google.cloud.oracledatabase.v1.CloudAccountDetails.getDefaultInstance() + : cloudAccountDetails_; + } + } + /** + * + * + *
+     * Details of the OCI Cloud Account.
+     * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudAccountDetails, + com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder, + com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder> + getCloudAccountDetailsFieldBuilder() { + if (cloudAccountDetailsBuilder_ == null) { + cloudAccountDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudAccountDetails, + com.google.cloud.oracledatabase.v1.CloudAccountDetails.Builder, + com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder>( + getCloudAccountDetails(), getParentForChildren(), isClean()); + cloudAccountDetails_ = null; + } + return cloudAccountDetailsBuilder_; + } + + private java.lang.Object entitlementId_ = ""; + /** + * + * + *
+     * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+     * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+     * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+     * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+     * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+     * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. Entitlement State.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.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. Entitlement State.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Entitlement State.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Entitlement.State getState() { + com.google.cloud.oracledatabase.v1.Entitlement.State result = + com.google.cloud.oracledatabase.v1.Entitlement.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.Entitlement.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Entitlement State.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.Entitlement.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Entitlement State.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 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.oracledatabase.v1.Entitlement) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.Entitlement) + private static final com.google.cloud.oracledatabase.v1.Entitlement DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.Entitlement(); + } + + public static com.google.cloud.oracledatabase.v1.Entitlement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entitlement 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.oracledatabase.v1.Entitlement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java new file mode 100644 index 000000000000..3fa7d87a4160 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java @@ -0,0 +1,227 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 EntitlementName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ENTITLEMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/entitlements/{entitlement}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String entitlement; + + @Deprecated + protected EntitlementName() { + project = null; + location = null; + entitlement = null; + } + + private EntitlementName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + entitlement = Preconditions.checkNotNull(builder.getEntitlement()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEntitlement() { + return entitlement; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EntitlementName of(String project, String location, String entitlement) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEntitlement(entitlement) + .build(); + } + + public static String format(String project, String location, String entitlement) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEntitlement(entitlement) + .build() + .toString(); + } + + public static EntitlementName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ENTITLEMENT.validatedMatch( + formattedString, "EntitlementName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("entitlement")); + } + + 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 (EntitlementName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ENTITLEMENT.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 (entitlement != null) { + fieldMapBuilder.put("entitlement", entitlement); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ENTITLEMENT.instantiate( + "project", project, "location", location, "entitlement", entitlement); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EntitlementName that = ((EntitlementName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.entitlement, that.entitlement); + } + 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(entitlement); + return h; + } + + /** Builder for projects/{project}/locations/{location}/entitlements/{entitlement}. */ + public static class Builder { + private String project; + private String location; + private String entitlement; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEntitlement() { + return entitlement; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEntitlement(String entitlement) { + this.entitlement = entitlement; + return this; + } + + private Builder(EntitlementName entitlementName) { + this.project = entitlementName.project; + this.location = entitlementName.location; + this.entitlement = entitlementName.entitlement; + } + + public EntitlementName build() { + return new EntitlementName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementOrBuilder.java new file mode 100644 index 000000000000..379bc6c7589e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementOrBuilder.java @@ -0,0 +1,142 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/entitlement.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface EntitlementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.Entitlement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Entitlement resource with the format:
+   * projects/{project}/locations/{region}/entitlements/{entitlement}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Entitlement resource with the format:
+   * projects/{project}/locations/{region}/entitlements/{entitlement}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * + * @return Whether the cloudAccountDetails field is set. + */ + boolean hasCloudAccountDetails(); + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * + * @return The cloudAccountDetails. + */ + com.google.cloud.oracledatabase.v1.CloudAccountDetails getCloudAccountDetails(); + /** + * + * + *
+   * Details of the OCI Cloud Account.
+   * 
+ * + * .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + com.google.cloud.oracledatabase.v1.CloudAccountDetailsOrBuilder getCloudAccountDetailsOrBuilder(); + + /** + * + * + *
+   * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+   * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + /** + * + * + *
+   * Output only. Google Cloud Marketplace order ID (aka entitlement ID)
+   * 
+ * + * string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); + + /** + * + * + *
+   * Output only. Entitlement State.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. Entitlement State.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.Entitlement.State getState(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementProto.java new file mode 100644 index 000000000000..3aaf16466ca4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementProto.java @@ -0,0 +1,113 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/entitlement.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class EntitlementProto { + private EntitlementProto() {} + + 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_oracledatabase_v1_Entitlement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_Entitlement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/oracledatabase/v1/entitle" + + "ment.proto\022\036google.cloud.oracledatabase." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\"\305\003\n\013Entitlement\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\010\022R\n\025cloud_account_detai" + + "ls\030\002 \001(\01323.google.cloud.oracledatabase.v" + + "1.CloudAccountDetails\022\033\n\016entitlement_id\030" + + "\003 \001(\tB\003\340A\003\022E\n\005state\030\004 \001(\01621.google.cloud" + + ".oracledatabase.v1.Entitlement.StateB\003\340A" + + "\003\"Z\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\026\n\022ACC" + + "OUNT_NOT_LINKED\020\001\022\026\n\022ACCOUNT_NOT_ACTIVE\020" + + "\002\022\n\n\006ACTIVE\020\003:\216\001\352A\212\001\n)oracledatabase.goo" + + "gleapis.com/Entitlement\022Bprojects/{proje" + + "ct}/locations/{location}/entitlements/{e" + + "ntitlement}*\014entitlements2\013entitlement\"\345" + + "\001\n\023CloudAccountDetails\022\032\n\rcloud_account\030" + + "\001 \001(\tB\003\340A\003\022&\n\031cloud_account_home_region\030" + + "\002 \001(\tB\003\340A\003\022+\n\031link_existing_account_uri\030" + + "\003 \001(\tB\003\340A\003H\000\210\001\001\022&\n\024account_creation_uri\030" + + "\004 \001(\tB\003\340A\003H\001\210\001\001B\034\n\032_link_existing_accoun" + + "t_uriB\027\n\025_account_creation_uriB\352\001\n\"com.g" + + "oogle.cloud.oracledatabase.v1B\020Entitleme" + + "ntProtoP\001ZJcloud.google.com/go/oracledat" + + "abase/apiv1/oracledatabasepb;oracledatab" + + "asepb\252\002\036Google.Cloud.OracleDatabase.V1\312\002" + + "\036Google\\Cloud\\OracleDatabase\\V1\352\002!Google" + + "::Cloud::OracleDatabase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_Entitlement_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_Entitlement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_Entitlement_descriptor, + new java.lang.String[] { + "Name", "CloudAccountDetails", "EntitlementId", "State", + }); + internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CloudAccountDetails_descriptor, + new java.lang.String[] { + "CloudAccount", + "CloudAccountHomeRegion", + "LinkExistingAccountUri", + "AccountCreationUri", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletRequest.java new file mode 100644 index 000000000000..9385b4060a23 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletRequest.java @@ -0,0 +1,1129 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabase.GenerateWallet`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest} + */ +public final class GenerateAutonomousDatabaseWalletRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) + GenerateAutonomousDatabaseWalletRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateAutonomousDatabaseWalletRequest.newBuilder() to construct. + private GenerateAutonomousDatabaseWalletRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateAutonomousDatabaseWalletRequest() { + name_ = ""; + type_ = 0; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateAutonomousDatabaseWalletRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest.class, + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
+   * Optional. The type of wallet generation for the Autonomous Database. The
+   * default value is SINGLE.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional. The type of wallet generation for the Autonomous Database. The
+   * default value is SINGLE.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateType getType() { + com.google.cloud.oracledatabase.v1.GenerateType result = + com.google.cloud.oracledatabase.v1.GenerateType.forNumber(type_); + return result == null ? com.google.cloud.oracledatabase.v1.GenerateType.UNRECOGNIZED : result; + } + + public static final int IS_REGIONAL_FIELD_NUMBER = 3; + private boolean isRegional_ = false; + /** + * + * + *
+   * Optional. True when requesting regional connection strings in PDB connect
+   * info, applicable to cross-region Data Guard only.
+   * 
+ * + * bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isRegional. + */ + @java.lang.Override + public boolean getIsRegional() { + return isRegional_; + } + + public static final int PASSWORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + /** + * + * + *
+   * Required. The password used to encrypt the keys inside the wallet. The
+   * password must be a minimum of 8 characters.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + 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(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The password used to encrypt the keys inside the wallet. The
+   * password must be a minimum of 8 characters.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = 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_); + } + if (type_ + != com.google.cloud.oracledatabase.v1.GenerateType.GENERATE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (isRegional_ != false) { + output.writeBool(3, isRegional_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + 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 (type_ + != com.google.cloud.oracledatabase.v1.GenerateType.GENERATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (isRegional_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRegional_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest other = + (com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (getIsRegional() != other.getIsRegional()) return false; + if (!getPassword().equals(other.getPassword())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + IS_REGIONAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRegional()); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest 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 for `AutonomousDatabase.GenerateWallet`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest.class, + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = 0; + isRegional_ = false; + password_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest build() { + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest result = + new com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isRegional_ = isRegional_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.password_ = password_; + } + } + + @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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getIsRegional() != false) { + setIsRegional(other.getIsRegional()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + 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 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + isRegional_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional. The type of wallet generation for the Autonomous Database. The
+     * default value is SINGLE.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional. The type of wallet generation for the Autonomous Database. The
+     * default value is SINGLE.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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. The type of wallet generation for the Autonomous Database. The
+     * default value is SINGLE.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateType getType() { + com.google.cloud.oracledatabase.v1.GenerateType result = + com.google.cloud.oracledatabase.v1.GenerateType.forNumber(type_); + return result == null ? com.google.cloud.oracledatabase.v1.GenerateType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. The type of wallet generation for the Autonomous Database. The
+     * default value is SINGLE.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.oracledatabase.v1.GenerateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of wallet generation for the Autonomous Database. The
+     * default value is SINGLE.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private boolean isRegional_; + /** + * + * + *
+     * Optional. True when requesting regional connection strings in PDB connect
+     * info, applicable to cross-region Data Guard only.
+     * 
+ * + * bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isRegional. + */ + @java.lang.Override + public boolean getIsRegional() { + return isRegional_; + } + /** + * + * + *
+     * Optional. True when requesting regional connection strings in PDB connect
+     * info, applicable to cross-region Data Guard only.
+     * 
+ * + * bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isRegional to set. + * @return This builder for chaining. + */ + public Builder setIsRegional(boolean value) { + + isRegional_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. True when requesting regional connection strings in PDB connect
+     * info, applicable to cross-region Data Guard only.
+     * 
+ * + * bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsRegional() { + bitField0_ = (bitField0_ & ~0x00000004); + isRegional_ = false; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Required. The password used to encrypt the keys inside the wallet. The
+     * password must be a minimum of 8 characters.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The password used to encrypt the keys inside the wallet. The
+     * password must be a minimum of 8 characters.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The password used to encrypt the keys inside the wallet. The
+     * password must be a minimum of 8 characters.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The password used to encrypt the keys inside the wallet. The
+     * password must be a minimum of 8 characters.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The password used to encrypt the keys inside the wallet. The
+     * password must be a minimum of 8 characters.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) + private static final com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAutonomousDatabaseWalletRequest 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletRequestOrBuilder.java new file mode 100644 index 000000000000..46a4de067b92 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface GenerateAutonomousDatabaseWalletRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The type of wallet generation for the Autonomous Database. The
+   * default value is SINGLE.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Optional. The type of wallet generation for the Autonomous Database. The
+   * default value is SINGLE.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.oracledatabase.v1.GenerateType getType(); + + /** + * + * + *
+   * Optional. True when requesting regional connection strings in PDB connect
+   * info, applicable to cross-region Data Guard only.
+   * 
+ * + * bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isRegional. + */ + boolean getIsRegional(); + + /** + * + * + *
+   * Required. The password used to encrypt the keys inside the wallet. The
+   * password must be a minimum of 8 characters.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Required. The password used to encrypt the keys inside the wallet. The
+   * password must be a minimum of 8 characters.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletResponse.java new file mode 100644 index 000000000000..13339e2e920a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletResponse.java @@ -0,0 +1,565 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `AutonomousDatabase.GenerateWallet`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse} + */ +public final class GenerateAutonomousDatabaseWalletResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) + GenerateAutonomousDatabaseWalletResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateAutonomousDatabaseWalletResponse.newBuilder() to construct. + private GenerateAutonomousDatabaseWalletResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateAutonomousDatabaseWalletResponse() { + archiveContent_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateAutonomousDatabaseWalletResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse.class, + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse.Builder + .class); + } + + public static final int ARCHIVE_CONTENT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString archiveContent_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+   * Output only. The base64 encoded wallet files.
+   * 
+ * + * bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The archiveContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArchiveContent() { + return archiveContent_; + } + + 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 (!archiveContent_.isEmpty()) { + output.writeBytes(1, archiveContent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!archiveContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, archiveContent_); + } + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse other = + (com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) obj; + + if (!getArchiveContent().equals(other.getArchiveContent())) 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) + ARCHIVE_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getArchiveContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse 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 for `AutonomousDatabase.GenerateWallet`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse.class, + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + archiveContent_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse build() { + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + buildPartial() { + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse result = + new com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.archiveContent_ = archiveContent_; + } + } + + @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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + .getDefaultInstance()) return this; + if (other.getArchiveContent() != com.google.protobuf.ByteString.EMPTY) { + setArchiveContent(other.getArchiveContent()); + } + 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: + { + archiveContent_ = input.readBytes(); + 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.ByteString archiveContent_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Output only. The base64 encoded wallet files.
+     * 
+ * + * bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The archiveContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArchiveContent() { + return archiveContent_; + } + /** + * + * + *
+     * Output only. The base64 encoded wallet files.
+     * 
+ * + * bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The archiveContent to set. + * @return This builder for chaining. + */ + public Builder setArchiveContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + archiveContent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The base64 encoded wallet files.
+     * 
+ * + * bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearArchiveContent() { + bitField0_ = (bitField0_ & ~0x00000001); + archiveContent_ = getDefaultInstance().getArchiveContent(); + 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) + private static final com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse(); + } + + public static com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAutonomousDatabaseWalletResponse 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.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletResponseOrBuilder.java new file mode 100644 index 000000000000..f60bf1a8aa25 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateAutonomousDatabaseWalletResponseOrBuilder.java @@ -0,0 +1,39 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface GenerateAutonomousDatabaseWalletResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The base64 encoded wallet files.
+   * 
+ * + * bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The archiveContent. + */ + com.google.protobuf.ByteString getArchiveContent(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateType.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateType.java new file mode 100644 index 000000000000..0b33f29f1626 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GenerateType.java @@ -0,0 +1,179 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The type of wallet generation.
+ * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.GenerateType} + */ +public enum GenerateType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * GENERATE_TYPE_UNSPECIFIED = 0; + */ + GENERATE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Used to generate wallet for all databases in the region.
+   * 
+ * + * ALL = 1; + */ + ALL(1), + /** + * + * + *
+   * Used to generate wallet for a single database.
+   * 
+ * + * SINGLE = 2; + */ + SINGLE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * GENERATE_TYPE_UNSPECIFIED = 0; + */ + public static final int GENERATE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Used to generate wallet for all databases in the region.
+   * 
+ * + * ALL = 1; + */ + public static final int ALL_VALUE = 1; + /** + * + * + *
+   * Used to generate wallet for a single database.
+   * 
+ * + * SINGLE = 2; + */ + public static final int SINGLE_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 GenerateType 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 GenerateType forNumber(int value) { + switch (value) { + case 0: + return GENERATE_TYPE_UNSPECIFIED; + case 1: + return ALL; + case 2: + return SINGLE; + 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 GenerateType findValueByNumber(int number) { + return GenerateType.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.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GenerateType[] VALUES = values(); + + public static GenerateType 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 GenerateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.GenerateType) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..0f2472cedbc6 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetAutonomousDatabaseRequest.java @@ -0,0 +1,654 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabase.Get`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest} + */ +public final class GetAutonomousDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest) + GetAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAutonomousDatabaseRequest.newBuilder() to construct. + private GetAutonomousDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAutonomousDatabaseRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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, 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.oracledatabase.v1.GetAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest) 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.oracledatabase.v1.GetAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest 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 for `AutonomousDatabase.Get`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.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.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest.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_ = ""; + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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.oracledatabase.v1.GetAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAutonomousDatabaseRequest 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.oracledatabase.v1.GetAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..192dee859992 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface GetAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudExadataInfrastructureRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudExadataInfrastructureRequest.java new file mode 100644 index 000000000000..bb16a43532ce --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudExadataInfrastructureRequest.java @@ -0,0 +1,671 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudExadataInfrastructure.Get`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest} + */ +public final class GetCloudExadataInfrastructureRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest) + GetCloudExadataInfrastructureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCloudExadataInfrastructureRequest.newBuilder() to construct. + private GetCloudExadataInfrastructureRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCloudExadataInfrastructureRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCloudExadataInfrastructureRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest.class, + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.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, 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest other = + (com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest) 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest 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 for `CloudExadataInfrastructure.Get`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest) + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest.class, + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest.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.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest build() { + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest result = + new com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + .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_ = ""; + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest) + private static final com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCloudExadataInfrastructureRequest 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.oracledatabase.v1.GetCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudExadataInfrastructureRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudExadataInfrastructureRequestOrBuilder.java new file mode 100644 index 000000000000..4d77fde523ce --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudExadataInfrastructureRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface GetCloudExadataInfrastructureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudVmClusterRequest.java new file mode 100644 index 000000000000..55ba59ffb517 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudVmClusterRequest.java @@ -0,0 +1,647 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudVmCluster.Get`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetCloudVmClusterRequest} + */ +public final class GetCloudVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetCloudVmClusterRequest) + GetCloudVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCloudVmClusterRequest.newBuilder() to construct. + private GetCloudVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCloudVmClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCloudVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.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, 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.oracledatabase.v1.GetCloudVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest) 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.oracledatabase.v1.GetCloudVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest 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 for `CloudVmCluster.Get`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetCloudVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetCloudVmClusterRequest) + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.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.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest other) { + if (other == com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest.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_ = ""; + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Cloud VM Cluster in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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.oracledatabase.v1.GetCloudVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetCloudVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCloudVmClusterRequest 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.oracledatabase.v1.GetCloudVmClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..b714be126b0b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetCloudVmClusterRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface GetCloudVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetCloudVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Cloud VM Cluster in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersion.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersion.java new file mode 100644 index 000000000000..03f65f034c39 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersion.java @@ -0,0 +1,822 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/gi_version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Oracle Grid Infrastructure (GI) version resource.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GiVersion} + */ +public final class GiVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GiVersion) + GiVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use GiVersion.newBuilder() to construct. + private GiVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GiVersion() { + name_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GiVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.GiVersionProto + .internal_static_google_cloud_oracledatabase_v1_GiVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.GiVersionProto + .internal_static_google_cloud_oracledatabase_v1_GiVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GiVersion.class, + com.google.cloud.oracledatabase.v1.GiVersion.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the Oracle Grid Infrastructure (GI) version
+   * resource with the format:
+   * projects/{project}/locations/{region}/giVersions/{gi_versions}
+   * 
+ * + * 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 name of the Oracle Grid Infrastructure (GI) version
+   * resource with the format:
+   * projects/{project}/locations/{region}/giVersions/{gi_versions}
+   * 
+ * + * 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 VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
+   * Optional. version
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. version
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.oracledatabase.v1.GiVersion)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GiVersion other = + (com.google.cloud.oracledatabase.v1.GiVersion) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.oracledatabase.v1.GiVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion 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.oracledatabase.v1.GiVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion 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.oracledatabase.v1.GiVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion 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.oracledatabase.v1.GiVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion 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.oracledatabase.v1.GiVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion 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.oracledatabase.v1.GiVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of the Oracle Grid Infrastructure (GI) version resource.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.GiVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GiVersion) + com.google.cloud.oracledatabase.v1.GiVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.GiVersionProto + .internal_static_google_cloud_oracledatabase_v1_GiVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.GiVersionProto + .internal_static_google_cloud_oracledatabase_v1_GiVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GiVersion.class, + com.google.cloud.oracledatabase.v1.GiVersion.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GiVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.GiVersionProto + .internal_static_google_cloud_oracledatabase_v1_GiVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GiVersion getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GiVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GiVersion build() { + com.google.cloud.oracledatabase.v1.GiVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GiVersion buildPartial() { + com.google.cloud.oracledatabase.v1.GiVersion result = + new com.google.cloud.oracledatabase.v1.GiVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GiVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 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.oracledatabase.v1.GiVersion) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GiVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GiVersion other) { + if (other == com.google.cloud.oracledatabase.v1.GiVersion.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = 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 name_ = ""; + /** + * + * + *
+     * Identifier. The name of the Oracle Grid Infrastructure (GI) version
+     * resource with the format:
+     * projects/{project}/locations/{region}/giVersions/{gi_versions}
+     * 
+ * + * 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 name of the Oracle Grid Infrastructure (GI) version
+     * resource with the format:
+     * projects/{project}/locations/{region}/giVersions/{gi_versions}
+     * 
+ * + * 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 name of the Oracle Grid Infrastructure (GI) version
+     * resource with the format:
+     * projects/{project}/locations/{region}/giVersions/{gi_versions}
+     * 
+ * + * 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 name of the Oracle Grid Infrastructure (GI) version
+     * resource with the format:
+     * projects/{project}/locations/{region}/giVersions/{gi_versions}
+     * 
+ * + * 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 name of the Oracle Grid Infrastructure (GI) version
+     * resource with the format:
+     * projects/{project}/locations/{region}/giVersions/{gi_versions}
+     * 
+ * + * 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 version_ = ""; + /** + * + * + *
+     * Optional. version
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. version
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. version
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. version
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. version
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.oracledatabase.v1.GiVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GiVersion) + private static final com.google.cloud.oracledatabase.v1.GiVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GiVersion(); + } + + public static com.google.cloud.oracledatabase.v1.GiVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GiVersion 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.oracledatabase.v1.GiVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java new file mode 100644 index 000000000000..1b03afc6690a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java @@ -0,0 +1,223 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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 GiVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_GI_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/giVersions/{gi_version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String giVersion; + + @Deprecated + protected GiVersionName() { + project = null; + location = null; + giVersion = null; + } + + private GiVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + giVersion = Preconditions.checkNotNull(builder.getGiVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGiVersion() { + return giVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GiVersionName of(String project, String location, String giVersion) { + return newBuilder().setProject(project).setLocation(location).setGiVersion(giVersion).build(); + } + + public static String format(String project, String location, String giVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGiVersion(giVersion) + .build() + .toString(); + } + + public static GiVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_GI_VERSION.validatedMatch( + formattedString, "GiVersionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("gi_version")); + } + + 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 (GiVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_GI_VERSION.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 (giVersion != null) { + fieldMapBuilder.put("gi_version", giVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_GI_VERSION.instantiate( + "project", project, "location", location, "gi_version", giVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GiVersionName that = ((GiVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.giVersion, that.giVersion); + } + 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(giVersion); + return h; + } + + /** Builder for projects/{project}/locations/{location}/giVersions/{gi_version}. */ + public static class Builder { + private String project; + private String location; + private String giVersion; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGiVersion() { + return giVersion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setGiVersion(String giVersion) { + this.giVersion = giVersion; + return this; + } + + private Builder(GiVersionName giVersionName) { + this.project = giVersionName.project; + this.location = giVersionName.location; + this.giVersion = giVersionName.giVersion; + } + + public GiVersionName build() { + return new GiVersionName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionOrBuilder.java new file mode 100644 index 000000000000..891a167fbaf3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionOrBuilder.java @@ -0,0 +1,80 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/gi_version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface GiVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GiVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the Oracle Grid Infrastructure (GI) version
+   * resource with the format:
+   * projects/{project}/locations/{region}/giVersions/{gi_versions}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the Oracle Grid Infrastructure (GI) version
+   * resource with the format:
+   * projects/{project}/locations/{region}/giVersions/{gi_versions}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. version
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Optional. version
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionProto.java new file mode 100644 index 000000000000..3ae94af60092 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionProto.java @@ -0,0 +1,86 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/gi_version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class GiVersionProto { + private GiVersionProto() {} + + 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_oracledatabase_v1_GiVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GiVersion_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/oracledatabase/v1/gi_vers" + + "ion.proto\022\036google.cloud.oracledatabase.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\"\274\001\n\tGiVersion\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\010\022\024\n\007version\030\002 \001(\tB\003\340A\001:\205\001\352" + + "A\201\001\n\'oracledatabase.googleapis.com/GiVer" + + "sion\022?projects/{project}/locations/{loca" + + "tion}/giVersions/{gi_version}*\ngiVersion" + + "s2\tgiVersionB\350\001\n\"com.google.cloud.oracle" + + "database.v1B\016GiVersionProtoP\001ZJcloud.goo" + + "gle.com/go/oracledatabase/apiv1/oracleda" + + "tabasepb;oracledatabasepb\252\002\036Google.Cloud" + + ".OracleDatabase.V1\312\002\036Google\\Cloud\\Oracle" + + "Database\\V1\352\002!Google::Cloud::OracleDatab" + + "ase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_GiVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_GiVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GiVersion_descriptor, + new java.lang.String[] { + "Name", "Version", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsRequest.java new file mode 100644 index 000000000000..6e36efe5663f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsRequest.java @@ -0,0 +1,1171 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabaseBackup.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest} + */ +public final class ListAutonomousDatabaseBackupsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) + ListAutonomousDatabaseBackupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDatabaseBackupsRequest.newBuilder() to construct. + private ListAutonomousDatabaseBackupsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDatabaseBackupsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDatabaseBackupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for ListAutonomousDatabaseBackups in the
+   * following format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for ListAutonomousDatabaseBackups in the
+   * following format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **autonomous_database_id** field is supported in the following format:
+   * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+   * must be a valid Autonomous Database ID, limited to the naming
+   * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+   * The ID must start with a letter, end with a letter or a number, and be
+   * a maximum of 63 characters.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **autonomous_database_id** field is supported in the following format:
+   * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+   * must be a valid Autonomous Database ID, limited to the naming
+   * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+   * The ID must start with a letter, end with a letter or a number, and be
+   * a maximum of 63 characters.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous DB Backups will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest 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 for `AutonomousDatabaseBackup.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent value for ListAutonomousDatabaseBackups in the
+     * following format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for ListAutonomousDatabaseBackups in the
+     * following format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for ListAutonomousDatabaseBackups in the
+     * following format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for ListAutonomousDatabaseBackups in the
+     * following format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for ListAutonomousDatabaseBackups in the
+     * following format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **autonomous_database_id** field is supported in the following format:
+     * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+     * must be a valid Autonomous Database ID, limited to the naming
+     * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+     * The ID must start with a letter, end with a letter or a number, and be
+     * a maximum of 63 characters.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **autonomous_database_id** field is supported in the following format:
+     * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+     * must be a valid Autonomous Database ID, limited to the naming
+     * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+     * The ID must start with a letter, end with a letter or a number, and be
+     * a maximum of 63 characters.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **autonomous_database_id** field is supported in the following format:
+     * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+     * must be a valid Autonomous Database ID, limited to the naming
+     * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+     * The ID must start with a letter, end with a letter or a number, and be
+     * a maximum of 63 characters.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **autonomous_database_id** field is supported in the following format:
+     * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+     * must be a valid Autonomous Database ID, limited to the naming
+     * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+     * The ID must start with a letter, end with a letter or a number, and be
+     * a maximum of 63 characters.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **autonomous_database_id** field is supported in the following format:
+     * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+     * must be a valid Autonomous Database ID, limited to the naming
+     * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+     * The ID must start with a letter, end with a letter or a number, and be
+     * a maximum of 63 characters.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Backups will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Backups will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Backups will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDatabaseBackupsRequest 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.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsRequestOrBuilder.java new file mode 100644 index 000000000000..a829393c6cfc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDatabaseBackupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for ListAutonomousDatabaseBackups in the
+   * following format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for ListAutonomousDatabaseBackups in the
+   * following format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **autonomous_database_id** field is supported in the following format:
+   * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+   * must be a valid Autonomous Database ID, limited to the naming
+   * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+   * The ID must start with a letter, end with a letter or a number, and be
+   * a maximum of 63 characters.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **autonomous_database_id** field is supported in the following format:
+   * `autonomous_database_id="{autonomous_database_id}"`. The accepted values
+   * must be a valid Autonomous Database ID, limited to the naming
+   * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
+   * The ID must start with a letter, end with a letter or a number, and be
+   * a maximum of 63 characters.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous DB Backups will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsResponse.java new file mode 100644 index 000000000000..d86fda6b4953 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsResponse.java @@ -0,0 +1,1215 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `AutonomousDatabaseBackup.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse} + */ +public final class ListAutonomousDatabaseBackupsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) + ListAutonomousDatabaseBackupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDatabaseBackupsResponse.newBuilder() to construct. + private ListAutonomousDatabaseBackupsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDatabaseBackupsResponse() { + autonomousDatabaseBackups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDatabaseBackupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse.Builder.class); + } + + public static final int AUTONOMOUS_DATABASE_BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + autonomousDatabaseBackups_; + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + @java.lang.Override + public java.util.List + getAutonomousDatabaseBackupsList() { + return autonomousDatabaseBackups_; + } + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder> + getAutonomousDatabaseBackupsOrBuilderList() { + return autonomousDatabaseBackups_; + } + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + @java.lang.Override + public int getAutonomousDatabaseBackupsCount() { + return autonomousDatabaseBackups_.size(); + } + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup getAutonomousDatabaseBackups( + int index) { + return autonomousDatabaseBackups_.get(index); + } + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder + getAutonomousDatabaseBackupsOrBuilder(int index) { + return autonomousDatabaseBackups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < autonomousDatabaseBackups_.size(); i++) { + output.writeMessage(1, autonomousDatabaseBackups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < autonomousDatabaseBackups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, autonomousDatabaseBackups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) obj; + + if (!getAutonomousDatabaseBackupsList().equals(other.getAutonomousDatabaseBackupsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAutonomousDatabaseBackupsCount() > 0) { + hash = (37 * hash) + AUTONOMOUS_DATABASE_BACKUPS_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabaseBackupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse 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 for `AutonomousDatabaseBackup.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (autonomousDatabaseBackupsBuilder_ == null) { + autonomousDatabaseBackups_ = java.util.Collections.emptyList(); + } else { + autonomousDatabaseBackups_ = null; + autonomousDatabaseBackupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse result) { + if (autonomousDatabaseBackupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autonomousDatabaseBackups_ = + java.util.Collections.unmodifiableList(autonomousDatabaseBackups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autonomousDatabaseBackups_ = autonomousDatabaseBackups_; + } else { + result.autonomousDatabaseBackups_ = autonomousDatabaseBackupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + .getDefaultInstance()) return this; + if (autonomousDatabaseBackupsBuilder_ == null) { + if (!other.autonomousDatabaseBackups_.isEmpty()) { + if (autonomousDatabaseBackups_.isEmpty()) { + autonomousDatabaseBackups_ = other.autonomousDatabaseBackups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.addAll(other.autonomousDatabaseBackups_); + } + onChanged(); + } + } else { + if (!other.autonomousDatabaseBackups_.isEmpty()) { + if (autonomousDatabaseBackupsBuilder_.isEmpty()) { + autonomousDatabaseBackupsBuilder_.dispose(); + autonomousDatabaseBackupsBuilder_ = null; + autonomousDatabaseBackups_ = other.autonomousDatabaseBackups_; + bitField0_ = (bitField0_ & ~0x00000001); + autonomousDatabaseBackupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAutonomousDatabaseBackupsFieldBuilder() + : null; + } else { + autonomousDatabaseBackupsBuilder_.addAllMessages(other.autonomousDatabaseBackups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup m = + input.readMessage( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.parser(), + extensionRegistry); + if (autonomousDatabaseBackupsBuilder_ == null) { + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.add(m); + } else { + autonomousDatabaseBackupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + autonomousDatabaseBackups_ = java.util.Collections.emptyList(); + + private void ensureAutonomousDatabaseBackupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autonomousDatabaseBackups_ = + new java.util.ArrayList( + autonomousDatabaseBackups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder> + autonomousDatabaseBackupsBuilder_; + + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public java.util.List + getAutonomousDatabaseBackupsList() { + if (autonomousDatabaseBackupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(autonomousDatabaseBackups_); + } else { + return autonomousDatabaseBackupsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public int getAutonomousDatabaseBackupsCount() { + if (autonomousDatabaseBackupsBuilder_ == null) { + return autonomousDatabaseBackups_.size(); + } else { + return autonomousDatabaseBackupsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup getAutonomousDatabaseBackups( + int index) { + if (autonomousDatabaseBackupsBuilder_ == null) { + return autonomousDatabaseBackups_.get(index); + } else { + return autonomousDatabaseBackupsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder setAutonomousDatabaseBackups( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup value) { + if (autonomousDatabaseBackupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.set(index, value); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder setAutonomousDatabaseBackups( + int index, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder builderForValue) { + if (autonomousDatabaseBackupsBuilder_ == null) { + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.set(index, builderForValue.build()); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder addAutonomousDatabaseBackups( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup value) { + if (autonomousDatabaseBackupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.add(value); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder addAutonomousDatabaseBackups( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup value) { + if (autonomousDatabaseBackupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.add(index, value); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder addAutonomousDatabaseBackups( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder builderForValue) { + if (autonomousDatabaseBackupsBuilder_ == null) { + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.add(builderForValue.build()); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder addAutonomousDatabaseBackups( + int index, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder builderForValue) { + if (autonomousDatabaseBackupsBuilder_ == null) { + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.add(index, builderForValue.build()); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder addAllAutonomousDatabaseBackups( + java.lang.Iterable + values) { + if (autonomousDatabaseBackupsBuilder_ == null) { + ensureAutonomousDatabaseBackupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autonomousDatabaseBackups_); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder clearAutonomousDatabaseBackups() { + if (autonomousDatabaseBackupsBuilder_ == null) { + autonomousDatabaseBackups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public Builder removeAutonomousDatabaseBackups(int index) { + if (autonomousDatabaseBackupsBuilder_ == null) { + ensureAutonomousDatabaseBackupsIsMutable(); + autonomousDatabaseBackups_.remove(index); + onChanged(); + } else { + autonomousDatabaseBackupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder + getAutonomousDatabaseBackupsBuilder(int index) { + return getAutonomousDatabaseBackupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder + getAutonomousDatabaseBackupsOrBuilder(int index) { + if (autonomousDatabaseBackupsBuilder_ == null) { + return autonomousDatabaseBackups_.get(index); + } else { + return autonomousDatabaseBackupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder> + getAutonomousDatabaseBackupsOrBuilderList() { + if (autonomousDatabaseBackupsBuilder_ != null) { + return autonomousDatabaseBackupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autonomousDatabaseBackups_); + } + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder + addAutonomousDatabaseBackupsBuilder() { + return getAutonomousDatabaseBackupsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder + addAutonomousDatabaseBackupsBuilder(int index) { + return getAutonomousDatabaseBackupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Database Backups.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + public java.util.List + getAutonomousDatabaseBackupsBuilderList() { + return getAutonomousDatabaseBackupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder> + getAutonomousDatabaseBackupsFieldBuilder() { + if (autonomousDatabaseBackupsBuilder_ == null) { + autonomousDatabaseBackupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder>( + autonomousDatabaseBackups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autonomousDatabaseBackups_ = null; + } + return autonomousDatabaseBackupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDatabaseBackupsResponse 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.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsResponseOrBuilder.java new file mode 100644 index 000000000000..36bd2ffa0e17 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseBackupsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDatabaseBackupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + java.util.List + getAutonomousDatabaseBackupsList(); + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup getAutonomousDatabaseBackups( + int index); + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + int getAutonomousDatabaseBackupsCount(); + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + java.util.List + getAutonomousDatabaseBackupsOrBuilderList(); + /** + * + * + *
+   * The list of Autonomous Database Backups.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupOrBuilder + getAutonomousDatabaseBackupsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsRequest.java new file mode 100644 index 000000000000..3f3ede072db1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsRequest.java @@ -0,0 +1,1161 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabaseCharacterSet.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest} + */ +public final class ListAutonomousDatabaseCharacterSetsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) + ListAutonomousDatabaseCharacterSetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDatabaseCharacterSetsRequest.newBuilder() to construct. + private ListAutonomousDatabaseCharacterSetsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDatabaseCharacterSetsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDatabaseCharacterSetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous DB Character Sets will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **character_set_type** field is supported in the following format:
+   * `character_set_type="{characterSetType}"`. Accepted values include
+   * `DATABASE` and `NATIONAL`.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **character_set_type** field is supported in the following format:
+   * `character_set_type="{characterSetType}"`. Accepted values include
+   * `DATABASE` and `NATIONAL`.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) 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 (!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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest 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 for `AutonomousDatabaseCharacterSet.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest 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_; + } + } + + @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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + .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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Character Sets will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Character Sets will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Character Sets will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **character_set_type** field is supported in the following format:
+     * `character_set_type="{characterSetType}"`. Accepted values include
+     * `DATABASE` and `NATIONAL`.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **character_set_type** field is supported in the following format:
+     * `character_set_type="{characterSetType}"`. Accepted values include
+     * `DATABASE` and `NATIONAL`.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **character_set_type** field is supported in the following format:
+     * `character_set_type="{characterSetType}"`. Accepted values include
+     * `DATABASE` and `NATIONAL`.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **character_set_type** field is supported in the following format:
+     * `character_set_type="{characterSetType}"`. Accepted values include
+     * `DATABASE` and `NATIONAL`.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Only the
+     * **character_set_type** field is supported in the following format:
+     * `character_set_type="{characterSetType}"`. Accepted values include
+     * `DATABASE` and `NATIONAL`.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDatabaseCharacterSetsRequest 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsRequestOrBuilder.java new file mode 100644 index 000000000000..ac37e5368ab3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDatabaseCharacterSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous DB Character Sets will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **character_set_type** field is supported in the following format:
+   * `character_set_type="{characterSetType}"`. Accepted values include
+   * `DATABASE` and `NATIONAL`.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Only the
+   * **character_set_type** field is supported in the following format:
+   * `character_set_type="{characterSetType}"`. Accepted values include
+   * `DATABASE` and `NATIONAL`.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsResponse.java new file mode 100644 index 000000000000..ba2f48379c9d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsResponse.java @@ -0,0 +1,1235 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `AutonomousDatabaseCharacterSet.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse} + */ +public final class ListAutonomousDatabaseCharacterSetsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) + ListAutonomousDatabaseCharacterSetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDatabaseCharacterSetsResponse.newBuilder() to construct. + private ListAutonomousDatabaseCharacterSetsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDatabaseCharacterSetsResponse() { + autonomousDatabaseCharacterSets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDatabaseCharacterSetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse.Builder + .class); + } + + public static final int AUTONOMOUS_DATABASE_CHARACTER_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + autonomousDatabaseCharacterSets_; + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getAutonomousDatabaseCharacterSetsList() { + return autonomousDatabaseCharacterSets_; + } + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder> + getAutonomousDatabaseCharacterSetsOrBuilderList() { + return autonomousDatabaseCharacterSets_; + } + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + @java.lang.Override + public int getAutonomousDatabaseCharacterSetsCount() { + return autonomousDatabaseCharacterSets_.size(); + } + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + getAutonomousDatabaseCharacterSets(int index) { + return autonomousDatabaseCharacterSets_.get(index); + } + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder + getAutonomousDatabaseCharacterSetsOrBuilder(int index) { + return autonomousDatabaseCharacterSets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < autonomousDatabaseCharacterSets_.size(); i++) { + output.writeMessage(1, autonomousDatabaseCharacterSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < autonomousDatabaseCharacterSets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, autonomousDatabaseCharacterSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) obj; + + if (!getAutonomousDatabaseCharacterSetsList() + .equals(other.getAutonomousDatabaseCharacterSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAutonomousDatabaseCharacterSetsCount() > 0) { + hash = (37 * hash) + AUTONOMOUS_DATABASE_CHARACTER_SETS_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabaseCharacterSetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse 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 for `AutonomousDatabaseCharacterSet.List`.
+   * 
+ * + * Protobuf type {@code + * google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + autonomousDatabaseCharacterSets_ = java.util.Collections.emptyList(); + } else { + autonomousDatabaseCharacterSets_ = null; + autonomousDatabaseCharacterSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse result) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autonomousDatabaseCharacterSets_ = + java.util.Collections.unmodifiableList(autonomousDatabaseCharacterSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autonomousDatabaseCharacterSets_ = autonomousDatabaseCharacterSets_; + } else { + result.autonomousDatabaseCharacterSets_ = autonomousDatabaseCharacterSetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + .getDefaultInstance()) return this; + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + if (!other.autonomousDatabaseCharacterSets_.isEmpty()) { + if (autonomousDatabaseCharacterSets_.isEmpty()) { + autonomousDatabaseCharacterSets_ = other.autonomousDatabaseCharacterSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.addAll(other.autonomousDatabaseCharacterSets_); + } + onChanged(); + } + } else { + if (!other.autonomousDatabaseCharacterSets_.isEmpty()) { + if (autonomousDatabaseCharacterSetsBuilder_.isEmpty()) { + autonomousDatabaseCharacterSetsBuilder_.dispose(); + autonomousDatabaseCharacterSetsBuilder_ = null; + autonomousDatabaseCharacterSets_ = other.autonomousDatabaseCharacterSets_; + bitField0_ = (bitField0_ & ~0x00000001); + autonomousDatabaseCharacterSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAutonomousDatabaseCharacterSetsFieldBuilder() + : null; + } else { + autonomousDatabaseCharacterSetsBuilder_.addAllMessages( + other.autonomousDatabaseCharacterSets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet m = + input.readMessage( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.parser(), + extensionRegistry); + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.add(m); + } else { + autonomousDatabaseCharacterSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + autonomousDatabaseCharacterSets_ = java.util.Collections.emptyList(); + + private void ensureAutonomousDatabaseCharacterSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autonomousDatabaseCharacterSets_ = + new java.util.ArrayList< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet>( + autonomousDatabaseCharacterSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder> + autonomousDatabaseCharacterSetsBuilder_; + + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public java.util.List + getAutonomousDatabaseCharacterSetsList() { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(autonomousDatabaseCharacterSets_); + } else { + return autonomousDatabaseCharacterSetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public int getAutonomousDatabaseCharacterSetsCount() { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + return autonomousDatabaseCharacterSets_.size(); + } else { + return autonomousDatabaseCharacterSetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + getAutonomousDatabaseCharacterSets(int index) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + return autonomousDatabaseCharacterSets_.get(index); + } else { + return autonomousDatabaseCharacterSetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder setAutonomousDatabaseCharacterSets( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet value) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.set(index, value); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder setAutonomousDatabaseCharacterSets( + int index, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder builderForValue) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.set(index, builderForValue.build()); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder addAutonomousDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet value) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.add(value); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder addAutonomousDatabaseCharacterSets( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet value) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.add(index, value); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder addAutonomousDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder builderForValue) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.add(builderForValue.build()); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder addAutonomousDatabaseCharacterSets( + int index, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder builderForValue) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.add(index, builderForValue.build()); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder addAllAutonomousDatabaseCharacterSets( + java.lang.Iterable< + ? extends com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet> + values) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, autonomousDatabaseCharacterSets_); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder clearAutonomousDatabaseCharacterSets() { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + autonomousDatabaseCharacterSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public Builder removeAutonomousDatabaseCharacterSets(int index) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + ensureAutonomousDatabaseCharacterSetsIsMutable(); + autonomousDatabaseCharacterSets_.remove(index); + onChanged(); + } else { + autonomousDatabaseCharacterSetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder + getAutonomousDatabaseCharacterSetsBuilder(int index) { + return getAutonomousDatabaseCharacterSetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder + getAutonomousDatabaseCharacterSetsOrBuilder(int index) { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + return autonomousDatabaseCharacterSets_.get(index); + } else { + return autonomousDatabaseCharacterSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder> + getAutonomousDatabaseCharacterSetsOrBuilderList() { + if (autonomousDatabaseCharacterSetsBuilder_ != null) { + return autonomousDatabaseCharacterSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autonomousDatabaseCharacterSets_); + } + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder + addAutonomousDatabaseCharacterSetsBuilder() { + return getAutonomousDatabaseCharacterSetsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder + addAutonomousDatabaseCharacterSetsBuilder(int index) { + return getAutonomousDatabaseCharacterSetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Database Character Sets.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + public java.util.List + getAutonomousDatabaseCharacterSetsBuilderList() { + return getAutonomousDatabaseCharacterSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder> + getAutonomousDatabaseCharacterSetsFieldBuilder() { + if (autonomousDatabaseCharacterSetsBuilder_ == null) { + autonomousDatabaseCharacterSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder>( + autonomousDatabaseCharacterSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autonomousDatabaseCharacterSets_ = null; + } + return autonomousDatabaseCharacterSetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) + private static final com.google.cloud.oracledatabase.v1 + .ListAutonomousDatabaseCharacterSetsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDatabaseCharacterSetsResponse 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.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsResponseOrBuilder.java new file mode 100644 index 000000000000..73d536c714a2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabaseCharacterSetsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDatabaseCharacterSetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + java.util.List + getAutonomousDatabaseCharacterSetsList(); + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + getAutonomousDatabaseCharacterSets(int index); + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + int getAutonomousDatabaseCharacterSetsCount(); + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + java.util.List< + ? extends com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder> + getAutonomousDatabaseCharacterSetsOrBuilderList(); + /** + * + * + *
+   * The list of Autonomous Database Character Sets.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetOrBuilder + getAutonomousDatabaseCharacterSetsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesRequest.java new file mode 100644 index 000000000000..e31ad6e93d91 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesRequest.java @@ -0,0 +1,1304 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabase.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest} + */ +public final class ListAutonomousDatabasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest) + ListAutonomousDatabasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDatabasesRequest.newBuilder() to construct. + private ListAutonomousDatabasesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDatabasesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDatabasesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous Database will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. An expression for ordering the results of the request.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. An expression for ordering the results of the request.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.oracledatabase.v1.ListAutonomousDatabasesRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest) 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.oracledatabase.v1.ListAutonomousDatabasesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest 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.oracledatabase.v1.ListAutonomousDatabasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest 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.oracledatabase.v1.ListAutonomousDatabasesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest 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.oracledatabase.v1.ListAutonomousDatabasesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest + 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.oracledatabase.v1.ListAutonomousDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest 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.oracledatabase.v1.ListAutonomousDatabasesRequest 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 for `AutonomousDatabase.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest) + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.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.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest 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.oracledatabase.v1.ListAutonomousDatabasesRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest.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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous Database will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous Database will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous Database will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. An expression for ordering the results of the request.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for ordering the results of the request.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An expression for ordering the results of the request.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for ordering the results of the request.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for ordering the results of the request.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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.oracledatabase.v1.ListAutonomousDatabasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDatabasesRequest 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.oracledatabase.v1.ListAutonomousDatabasesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesRequestOrBuilder.java new file mode 100644 index 000000000000..e8002e0aaa3f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesRequestOrBuilder.java @@ -0,0 +1,147 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDatabasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous Database will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. An expression for ordering the results of the request.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. An expression for ordering the results of the request.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesResponse.java new file mode 100644 index 000000000000..2f3f50ce8a99 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesResponse.java @@ -0,0 +1,1175 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `AutonomousDatabase.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse} + */ +public final class ListAutonomousDatabasesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse) + ListAutonomousDatabasesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDatabasesResponse.newBuilder() to construct. + private ListAutonomousDatabasesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDatabasesResponse() { + autonomousDatabases_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDatabasesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse.Builder.class); + } + + public static final int AUTONOMOUS_DATABASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + autonomousDatabases_; + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + @java.lang.Override + public java.util.List + getAutonomousDatabasesList() { + return autonomousDatabases_; + } + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + @java.lang.Override + public java.util.List + getAutonomousDatabasesOrBuilderList() { + return autonomousDatabases_; + } + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + @java.lang.Override + public int getAutonomousDatabasesCount() { + return autonomousDatabases_.size(); + } + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabases(int index) { + return autonomousDatabases_.get(index); + } + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder + getAutonomousDatabasesOrBuilder(int index) { + return autonomousDatabases_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < autonomousDatabases_.size(); i++) { + output.writeMessage(1, autonomousDatabases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < autonomousDatabases_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, autonomousDatabases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListAutonomousDatabasesResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse) obj; + + if (!getAutonomousDatabasesList().equals(other.getAutonomousDatabasesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAutonomousDatabasesCount() > 0) { + hash = (37 * hash) + AUTONOMOUS_DATABASES_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabasesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse 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.oracledatabase.v1.ListAutonomousDatabasesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse 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.oracledatabase.v1.ListAutonomousDatabasesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse 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.oracledatabase.v1.ListAutonomousDatabasesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + 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.oracledatabase.v1.ListAutonomousDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse 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.oracledatabase.v1.ListAutonomousDatabasesResponse 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 for `AutonomousDatabase.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse) + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (autonomousDatabasesBuilder_ == null) { + autonomousDatabases_ = java.util.Collections.emptyList(); + } else { + autonomousDatabases_ = null; + autonomousDatabasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse result) { + if (autonomousDatabasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autonomousDatabases_ = java.util.Collections.unmodifiableList(autonomousDatabases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autonomousDatabases_ = autonomousDatabases_; + } else { + result.autonomousDatabases_ = autonomousDatabasesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListAutonomousDatabasesResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + .getDefaultInstance()) return this; + if (autonomousDatabasesBuilder_ == null) { + if (!other.autonomousDatabases_.isEmpty()) { + if (autonomousDatabases_.isEmpty()) { + autonomousDatabases_ = other.autonomousDatabases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.addAll(other.autonomousDatabases_); + } + onChanged(); + } + } else { + if (!other.autonomousDatabases_.isEmpty()) { + if (autonomousDatabasesBuilder_.isEmpty()) { + autonomousDatabasesBuilder_.dispose(); + autonomousDatabasesBuilder_ = null; + autonomousDatabases_ = other.autonomousDatabases_; + bitField0_ = (bitField0_ & ~0x00000001); + autonomousDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAutonomousDatabasesFieldBuilder() + : null; + } else { + autonomousDatabasesBuilder_.addAllMessages(other.autonomousDatabases_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.AutonomousDatabase m = + input.readMessage( + com.google.cloud.oracledatabase.v1.AutonomousDatabase.parser(), + extensionRegistry); + if (autonomousDatabasesBuilder_ == null) { + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.add(m); + } else { + autonomousDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + autonomousDatabases_ = java.util.Collections.emptyList(); + + private void ensureAutonomousDatabasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autonomousDatabases_ = + new java.util.ArrayList( + autonomousDatabases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder> + autonomousDatabasesBuilder_; + + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public java.util.List + getAutonomousDatabasesList() { + if (autonomousDatabasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(autonomousDatabases_); + } else { + return autonomousDatabasesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public int getAutonomousDatabasesCount() { + if (autonomousDatabasesBuilder_ == null) { + return autonomousDatabases_.size(); + } else { + return autonomousDatabasesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabases(int index) { + if (autonomousDatabasesBuilder_ == null) { + return autonomousDatabases_.get(index); + } else { + return autonomousDatabasesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder setAutonomousDatabases( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.set(index, value); + onChanged(); + } else { + autonomousDatabasesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder setAutonomousDatabases( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder builderForValue) { + if (autonomousDatabasesBuilder_ == null) { + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.set(index, builderForValue.build()); + onChanged(); + } else { + autonomousDatabasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder addAutonomousDatabases( + com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.add(value); + onChanged(); + } else { + autonomousDatabasesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder addAutonomousDatabases( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.add(index, value); + onChanged(); + } else { + autonomousDatabasesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder addAutonomousDatabases( + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder builderForValue) { + if (autonomousDatabasesBuilder_ == null) { + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.add(builderForValue.build()); + onChanged(); + } else { + autonomousDatabasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder addAutonomousDatabases( + int index, com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder builderForValue) { + if (autonomousDatabasesBuilder_ == null) { + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.add(index, builderForValue.build()); + onChanged(); + } else { + autonomousDatabasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder addAllAutonomousDatabases( + java.lang.Iterable + values) { + if (autonomousDatabasesBuilder_ == null) { + ensureAutonomousDatabasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autonomousDatabases_); + onChanged(); + } else { + autonomousDatabasesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder clearAutonomousDatabases() { + if (autonomousDatabasesBuilder_ == null) { + autonomousDatabases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autonomousDatabasesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public Builder removeAutonomousDatabases(int index) { + if (autonomousDatabasesBuilder_ == null) { + ensureAutonomousDatabasesIsMutable(); + autonomousDatabases_.remove(index); + onChanged(); + } else { + autonomousDatabasesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder + getAutonomousDatabasesBuilder(int index) { + return getAutonomousDatabasesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder + getAutonomousDatabasesOrBuilder(int index) { + if (autonomousDatabasesBuilder_ == null) { + return autonomousDatabases_.get(index); + } else { + return autonomousDatabasesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public java.util.List + getAutonomousDatabasesOrBuilderList() { + if (autonomousDatabasesBuilder_ != null) { + return autonomousDatabasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autonomousDatabases_); + } + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder + addAutonomousDatabasesBuilder() { + return getAutonomousDatabasesFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder + addAutonomousDatabasesBuilder(int index) { + return getAutonomousDatabasesFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Databases.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + public java.util.List + getAutonomousDatabasesBuilderList() { + return getAutonomousDatabasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder> + getAutonomousDatabasesFieldBuilder() { + if (autonomousDatabasesBuilder_ == null) { + autonomousDatabasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder>( + autonomousDatabases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autonomousDatabases_ = null; + } + return autonomousDatabasesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListAutonomousDatabasesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDatabasesResponse 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.oracledatabase.v1.ListAutonomousDatabasesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesResponseOrBuilder.java new file mode 100644 index 000000000000..e1349819d22e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDatabasesResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDatabasesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + java.util.List + getAutonomousDatabasesList(); + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabases(int index); + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + int getAutonomousDatabasesCount(); + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + java.util.List + getAutonomousDatabasesOrBuilderList(); + /** + * + * + *
+   * The list of Autonomous Databases.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder getAutonomousDatabasesOrBuilder( + int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsRequest.java new file mode 100644 index 000000000000..c72b05bc6244 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsRequest.java @@ -0,0 +1,942 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDbVersion.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest} + */ +public final class ListAutonomousDbVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest) + ListAutonomousDbVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDbVersionsRequest.newBuilder() to construct. + private ListAutonomousDbVersionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDbVersionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDbVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous DB Versions will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListAutonomousDbVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest 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.oracledatabase.v1.ListAutonomousDbVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest 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.oracledatabase.v1.ListAutonomousDbVersionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest 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.oracledatabase.v1.ListAutonomousDbVersionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + 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.oracledatabase.v1.ListAutonomousDbVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest 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.oracledatabase.v1.ListAutonomousDbVersionsRequest 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 for `AutonomousDbVersion.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest) + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest 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_; + } + } + + @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.oracledatabase.v1.ListAutonomousDbVersionsRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + .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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for the Autonomous Database in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Versions will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Versions will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Autonomous DB Versions will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListAutonomousDbVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDbVersionsRequest 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.oracledatabase.v1.ListAutonomousDbVersionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..84900915b90a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDbVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for the Autonomous Database in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Autonomous DB Versions will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsResponse.java new file mode 100644 index 000000000000..8237dd35e1b0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsResponse.java @@ -0,0 +1,1194 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `AutonomousDbVersion.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse} + */ +public final class ListAutonomousDbVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse) + ListAutonomousDbVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAutonomousDbVersionsResponse.newBuilder() to construct. + private ListAutonomousDbVersionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAutonomousDbVersionsResponse() { + autonomousDbVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAutonomousDbVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse.Builder.class); + } + + public static final int AUTONOMOUS_DB_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + autonomousDbVersions_; + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + @java.lang.Override + public java.util.List + getAutonomousDbVersionsList() { + return autonomousDbVersions_; + } + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + @java.lang.Override + public java.util.List + getAutonomousDbVersionsOrBuilderList() { + return autonomousDbVersions_; + } + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + @java.lang.Override + public int getAutonomousDbVersionsCount() { + return autonomousDbVersions_.size(); + } + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion getAutonomousDbVersions(int index) { + return autonomousDbVersions_.get(index); + } + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder + getAutonomousDbVersionsOrBuilder(int index) { + return autonomousDbVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < autonomousDbVersions_.size(); i++) { + output.writeMessage(1, autonomousDbVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < autonomousDbVersions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, autonomousDbVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListAutonomousDbVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse other = + (com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse) obj; + + if (!getAutonomousDbVersionsList().equals(other.getAutonomousDbVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAutonomousDbVersionsCount() > 0) { + hash = (37 * hash) + AUTONOMOUS_DB_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDbVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse 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.oracledatabase.v1.ListAutonomousDbVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse 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.oracledatabase.v1.ListAutonomousDbVersionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse 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.oracledatabase.v1.ListAutonomousDbVersionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + 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.oracledatabase.v1.ListAutonomousDbVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse 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.oracledatabase.v1.ListAutonomousDbVersionsResponse 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 for `AutonomousDbVersion.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse) + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (autonomousDbVersionsBuilder_ == null) { + autonomousDbVersions_ = java.util.Collections.emptyList(); + } else { + autonomousDbVersions_ = null; + autonomousDbVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse build() { + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse result = + new com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse result) { + if (autonomousDbVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autonomousDbVersions_ = java.util.Collections.unmodifiableList(autonomousDbVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autonomousDbVersions_ = autonomousDbVersions_; + } else { + result.autonomousDbVersions_ = autonomousDbVersionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListAutonomousDbVersionsResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + .getDefaultInstance()) return this; + if (autonomousDbVersionsBuilder_ == null) { + if (!other.autonomousDbVersions_.isEmpty()) { + if (autonomousDbVersions_.isEmpty()) { + autonomousDbVersions_ = other.autonomousDbVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.addAll(other.autonomousDbVersions_); + } + onChanged(); + } + } else { + if (!other.autonomousDbVersions_.isEmpty()) { + if (autonomousDbVersionsBuilder_.isEmpty()) { + autonomousDbVersionsBuilder_.dispose(); + autonomousDbVersionsBuilder_ = null; + autonomousDbVersions_ = other.autonomousDbVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + autonomousDbVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAutonomousDbVersionsFieldBuilder() + : null; + } else { + autonomousDbVersionsBuilder_.addAllMessages(other.autonomousDbVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.AutonomousDbVersion m = + input.readMessage( + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.parser(), + extensionRegistry); + if (autonomousDbVersionsBuilder_ == null) { + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.add(m); + } else { + autonomousDbVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + autonomousDbVersions_ = java.util.Collections.emptyList(); + + private void ensureAutonomousDbVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autonomousDbVersions_ = + new java.util.ArrayList( + autonomousDbVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDbVersion, + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder> + autonomousDbVersionsBuilder_; + + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public java.util.List + getAutonomousDbVersionsList() { + if (autonomousDbVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(autonomousDbVersions_); + } else { + return autonomousDbVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public int getAutonomousDbVersionsCount() { + if (autonomousDbVersionsBuilder_ == null) { + return autonomousDbVersions_.size(); + } else { + return autonomousDbVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion getAutonomousDbVersions( + int index) { + if (autonomousDbVersionsBuilder_ == null) { + return autonomousDbVersions_.get(index); + } else { + return autonomousDbVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder setAutonomousDbVersions( + int index, com.google.cloud.oracledatabase.v1.AutonomousDbVersion value) { + if (autonomousDbVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.set(index, value); + onChanged(); + } else { + autonomousDbVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder setAutonomousDbVersions( + int index, com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder builderForValue) { + if (autonomousDbVersionsBuilder_ == null) { + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + autonomousDbVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder addAutonomousDbVersions( + com.google.cloud.oracledatabase.v1.AutonomousDbVersion value) { + if (autonomousDbVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.add(value); + onChanged(); + } else { + autonomousDbVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder addAutonomousDbVersions( + int index, com.google.cloud.oracledatabase.v1.AutonomousDbVersion value) { + if (autonomousDbVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.add(index, value); + onChanged(); + } else { + autonomousDbVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder addAutonomousDbVersions( + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder builderForValue) { + if (autonomousDbVersionsBuilder_ == null) { + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.add(builderForValue.build()); + onChanged(); + } else { + autonomousDbVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder addAutonomousDbVersions( + int index, com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder builderForValue) { + if (autonomousDbVersionsBuilder_ == null) { + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + autonomousDbVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder addAllAutonomousDbVersions( + java.lang.Iterable + values) { + if (autonomousDbVersionsBuilder_ == null) { + ensureAutonomousDbVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autonomousDbVersions_); + onChanged(); + } else { + autonomousDbVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder clearAutonomousDbVersions() { + if (autonomousDbVersionsBuilder_ == null) { + autonomousDbVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autonomousDbVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public Builder removeAutonomousDbVersions(int index) { + if (autonomousDbVersionsBuilder_ == null) { + ensureAutonomousDbVersionsIsMutable(); + autonomousDbVersions_.remove(index); + onChanged(); + } else { + autonomousDbVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder + getAutonomousDbVersionsBuilder(int index) { + return getAutonomousDbVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder + getAutonomousDbVersionsOrBuilder(int index) { + if (autonomousDbVersionsBuilder_ == null) { + return autonomousDbVersions_.get(index); + } else { + return autonomousDbVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public java.util.List + getAutonomousDbVersionsOrBuilderList() { + if (autonomousDbVersionsBuilder_ != null) { + return autonomousDbVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autonomousDbVersions_); + } + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder + addAutonomousDbVersionsBuilder() { + return getAutonomousDbVersionsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.AutonomousDbVersion.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder + addAutonomousDbVersionsBuilder(int index) { + return getAutonomousDbVersionsFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.AutonomousDbVersion.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Autonomous Database versions.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + public java.util.List + getAutonomousDbVersionsBuilderList() { + return getAutonomousDbVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDbVersion, + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder> + getAutonomousDbVersionsFieldBuilder() { + if (autonomousDbVersionsBuilder_ == null) { + autonomousDbVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDbVersion, + com.google.cloud.oracledatabase.v1.AutonomousDbVersion.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder>( + autonomousDbVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autonomousDbVersions_ = null; + } + return autonomousDbVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListAutonomousDbVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse) + private static final com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutonomousDbVersionsResponse 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.oracledatabase.v1.ListAutonomousDbVersionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..0ff575bde67a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListAutonomousDbVersionsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListAutonomousDbVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + java.util.List + getAutonomousDbVersionsList(); + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDbVersion getAutonomousDbVersions(int index); + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + int getAutonomousDbVersionsCount(); + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + java.util.List + getAutonomousDbVersionsOrBuilderList(); + /** + * + * + *
+   * The list of Autonomous Database versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDbVersionOrBuilder getAutonomousDbVersionsOrBuilder( + int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java new file mode 100644 index 000000000000..477087c45ae5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java @@ -0,0 +1,950 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudExadataInfrastructures.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest} + */ +public final class ListCloudExadataInfrastructuresRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) + ListCloudExadataInfrastructuresRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCloudExadataInfrastructuresRequest.newBuilder() to construct. + private ListCloudExadataInfrastructuresRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCloudExadataInfrastructuresRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCloudExadataInfrastructuresRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest.class, + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Exadata infrastructures will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest other = + (com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest 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 for `CloudExadataInfrastructures.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest.class, + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest build() { + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest result = + new com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest 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_; + } + } + + @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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + .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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for CloudExadataInfrastructure in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Exadata infrastructures will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Exadata infrastructures will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 Exadata infrastructures will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) + private static final com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCloudExadataInfrastructuresRequest 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.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java new file mode 100644 index 000000000000..c4b50808ef10 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListCloudExadataInfrastructuresRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for CloudExadataInfrastructure in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 Exadata infrastructures will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresResponse.java new file mode 100644 index 000000000000..8d3a87eb0ff7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresResponse.java @@ -0,0 +1,1223 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `CloudExadataInfrastructures.list`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse} + */ +public final class ListCloudExadataInfrastructuresResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) + ListCloudExadataInfrastructuresResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCloudExadataInfrastructuresResponse.newBuilder() to construct. + private ListCloudExadataInfrastructuresResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCloudExadataInfrastructuresResponse() { + cloudExadataInfrastructures_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCloudExadataInfrastructuresResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse.class, + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse.Builder + .class); + } + + public static final int CLOUD_EXADATA_INFRASTRUCTURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + cloudExadataInfrastructures_; + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + @java.lang.Override + public java.util.List + getCloudExadataInfrastructuresList() { + return cloudExadataInfrastructures_; + } + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder> + getCloudExadataInfrastructuresOrBuilderList() { + return cloudExadataInfrastructures_; + } + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + @java.lang.Override + public int getCloudExadataInfrastructuresCount() { + return cloudExadataInfrastructures_.size(); + } + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getCloudExadataInfrastructures(int index) { + return cloudExadataInfrastructures_.get(index); + } + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder + getCloudExadataInfrastructuresOrBuilder(int index) { + return cloudExadataInfrastructures_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token for fetching next page of response.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token for fetching next page of response.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < cloudExadataInfrastructures_.size(); i++) { + output.writeMessage(1, cloudExadataInfrastructures_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cloudExadataInfrastructures_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, cloudExadataInfrastructures_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse other = + (com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) obj; + + if (!getCloudExadataInfrastructuresList().equals(other.getCloudExadataInfrastructuresList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getCloudExadataInfrastructuresCount() > 0) { + hash = (37 * hash) + CLOUD_EXADATA_INFRASTRUCTURES_FIELD_NUMBER; + hash = (53 * hash) + getCloudExadataInfrastructuresList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse 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 for `CloudExadataInfrastructures.list`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse.class, + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudExadataInfrastructuresBuilder_ == null) { + cloudExadataInfrastructures_ = java.util.Collections.emptyList(); + } else { + cloudExadataInfrastructures_ = null; + cloudExadataInfrastructuresBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse build() { + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + buildPartial() { + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse result = + new com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse result) { + if (cloudExadataInfrastructuresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cloudExadataInfrastructures_ = + java.util.Collections.unmodifiableList(cloudExadataInfrastructures_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cloudExadataInfrastructures_ = cloudExadataInfrastructures_; + } else { + result.cloudExadataInfrastructures_ = cloudExadataInfrastructuresBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + .getDefaultInstance()) return this; + if (cloudExadataInfrastructuresBuilder_ == null) { + if (!other.cloudExadataInfrastructures_.isEmpty()) { + if (cloudExadataInfrastructures_.isEmpty()) { + cloudExadataInfrastructures_ = other.cloudExadataInfrastructures_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.addAll(other.cloudExadataInfrastructures_); + } + onChanged(); + } + } else { + if (!other.cloudExadataInfrastructures_.isEmpty()) { + if (cloudExadataInfrastructuresBuilder_.isEmpty()) { + cloudExadataInfrastructuresBuilder_.dispose(); + cloudExadataInfrastructuresBuilder_ = null; + cloudExadataInfrastructures_ = other.cloudExadataInfrastructures_; + bitField0_ = (bitField0_ & ~0x00000001); + cloudExadataInfrastructuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudExadataInfrastructuresFieldBuilder() + : null; + } else { + cloudExadataInfrastructuresBuilder_.addAllMessages(other.cloudExadataInfrastructures_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure m = + input.readMessage( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.parser(), + extensionRegistry); + if (cloudExadataInfrastructuresBuilder_ == null) { + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.add(m); + } else { + cloudExadataInfrastructuresBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + cloudExadataInfrastructures_ = java.util.Collections.emptyList(); + + private void ensureCloudExadataInfrastructuresIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cloudExadataInfrastructures_ = + new java.util.ArrayList( + cloudExadataInfrastructures_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder> + cloudExadataInfrastructuresBuilder_; + + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public java.util.List + getCloudExadataInfrastructuresList() { + if (cloudExadataInfrastructuresBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudExadataInfrastructures_); + } else { + return cloudExadataInfrastructuresBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public int getCloudExadataInfrastructuresCount() { + if (cloudExadataInfrastructuresBuilder_ == null) { + return cloudExadataInfrastructures_.size(); + } else { + return cloudExadataInfrastructuresBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getCloudExadataInfrastructures(int index) { + if (cloudExadataInfrastructuresBuilder_ == null) { + return cloudExadataInfrastructures_.get(index); + } else { + return cloudExadataInfrastructuresBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder setCloudExadataInfrastructures( + int index, com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure value) { + if (cloudExadataInfrastructuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.set(index, value); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder setCloudExadataInfrastructures( + int index, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder builderForValue) { + if (cloudExadataInfrastructuresBuilder_ == null) { + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder addCloudExadataInfrastructures( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure value) { + if (cloudExadataInfrastructuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.add(value); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder addCloudExadataInfrastructures( + int index, com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure value) { + if (cloudExadataInfrastructuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.add(index, value); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder addCloudExadataInfrastructures( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder builderForValue) { + if (cloudExadataInfrastructuresBuilder_ == null) { + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.add(builderForValue.build()); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder addCloudExadataInfrastructures( + int index, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder builderForValue) { + if (cloudExadataInfrastructuresBuilder_ == null) { + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder addAllCloudExadataInfrastructures( + java.lang.Iterable + values) { + if (cloudExadataInfrastructuresBuilder_ == null) { + ensureCloudExadataInfrastructuresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cloudExadataInfrastructures_); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder clearCloudExadataInfrastructures() { + if (cloudExadataInfrastructuresBuilder_ == null) { + cloudExadataInfrastructures_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public Builder removeCloudExadataInfrastructures(int index) { + if (cloudExadataInfrastructuresBuilder_ == null) { + ensureCloudExadataInfrastructuresIsMutable(); + cloudExadataInfrastructures_.remove(index); + onChanged(); + } else { + cloudExadataInfrastructuresBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder + getCloudExadataInfrastructuresBuilder(int index) { + return getCloudExadataInfrastructuresFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder + getCloudExadataInfrastructuresOrBuilder(int index) { + if (cloudExadataInfrastructuresBuilder_ == null) { + return cloudExadataInfrastructures_.get(index); + } else { + return cloudExadataInfrastructuresBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder> + getCloudExadataInfrastructuresOrBuilderList() { + if (cloudExadataInfrastructuresBuilder_ != null) { + return cloudExadataInfrastructuresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudExadataInfrastructures_); + } + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder + addCloudExadataInfrastructuresBuilder() { + return getCloudExadataInfrastructuresFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder + addCloudExadataInfrastructuresBuilder(int index) { + return getCloudExadataInfrastructuresFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Exadata Infrastructures.
+     * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + public java.util.List + getCloudExadataInfrastructuresBuilderList() { + return getCloudExadataInfrastructuresFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder> + getCloudExadataInfrastructuresFieldBuilder() { + if (cloudExadataInfrastructuresBuilder_ == null) { + cloudExadataInfrastructuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.Builder, + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder>( + cloudExadataInfrastructures_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cloudExadataInfrastructures_ = null; + } + return cloudExadataInfrastructuresBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token for fetching next page of response.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token for fetching next page of response.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token for fetching next page of response.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token for fetching next page of response.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token for fetching next page of response.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) + private static final com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCloudExadataInfrastructuresResponse 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.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresResponseOrBuilder.java new file mode 100644 index 000000000000..8e2d14f68667 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListCloudExadataInfrastructuresResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + java.util.List + getCloudExadataInfrastructuresList(); + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure getCloudExadataInfrastructures( + int index); + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + int getCloudExadataInfrastructuresCount(); + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + java.util.List + getCloudExadataInfrastructuresOrBuilderList(); + /** + * + * + *
+   * The list of Exadata Infrastructures.
+   * 
+ * + * + * repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * + */ + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureOrBuilder + getCloudExadataInfrastructuresOrBuilder(int index); + + /** + * + * + *
+   * A token for fetching next page of response.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token for fetching next page of response.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersRequest.java new file mode 100644 index 000000000000..16a7214cf6b3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersRequest.java @@ -0,0 +1,1116 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudVmCluster.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudVmClustersRequest} + */ +public final class ListCloudVmClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) + ListCloudVmClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCloudVmClustersRequest.newBuilder() to construct. + private ListCloudVmClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCloudVmClustersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCloudVmClustersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.class, + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The number of VM clusters to return.
+   * If unspecified, at most 50 VM clusters will be returned.
+   * The maximum value is 1,000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying the page of results the server returns.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying the page of results the server returns.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListCloudVmClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest other = + (com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) 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 (!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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest 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.oracledatabase.v1.ListCloudVmClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest 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.oracledatabase.v1.ListCloudVmClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest 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.oracledatabase.v1.ListCloudVmClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest 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.oracledatabase.v1.ListCloudVmClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest 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.oracledatabase.v1.ListCloudVmClustersRequest 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 for `CloudVmCluster.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudVmClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.class, + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest build() { + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest result = + new com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest 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_; + } + } + + @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.oracledatabase.v1.ListCloudVmClustersRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest.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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 name of the parent in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The number of VM clusters to return.
+     * If unspecified, at most 50 VM clusters will be returned.
+     * The maximum value is 1,000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The number of VM clusters to return.
+     * If unspecified, at most 50 VM clusters will be returned.
+     * The maximum value is 1,000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of VM clusters to return.
+     * If unspecified, at most 50 VM clusters will be returned.
+     * The maximum value is 1,000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying the page of results the server returns.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying the page of results the server returns.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying the page of results the server returns.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying the page of results the server returns.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying the page of results the server returns.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = 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.oracledatabase.v1.ListCloudVmClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) + private static final com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCloudVmClustersRequest 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.oracledatabase.v1.ListCloudVmClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersRequestOrBuilder.java new file mode 100644 index 000000000000..6c80883cac33 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListCloudVmClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The number of VM clusters to return.
+   * If unspecified, at most 50 VM clusters will be returned.
+   * The maximum value is 1,000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying the page of results the server returns.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying the page of results the server returns.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersResponse.java new file mode 100644 index 000000000000..4ec87b31fb0e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersResponse.java @@ -0,0 +1,1141 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `CloudVmCluster.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudVmClustersResponse} + */ +public final class ListCloudVmClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListCloudVmClustersResponse) + ListCloudVmClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCloudVmClustersResponse.newBuilder() to construct. + private ListCloudVmClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCloudVmClustersResponse() { + cloudVmClusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCloudVmClustersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.class, + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.Builder.class); + } + + public static final int CLOUD_VM_CLUSTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List cloudVmClusters_; + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + @java.lang.Override + public java.util.List + getCloudVmClustersList() { + return cloudVmClusters_; + } + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + @java.lang.Override + public java.util.List + getCloudVmClustersOrBuilderList() { + return cloudVmClusters_; + } + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + @java.lang.Override + public int getCloudVmClustersCount() { + return cloudVmClusters_.size(); + } + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmClusters(int index) { + return cloudVmClusters_.get(index); + } + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder getCloudVmClustersOrBuilder( + int index) { + return cloudVmClusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token to fetch the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token to fetch the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < cloudVmClusters_.size(); i++) { + output.writeMessage(1, cloudVmClusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cloudVmClusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cloudVmClusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListCloudVmClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse other = + (com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse) obj; + + if (!getCloudVmClustersList().equals(other.getCloudVmClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getCloudVmClustersCount() > 0) { + hash = (37 * hash) + CLOUD_VM_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getCloudVmClustersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse 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.oracledatabase.v1.ListCloudVmClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse 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.oracledatabase.v1.ListCloudVmClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse 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.oracledatabase.v1.ListCloudVmClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse 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.oracledatabase.v1.ListCloudVmClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse 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.oracledatabase.v1.ListCloudVmClustersResponse 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 for `CloudVmCluster.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListCloudVmClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListCloudVmClustersResponse) + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.class, + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudVmClustersBuilder_ == null) { + cloudVmClusters_ = java.util.Collections.emptyList(); + } else { + cloudVmClusters_ = null; + cloudVmClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse build() { + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse result = + new com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse result) { + if (cloudVmClustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cloudVmClusters_ = java.util.Collections.unmodifiableList(cloudVmClusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cloudVmClusters_ = cloudVmClusters_; + } else { + result.cloudVmClusters_ = cloudVmClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListCloudVmClustersResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse.getDefaultInstance()) + return this; + if (cloudVmClustersBuilder_ == null) { + if (!other.cloudVmClusters_.isEmpty()) { + if (cloudVmClusters_.isEmpty()) { + cloudVmClusters_ = other.cloudVmClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.addAll(other.cloudVmClusters_); + } + onChanged(); + } + } else { + if (!other.cloudVmClusters_.isEmpty()) { + if (cloudVmClustersBuilder_.isEmpty()) { + cloudVmClustersBuilder_.dispose(); + cloudVmClustersBuilder_ = null; + cloudVmClusters_ = other.cloudVmClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + cloudVmClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudVmClustersFieldBuilder() + : null; + } else { + cloudVmClustersBuilder_.addAllMessages(other.cloudVmClusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.CloudVmCluster m = + input.readMessage( + com.google.cloud.oracledatabase.v1.CloudVmCluster.parser(), + extensionRegistry); + if (cloudVmClustersBuilder_ == null) { + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.add(m); + } else { + cloudVmClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List cloudVmClusters_ = + java.util.Collections.emptyList(); + + private void ensureCloudVmClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cloudVmClusters_ = + new java.util.ArrayList( + cloudVmClusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmCluster, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder> + cloudVmClustersBuilder_; + + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public java.util.List + getCloudVmClustersList() { + if (cloudVmClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudVmClusters_); + } else { + return cloudVmClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public int getCloudVmClustersCount() { + if (cloudVmClustersBuilder_ == null) { + return cloudVmClusters_.size(); + } else { + return cloudVmClustersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmClusters(int index) { + if (cloudVmClustersBuilder_ == null) { + return cloudVmClusters_.get(index); + } else { + return cloudVmClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder setCloudVmClusters( + int index, com.google.cloud.oracledatabase.v1.CloudVmCluster value) { + if (cloudVmClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.set(index, value); + onChanged(); + } else { + cloudVmClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder setCloudVmClusters( + int index, com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder builderForValue) { + if (cloudVmClustersBuilder_ == null) { + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudVmClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder addCloudVmClusters(com.google.cloud.oracledatabase.v1.CloudVmCluster value) { + if (cloudVmClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.add(value); + onChanged(); + } else { + cloudVmClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder addCloudVmClusters( + int index, com.google.cloud.oracledatabase.v1.CloudVmCluster value) { + if (cloudVmClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.add(index, value); + onChanged(); + } else { + cloudVmClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder addCloudVmClusters( + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder builderForValue) { + if (cloudVmClustersBuilder_ == null) { + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.add(builderForValue.build()); + onChanged(); + } else { + cloudVmClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder addCloudVmClusters( + int index, com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder builderForValue) { + if (cloudVmClustersBuilder_ == null) { + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudVmClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder addAllCloudVmClusters( + java.lang.Iterable values) { + if (cloudVmClustersBuilder_ == null) { + ensureCloudVmClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudVmClusters_); + onChanged(); + } else { + cloudVmClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder clearCloudVmClusters() { + if (cloudVmClustersBuilder_ == null) { + cloudVmClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cloudVmClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public Builder removeCloudVmClusters(int index) { + if (cloudVmClustersBuilder_ == null) { + ensureCloudVmClustersIsMutable(); + cloudVmClusters_.remove(index); + onChanged(); + } else { + cloudVmClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder getCloudVmClustersBuilder( + int index) { + return getCloudVmClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder getCloudVmClustersOrBuilder( + int index) { + if (cloudVmClustersBuilder_ == null) { + return cloudVmClusters_.get(index); + } else { + return cloudVmClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public java.util.List + getCloudVmClustersOrBuilderList() { + if (cloudVmClustersBuilder_ != null) { + return cloudVmClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudVmClusters_); + } + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder addCloudVmClustersBuilder() { + return getCloudVmClustersFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance()); + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder addCloudVmClustersBuilder( + int index) { + return getCloudVmClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.CloudVmCluster.getDefaultInstance()); + } + /** + * + * + *
+     * The list of VM Clusters.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + public java.util.List + getCloudVmClustersBuilderList() { + return getCloudVmClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmCluster, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder> + getCloudVmClustersFieldBuilder() { + if (cloudVmClustersBuilder_ == null) { + cloudVmClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.CloudVmCluster, + com.google.cloud.oracledatabase.v1.CloudVmCluster.Builder, + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder>( + cloudVmClusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cloudVmClusters_ = null; + } + return cloudVmClustersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to fetch the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to fetch the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to fetch the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to fetch the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to fetch the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListCloudVmClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListCloudVmClustersResponse) + private static final com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCloudVmClustersResponse 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.oracledatabase.v1.ListCloudVmClustersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersResponseOrBuilder.java new file mode 100644 index 000000000000..b63b43880aed --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudVmClustersResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListCloudVmClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListCloudVmClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + java.util.List getCloudVmClustersList(); + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmClusters(int index); + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + int getCloudVmClustersCount(); + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + java.util.List + getCloudVmClustersOrBuilderList(); + /** + * + * + *
+   * The list of VM Clusters.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterOrBuilder getCloudVmClustersOrBuilder(int index); + + /** + * + * + *
+   * A token to fetch the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to fetch the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java new file mode 100644 index 000000000000..c502a395ba7e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java @@ -0,0 +1,930 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `DbNode.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbNodesRequest} + */ +public final class ListDbNodesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbNodesRequest) + ListDbNodesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDbNodesRequest.newBuilder() to construct. + private ListDbNodesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbNodesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbNodesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbNodesRequest.class, + com.google.cloud.oracledatabase.v1.ListDbNodesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for database node in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+   * 
+ * + * + * string parent = 1 [(.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 value for database node in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 db nodes will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the node should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the node should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListDbNodesRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbNodesRequest other = + (com.google.cloud.oracledatabase.v1.ListDbNodesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest 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.oracledatabase.v1.ListDbNodesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest 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.oracledatabase.v1.ListDbNodesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest 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.oracledatabase.v1.ListDbNodesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest 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.oracledatabase.v1.ListDbNodesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest 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.oracledatabase.v1.ListDbNodesRequest 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 for `DbNode.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbNodesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbNodesRequest) + com.google.cloud.oracledatabase.v1.ListDbNodesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbNodesRequest.class, + com.google.cloud.oracledatabase.v1.ListDbNodesRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbNodesRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbNodesRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbNodesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbNodesRequest build() { + com.google.cloud.oracledatabase.v1.ListDbNodesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbNodesRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbNodesRequest result = + new com.google.cloud.oracledatabase.v1.ListDbNodesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbNodesRequest 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_; + } + } + + @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.oracledatabase.v1.ListDbNodesRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbNodesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbNodesRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbNodesRequest.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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for database node in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for database node in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for database node in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for database node in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+     * 
+ * + * + * string parent = 1 [(.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 value for database node in the following format:
+     * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 db nodes will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 db nodes will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 db nodes will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the node should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the node should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the node should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the node should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the node should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListDbNodesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbNodesRequest) + private static final com.google.cloud.oracledatabase.v1.ListDbNodesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbNodesRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbNodesRequest 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.oracledatabase.v1.ListDbNodesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java new file mode 100644 index 000000000000..cd5c25700d54 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbNodesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbNodesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for database node in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for database node in the following format:
+   * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 db nodes will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the node should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the node should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesResponse.java new file mode 100644 index 000000000000..0ddf83e6d9a1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesResponse.java @@ -0,0 +1,1119 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `DbNode.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbNodesResponse} + */ +public final class ListDbNodesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbNodesResponse) + ListDbNodesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDbNodesResponse.newBuilder() to construct. + private ListDbNodesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbNodesResponse() { + dbNodes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbNodesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbNodesResponse.class, + com.google.cloud.oracledatabase.v1.ListDbNodesResponse.Builder.class); + } + + public static final int DB_NODES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dbNodes_; + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + @java.lang.Override + public java.util.List getDbNodesList() { + return dbNodes_; + } + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + @java.lang.Override + public java.util.List + getDbNodesOrBuilderList() { + return dbNodes_; + } + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + @java.lang.Override + public int getDbNodesCount() { + return dbNodes_.size(); + } + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNode getDbNodes(int index) { + return dbNodes_.get(index); + } + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbNodeOrBuilder getDbNodesOrBuilder(int index) { + return dbNodes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the node should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the node should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < dbNodes_.size(); i++) { + output.writeMessage(1, dbNodes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dbNodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dbNodes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDbNodesResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbNodesResponse other = + (com.google.cloud.oracledatabase.v1.ListDbNodesResponse) obj; + + if (!getDbNodesList().equals(other.getDbNodesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDbNodesCount() > 0) { + hash = (37 * hash) + DB_NODES_FIELD_NUMBER; + hash = (53 * hash) + getDbNodesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse 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.oracledatabase.v1.ListDbNodesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse 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.oracledatabase.v1.ListDbNodesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse 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.oracledatabase.v1.ListDbNodesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse 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.oracledatabase.v1.ListDbNodesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse 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.oracledatabase.v1.ListDbNodesResponse 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 for `DbNode.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbNodesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbNodesResponse) + com.google.cloud.oracledatabase.v1.ListDbNodesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbNodesResponse.class, + com.google.cloud.oracledatabase.v1.ListDbNodesResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbNodesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dbNodesBuilder_ == null) { + dbNodes_ = java.util.Collections.emptyList(); + } else { + dbNodes_ = null; + dbNodesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbNodesResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbNodesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbNodesResponse build() { + com.google.cloud.oracledatabase.v1.ListDbNodesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbNodesResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbNodesResponse result = + new com.google.cloud.oracledatabase.v1.ListDbNodesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDbNodesResponse result) { + if (dbNodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dbNodes_ = java.util.Collections.unmodifiableList(dbNodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dbNodes_ = dbNodes_; + } else { + result.dbNodes_ = dbNodesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbNodesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListDbNodesResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbNodesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbNodesResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbNodesResponse.getDefaultInstance()) + return this; + if (dbNodesBuilder_ == null) { + if (!other.dbNodes_.isEmpty()) { + if (dbNodes_.isEmpty()) { + dbNodes_ = other.dbNodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDbNodesIsMutable(); + dbNodes_.addAll(other.dbNodes_); + } + onChanged(); + } + } else { + if (!other.dbNodes_.isEmpty()) { + if (dbNodesBuilder_.isEmpty()) { + dbNodesBuilder_.dispose(); + dbNodesBuilder_ = null; + dbNodes_ = other.dbNodes_; + bitField0_ = (bitField0_ & ~0x00000001); + dbNodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDbNodesFieldBuilder() + : null; + } else { + dbNodesBuilder_.addAllMessages(other.dbNodes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DbNode m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbNode.parser(), extensionRegistry); + if (dbNodesBuilder_ == null) { + ensureDbNodesIsMutable(); + dbNodes_.add(m); + } else { + dbNodesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List dbNodes_ = + java.util.Collections.emptyList(); + + private void ensureDbNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dbNodes_ = new java.util.ArrayList(dbNodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbNode, + com.google.cloud.oracledatabase.v1.DbNode.Builder, + com.google.cloud.oracledatabase.v1.DbNodeOrBuilder> + dbNodesBuilder_; + + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public java.util.List getDbNodesList() { + if (dbNodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dbNodes_); + } else { + return dbNodesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public int getDbNodesCount() { + if (dbNodesBuilder_ == null) { + return dbNodes_.size(); + } else { + return dbNodesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbNode getDbNodes(int index) { + if (dbNodesBuilder_ == null) { + return dbNodes_.get(index); + } else { + return dbNodesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder setDbNodes(int index, com.google.cloud.oracledatabase.v1.DbNode value) { + if (dbNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbNodesIsMutable(); + dbNodes_.set(index, value); + onChanged(); + } else { + dbNodesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder setDbNodes( + int index, com.google.cloud.oracledatabase.v1.DbNode.Builder builderForValue) { + if (dbNodesBuilder_ == null) { + ensureDbNodesIsMutable(); + dbNodes_.set(index, builderForValue.build()); + onChanged(); + } else { + dbNodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder addDbNodes(com.google.cloud.oracledatabase.v1.DbNode value) { + if (dbNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbNodesIsMutable(); + dbNodes_.add(value); + onChanged(); + } else { + dbNodesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder addDbNodes(int index, com.google.cloud.oracledatabase.v1.DbNode value) { + if (dbNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbNodesIsMutable(); + dbNodes_.add(index, value); + onChanged(); + } else { + dbNodesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder addDbNodes(com.google.cloud.oracledatabase.v1.DbNode.Builder builderForValue) { + if (dbNodesBuilder_ == null) { + ensureDbNodesIsMutable(); + dbNodes_.add(builderForValue.build()); + onChanged(); + } else { + dbNodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder addDbNodes( + int index, com.google.cloud.oracledatabase.v1.DbNode.Builder builderForValue) { + if (dbNodesBuilder_ == null) { + ensureDbNodesIsMutable(); + dbNodes_.add(index, builderForValue.build()); + onChanged(); + } else { + dbNodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder addAllDbNodes( + java.lang.Iterable values) { + if (dbNodesBuilder_ == null) { + ensureDbNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbNodes_); + onChanged(); + } else { + dbNodesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder clearDbNodes() { + if (dbNodesBuilder_ == null) { + dbNodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dbNodesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public Builder removeDbNodes(int index) { + if (dbNodesBuilder_ == null) { + ensureDbNodesIsMutable(); + dbNodes_.remove(index); + onChanged(); + } else { + dbNodesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbNode.Builder getDbNodesBuilder(int index) { + return getDbNodesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbNodeOrBuilder getDbNodesOrBuilder(int index) { + if (dbNodesBuilder_ == null) { + return dbNodes_.get(index); + } else { + return dbNodesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public java.util.List + getDbNodesOrBuilderList() { + if (dbNodesBuilder_ != null) { + return dbNodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dbNodes_); + } + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbNode.Builder addDbNodesBuilder() { + return getDbNodesFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.DbNode.getDefaultInstance()); + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbNode.Builder addDbNodesBuilder(int index) { + return getDbNodesFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.DbNode.getDefaultInstance()); + } + /** + * + * + *
+     * The list of DB Nodes
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + public java.util.List + getDbNodesBuilderList() { + return getDbNodesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbNode, + com.google.cloud.oracledatabase.v1.DbNode.Builder, + com.google.cloud.oracledatabase.v1.DbNodeOrBuilder> + getDbNodesFieldBuilder() { + if (dbNodesBuilder_ == null) { + dbNodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbNode, + com.google.cloud.oracledatabase.v1.DbNode.Builder, + com.google.cloud.oracledatabase.v1.DbNodeOrBuilder>( + dbNodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dbNodes_ = null; + } + return dbNodesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the node should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the node should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the node should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the node should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the node should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListDbNodesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbNodesResponse) + private static final com.google.cloud.oracledatabase.v1.ListDbNodesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbNodesResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbNodesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbNodesResponse 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.oracledatabase.v1.ListDbNodesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesResponseOrBuilder.java new file mode 100644 index 000000000000..c99e5dd52b3a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbNodesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbNodesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + java.util.List getDbNodesList(); + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + com.google.cloud.oracledatabase.v1.DbNode getDbNodes(int index); + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + int getDbNodesCount(); + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + java.util.List + getDbNodesOrBuilderList(); + /** + * + * + *
+   * The list of DB Nodes
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + com.google.cloud.oracledatabase.v1.DbNodeOrBuilder getDbNodesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the node should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the node should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersRequest.java new file mode 100644 index 000000000000..0dc5c8e6d0cc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersRequest.java @@ -0,0 +1,930 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `DbServer.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbServersRequest} + */ +public final class ListDbServersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbServersRequest) + ListDbServersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDbServersRequest.newBuilder() to construct. + private ListDbServersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbServersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbServersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbServersRequest.class, + com.google.cloud.oracledatabase.v1.ListDbServersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for database server in the following format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+   * 
+ * + * + * string parent = 1 [(.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 value for database server in the following format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, a maximum of 50 db servers will be returned.
+   * The maximum value is 1000; values above 1000 will be reset to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListDbServersRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbServersRequest other = + (com.google.cloud.oracledatabase.v1.ListDbServersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest 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.oracledatabase.v1.ListDbServersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest 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.oracledatabase.v1.ListDbServersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest 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.oracledatabase.v1.ListDbServersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest 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.oracledatabase.v1.ListDbServersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest 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.oracledatabase.v1.ListDbServersRequest 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 for `DbServer.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbServersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbServersRequest) + com.google.cloud.oracledatabase.v1.ListDbServersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbServersRequest.class, + com.google.cloud.oracledatabase.v1.ListDbServersRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbServersRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbServersRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbServersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbServersRequest build() { + com.google.cloud.oracledatabase.v1.ListDbServersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbServersRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbServersRequest result = + new com.google.cloud.oracledatabase.v1.ListDbServersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbServersRequest 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_; + } + } + + @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.oracledatabase.v1.ListDbServersRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbServersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbServersRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbServersRequest.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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for database server in the following format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for database server in the following format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for database server in the following format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for database server in the following format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+     * 
+ * + * + * string parent = 1 [(.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 value for database server in the following format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 db servers will be returned.
+     * The maximum value is 1000; values above 1000 will be reset to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 db servers will be returned.
+     * The maximum value is 1000; values above 1000 will be reset to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 db servers will be returned.
+     * The maximum value is 1000; values above 1000 will be reset to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListDbServersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbServersRequest) + private static final com.google.cloud.oracledatabase.v1.ListDbServersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbServersRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbServersRequest 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.oracledatabase.v1.ListDbServersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersRequestOrBuilder.java new file mode 100644 index 000000000000..2987c67fcec4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbServersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbServersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for database server in the following format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for database server in the following format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, a maximum of 50 db servers will be returned.
+   * The maximum value is 1000; values above 1000 will be reset to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersResponse.java new file mode 100644 index 000000000000..ad118d663eda --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersResponse.java @@ -0,0 +1,1121 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `DbServer.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbServersResponse} + */ +public final class ListDbServersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbServersResponse) + ListDbServersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDbServersResponse.newBuilder() to construct. + private ListDbServersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbServersResponse() { + dbServers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbServersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbServersResponse.class, + com.google.cloud.oracledatabase.v1.ListDbServersResponse.Builder.class); + } + + public static final int DB_SERVERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dbServers_; + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + @java.lang.Override + public java.util.List getDbServersList() { + return dbServers_; + } + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + @java.lang.Override + public java.util.List + getDbServersOrBuilderList() { + return dbServers_; + } + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + @java.lang.Override + public int getDbServersCount() { + return dbServers_.size(); + } + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServer getDbServers(int index) { + return dbServers_.get(index); + } + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbServerOrBuilder getDbServersOrBuilder(int index) { + return dbServers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < dbServers_.size(); i++) { + output.writeMessage(1, dbServers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dbServers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dbServers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDbServersResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbServersResponse other = + (com.google.cloud.oracledatabase.v1.ListDbServersResponse) obj; + + if (!getDbServersList().equals(other.getDbServersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDbServersCount() > 0) { + hash = (37 * hash) + DB_SERVERS_FIELD_NUMBER; + hash = (53 * hash) + getDbServersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse 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.oracledatabase.v1.ListDbServersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse 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.oracledatabase.v1.ListDbServersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse 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.oracledatabase.v1.ListDbServersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse 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.oracledatabase.v1.ListDbServersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse 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.oracledatabase.v1.ListDbServersResponse 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 for `DbServer.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbServersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbServersResponse) + com.google.cloud.oracledatabase.v1.ListDbServersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbServersResponse.class, + com.google.cloud.oracledatabase.v1.ListDbServersResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbServersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dbServersBuilder_ == null) { + dbServers_ = java.util.Collections.emptyList(); + } else { + dbServers_ = null; + dbServersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbServersResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbServersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbServersResponse build() { + com.google.cloud.oracledatabase.v1.ListDbServersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbServersResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbServersResponse result = + new com.google.cloud.oracledatabase.v1.ListDbServersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDbServersResponse result) { + if (dbServersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dbServers_ = java.util.Collections.unmodifiableList(dbServers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dbServers_ = dbServers_; + } else { + result.dbServers_ = dbServersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbServersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListDbServersResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbServersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbServersResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbServersResponse.getDefaultInstance()) + return this; + if (dbServersBuilder_ == null) { + if (!other.dbServers_.isEmpty()) { + if (dbServers_.isEmpty()) { + dbServers_ = other.dbServers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDbServersIsMutable(); + dbServers_.addAll(other.dbServers_); + } + onChanged(); + } + } else { + if (!other.dbServers_.isEmpty()) { + if (dbServersBuilder_.isEmpty()) { + dbServersBuilder_.dispose(); + dbServersBuilder_ = null; + dbServers_ = other.dbServers_; + bitField0_ = (bitField0_ & ~0x00000001); + dbServersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDbServersFieldBuilder() + : null; + } else { + dbServersBuilder_.addAllMessages(other.dbServers_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DbServer m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbServer.parser(), extensionRegistry); + if (dbServersBuilder_ == null) { + ensureDbServersIsMutable(); + dbServers_.add(m); + } else { + dbServersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List dbServers_ = + java.util.Collections.emptyList(); + + private void ensureDbServersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dbServers_ = + new java.util.ArrayList(dbServers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbServer, + com.google.cloud.oracledatabase.v1.DbServer.Builder, + com.google.cloud.oracledatabase.v1.DbServerOrBuilder> + dbServersBuilder_; + + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public java.util.List getDbServersList() { + if (dbServersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dbServers_); + } else { + return dbServersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public int getDbServersCount() { + if (dbServersBuilder_ == null) { + return dbServers_.size(); + } else { + return dbServersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public com.google.cloud.oracledatabase.v1.DbServer getDbServers(int index) { + if (dbServersBuilder_ == null) { + return dbServers_.get(index); + } else { + return dbServersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder setDbServers(int index, com.google.cloud.oracledatabase.v1.DbServer value) { + if (dbServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbServersIsMutable(); + dbServers_.set(index, value); + onChanged(); + } else { + dbServersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder setDbServers( + int index, com.google.cloud.oracledatabase.v1.DbServer.Builder builderForValue) { + if (dbServersBuilder_ == null) { + ensureDbServersIsMutable(); + dbServers_.set(index, builderForValue.build()); + onChanged(); + } else { + dbServersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder addDbServers(com.google.cloud.oracledatabase.v1.DbServer value) { + if (dbServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbServersIsMutable(); + dbServers_.add(value); + onChanged(); + } else { + dbServersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder addDbServers(int index, com.google.cloud.oracledatabase.v1.DbServer value) { + if (dbServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbServersIsMutable(); + dbServers_.add(index, value); + onChanged(); + } else { + dbServersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder addDbServers( + com.google.cloud.oracledatabase.v1.DbServer.Builder builderForValue) { + if (dbServersBuilder_ == null) { + ensureDbServersIsMutable(); + dbServers_.add(builderForValue.build()); + onChanged(); + } else { + dbServersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder addDbServers( + int index, com.google.cloud.oracledatabase.v1.DbServer.Builder builderForValue) { + if (dbServersBuilder_ == null) { + ensureDbServersIsMutable(); + dbServers_.add(index, builderForValue.build()); + onChanged(); + } else { + dbServersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder addAllDbServers( + java.lang.Iterable values) { + if (dbServersBuilder_ == null) { + ensureDbServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbServers_); + onChanged(); + } else { + dbServersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder clearDbServers() { + if (dbServersBuilder_ == null) { + dbServers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dbServersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public Builder removeDbServers(int index) { + if (dbServersBuilder_ == null) { + ensureDbServersIsMutable(); + dbServers_.remove(index); + onChanged(); + } else { + dbServersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public com.google.cloud.oracledatabase.v1.DbServer.Builder getDbServersBuilder(int index) { + return getDbServersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public com.google.cloud.oracledatabase.v1.DbServerOrBuilder getDbServersOrBuilder(int index) { + if (dbServersBuilder_ == null) { + return dbServers_.get(index); + } else { + return dbServersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public java.util.List + getDbServersOrBuilderList() { + if (dbServersBuilder_ != null) { + return dbServersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dbServers_); + } + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public com.google.cloud.oracledatabase.v1.DbServer.Builder addDbServersBuilder() { + return getDbServersFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.DbServer.getDefaultInstance()); + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public com.google.cloud.oracledatabase.v1.DbServer.Builder addDbServersBuilder(int index) { + return getDbServersFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.DbServer.getDefaultInstance()); + } + /** + * + * + *
+     * The list of database servers.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + public java.util.List + getDbServersBuilderList() { + return getDbServersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbServer, + com.google.cloud.oracledatabase.v1.DbServer.Builder, + com.google.cloud.oracledatabase.v1.DbServerOrBuilder> + getDbServersFieldBuilder() { + if (dbServersBuilder_ == null) { + dbServersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbServer, + com.google.cloud.oracledatabase.v1.DbServer.Builder, + com.google.cloud.oracledatabase.v1.DbServerOrBuilder>( + dbServers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dbServers_ = null; + } + return dbServersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListDbServersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbServersResponse) + private static final com.google.cloud.oracledatabase.v1.ListDbServersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbServersResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbServersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbServersResponse 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.oracledatabase.v1.ListDbServersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersResponseOrBuilder.java new file mode 100644 index 000000000000..c59f9b31e92e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbServersResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbServersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbServersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + java.util.List getDbServersList(); + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + com.google.cloud.oracledatabase.v1.DbServer getDbServers(int index); + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + int getDbServersCount(); + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + java.util.List + getDbServersOrBuilderList(); + /** + * + * + *
+   * The list of database servers.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + com.google.cloud.oracledatabase.v1.DbServerOrBuilder getDbServersOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java new file mode 100644 index 000000000000..4d70b97235e5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java @@ -0,0 +1,934 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `DbSystemShape.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemShapesRequest} + */ +public final class ListDbSystemShapesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) + ListDbSystemShapesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDbSystemShapesRequest.newBuilder() to construct. + private ListDbSystemShapesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbSystemShapesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbSystemShapesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.class, + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for Database System Shapes in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for Database System Shapes in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 database system shapes will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListDbSystemShapesRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest other = + (com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest 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.oracledatabase.v1.ListDbSystemShapesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest 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.oracledatabase.v1.ListDbSystemShapesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest 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.oracledatabase.v1.ListDbSystemShapesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest 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.oracledatabase.v1.ListDbSystemShapesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest 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.oracledatabase.v1.ListDbSystemShapesRequest 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 for `DbSystemShape.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemShapesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.class, + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest build() { + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest result = + new com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest 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_; + } + } + + @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.oracledatabase.v1.ListDbSystemShapesRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest.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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for Database System Shapes in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for Database System Shapes in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for Database System Shapes in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for Database System Shapes in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for Database System Shapes in the following
+     * format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 database system shapes will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 database system shapes will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, at most 50 database system shapes will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListDbSystemShapesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) + private static final com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbSystemShapesRequest 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.oracledatabase.v1.ListDbSystemShapesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java new file mode 100644 index 000000000000..34491a8ab247 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbSystemShapesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for Database System Shapes in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for Database System Shapes in the following
+   * format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, at most 50 database system shapes will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesResponse.java new file mode 100644 index 000000000000..8936b9101b01 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesResponse.java @@ -0,0 +1,1137 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `DbSystemShape.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemShapesResponse} + */ +public final class ListDbSystemShapesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbSystemShapesResponse) + ListDbSystemShapesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDbSystemShapesResponse.newBuilder() to construct. + private ListDbSystemShapesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbSystemShapesResponse() { + dbSystemShapes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbSystemShapesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.class, + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.Builder.class); + } + + public static final int DB_SYSTEM_SHAPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dbSystemShapes_; + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + @java.lang.Override + public java.util.List getDbSystemShapesList() { + return dbSystemShapes_; + } + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + @java.lang.Override + public java.util.List + getDbSystemShapesOrBuilderList() { + return dbSystemShapes_; + } + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + @java.lang.Override + public int getDbSystemShapesCount() { + return dbSystemShapes_.size(); + } + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemShape getDbSystemShapes(int index) { + return dbSystemShapes_.get(index); + } + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder getDbSystemShapesOrBuilder( + int index) { + return dbSystemShapes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < dbSystemShapes_.size(); i++) { + output.writeMessage(1, dbSystemShapes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dbSystemShapes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dbSystemShapes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDbSystemShapesResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse other = + (com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse) obj; + + if (!getDbSystemShapesList().equals(other.getDbSystemShapesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDbSystemShapesCount() > 0) { + hash = (37 * hash) + DB_SYSTEM_SHAPES_FIELD_NUMBER; + hash = (53 * hash) + getDbSystemShapesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse 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.oracledatabase.v1.ListDbSystemShapesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse 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.oracledatabase.v1.ListDbSystemShapesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse 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.oracledatabase.v1.ListDbSystemShapesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse 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.oracledatabase.v1.ListDbSystemShapesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse 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.oracledatabase.v1.ListDbSystemShapesResponse 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 for `DbSystemShape.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemShapesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbSystemShapesResponse) + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.class, + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dbSystemShapesBuilder_ == null) { + dbSystemShapes_ = java.util.Collections.emptyList(); + } else { + dbSystemShapes_ = null; + dbSystemShapesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse build() { + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse result = + new com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse result) { + if (dbSystemShapesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dbSystemShapes_ = java.util.Collections.unmodifiableList(dbSystemShapes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dbSystemShapes_ = dbSystemShapes_; + } else { + result.dbSystemShapes_ = dbSystemShapesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListDbSystemShapesResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse.getDefaultInstance()) + return this; + if (dbSystemShapesBuilder_ == null) { + if (!other.dbSystemShapes_.isEmpty()) { + if (dbSystemShapes_.isEmpty()) { + dbSystemShapes_ = other.dbSystemShapes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.addAll(other.dbSystemShapes_); + } + onChanged(); + } + } else { + if (!other.dbSystemShapes_.isEmpty()) { + if (dbSystemShapesBuilder_.isEmpty()) { + dbSystemShapesBuilder_.dispose(); + dbSystemShapesBuilder_ = null; + dbSystemShapes_ = other.dbSystemShapes_; + bitField0_ = (bitField0_ & ~0x00000001); + dbSystemShapesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDbSystemShapesFieldBuilder() + : null; + } else { + dbSystemShapesBuilder_.addAllMessages(other.dbSystemShapes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DbSystemShape m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbSystemShape.parser(), + extensionRegistry); + if (dbSystemShapesBuilder_ == null) { + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.add(m); + } else { + dbSystemShapesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List dbSystemShapes_ = + java.util.Collections.emptyList(); + + private void ensureDbSystemShapesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dbSystemShapes_ = + new java.util.ArrayList( + dbSystemShapes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemShape, + com.google.cloud.oracledatabase.v1.DbSystemShape.Builder, + com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder> + dbSystemShapesBuilder_; + + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public java.util.List + getDbSystemShapesList() { + if (dbSystemShapesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dbSystemShapes_); + } else { + return dbSystemShapesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public int getDbSystemShapesCount() { + if (dbSystemShapesBuilder_ == null) { + return dbSystemShapes_.size(); + } else { + return dbSystemShapesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystemShape getDbSystemShapes(int index) { + if (dbSystemShapesBuilder_ == null) { + return dbSystemShapes_.get(index); + } else { + return dbSystemShapesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder setDbSystemShapes( + int index, com.google.cloud.oracledatabase.v1.DbSystemShape value) { + if (dbSystemShapesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.set(index, value); + onChanged(); + } else { + dbSystemShapesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder setDbSystemShapes( + int index, com.google.cloud.oracledatabase.v1.DbSystemShape.Builder builderForValue) { + if (dbSystemShapesBuilder_ == null) { + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.set(index, builderForValue.build()); + onChanged(); + } else { + dbSystemShapesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder addDbSystemShapes(com.google.cloud.oracledatabase.v1.DbSystemShape value) { + if (dbSystemShapesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.add(value); + onChanged(); + } else { + dbSystemShapesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder addDbSystemShapes( + int index, com.google.cloud.oracledatabase.v1.DbSystemShape value) { + if (dbSystemShapesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.add(index, value); + onChanged(); + } else { + dbSystemShapesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder addDbSystemShapes( + com.google.cloud.oracledatabase.v1.DbSystemShape.Builder builderForValue) { + if (dbSystemShapesBuilder_ == null) { + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.add(builderForValue.build()); + onChanged(); + } else { + dbSystemShapesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder addDbSystemShapes( + int index, com.google.cloud.oracledatabase.v1.DbSystemShape.Builder builderForValue) { + if (dbSystemShapesBuilder_ == null) { + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.add(index, builderForValue.build()); + onChanged(); + } else { + dbSystemShapesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder addAllDbSystemShapes( + java.lang.Iterable values) { + if (dbSystemShapesBuilder_ == null) { + ensureDbSystemShapesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbSystemShapes_); + onChanged(); + } else { + dbSystemShapesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder clearDbSystemShapes() { + if (dbSystemShapesBuilder_ == null) { + dbSystemShapes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dbSystemShapesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public Builder removeDbSystemShapes(int index) { + if (dbSystemShapesBuilder_ == null) { + ensureDbSystemShapesIsMutable(); + dbSystemShapes_.remove(index); + onChanged(); + } else { + dbSystemShapesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystemShape.Builder getDbSystemShapesBuilder( + int index) { + return getDbSystemShapesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder getDbSystemShapesOrBuilder( + int index) { + if (dbSystemShapesBuilder_ == null) { + return dbSystemShapes_.get(index); + } else { + return dbSystemShapesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public java.util.List + getDbSystemShapesOrBuilderList() { + if (dbSystemShapesBuilder_ != null) { + return dbSystemShapesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dbSystemShapes_); + } + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystemShape.Builder addDbSystemShapesBuilder() { + return getDbSystemShapesFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.DbSystemShape.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystemShape.Builder addDbSystemShapesBuilder( + int index) { + return getDbSystemShapesFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.DbSystemShape.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Database System shapes.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + public java.util.List + getDbSystemShapesBuilderList() { + return getDbSystemShapesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemShape, + com.google.cloud.oracledatabase.v1.DbSystemShape.Builder, + com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder> + getDbSystemShapesFieldBuilder() { + if (dbSystemShapesBuilder_ == null) { + dbSystemShapesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemShape, + com.google.cloud.oracledatabase.v1.DbSystemShape.Builder, + com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder>( + dbSystemShapes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dbSystemShapes_ = null; + } + return dbSystemShapesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListDbSystemShapesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbSystemShapesResponse) + private static final com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbSystemShapesResponse 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.oracledatabase.v1.ListDbSystemShapesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesResponseOrBuilder.java new file mode 100644 index 000000000000..2eddeb844d75 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbSystemShapesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbSystemShapesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + java.util.List getDbSystemShapesList(); + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + com.google.cloud.oracledatabase.v1.DbSystemShape getDbSystemShapes(int index); + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + int getDbSystemShapesCount(); + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + java.util.List + getDbSystemShapesOrBuilderList(); + /** + * + * + *
+   * The list of Database System shapes.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + com.google.cloud.oracledatabase.v1.DbSystemShapeOrBuilder getDbSystemShapesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsRequest.java new file mode 100644 index 000000000000..19650c6f535b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsRequest.java @@ -0,0 +1,930 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `Entitlement.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListEntitlementsRequest} + */ +public final class ListEntitlementsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListEntitlementsRequest) + ListEntitlementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntitlementsRequest.newBuilder() to construct. + private ListEntitlementsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntitlementsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntitlementsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.class, + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for the entitlement in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for the entitlement in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, a maximum of 50 entitlements will be returned.
+   * The maximum value is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListEntitlementsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest other = + (com.google.cloud.oracledatabase.v1.ListEntitlementsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest 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.oracledatabase.v1.ListEntitlementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest 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.oracledatabase.v1.ListEntitlementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest 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.oracledatabase.v1.ListEntitlementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest 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.oracledatabase.v1.ListEntitlementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest 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.oracledatabase.v1.ListEntitlementsRequest 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 for `Entitlement.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListEntitlementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListEntitlementsRequest) + com.google.cloud.oracledatabase.v1.ListEntitlementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.class, + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListEntitlementsRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListEntitlementsRequest build() { + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListEntitlementsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest result = + new com.google.cloud.oracledatabase.v1.ListEntitlementsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListEntitlementsRequest 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_; + } + } + + @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.oracledatabase.v1.ListEntitlementsRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListEntitlementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListEntitlementsRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListEntitlementsRequest.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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for the entitlement in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for the entitlement in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for the entitlement in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for the entitlement in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for the entitlement in the following format:
+     * projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 entitlements will be returned.
+     * The maximum value is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 entitlements will be returned.
+     * The maximum value is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 entitlements will be returned.
+     * The maximum value is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListEntitlementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListEntitlementsRequest) + private static final com.google.cloud.oracledatabase.v1.ListEntitlementsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListEntitlementsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntitlementsRequest 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.oracledatabase.v1.ListEntitlementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsRequestOrBuilder.java new file mode 100644 index 000000000000..1a47986b86fc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListEntitlementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListEntitlementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for the entitlement in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for the entitlement in the following format:
+   * projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, a maximum of 50 entitlements will be returned.
+   * The maximum value is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsResponse.java new file mode 100644 index 000000000000..15b676c6f1d9 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsResponse.java @@ -0,0 +1,1127 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `Entitlement.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListEntitlementsResponse} + */ +public final class ListEntitlementsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListEntitlementsResponse) + ListEntitlementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntitlementsResponse.newBuilder() to construct. + private ListEntitlementsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntitlementsResponse() { + entitlements_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntitlementsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.class, + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.Builder.class); + } + + public static final int ENTITLEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List entitlements_; + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + @java.lang.Override + public java.util.List getEntitlementsList() { + return entitlements_; + } + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + @java.lang.Override + public java.util.List + getEntitlementsOrBuilderList() { + return entitlements_; + } + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + @java.lang.Override + public int getEntitlementsCount() { + return entitlements_.size(); + } + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Entitlement getEntitlements(int index) { + return entitlements_.get(index); + } + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EntitlementOrBuilder getEntitlementsOrBuilder( + int index) { + return entitlements_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < entitlements_.size(); i++) { + output.writeMessage(1, entitlements_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entitlements_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entitlements_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListEntitlementsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse other = + (com.google.cloud.oracledatabase.v1.ListEntitlementsResponse) obj; + + if (!getEntitlementsList().equals(other.getEntitlementsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getEntitlementsCount() > 0) { + hash = (37 * hash) + ENTITLEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse 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.oracledatabase.v1.ListEntitlementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse 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.oracledatabase.v1.ListEntitlementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse 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.oracledatabase.v1.ListEntitlementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse 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.oracledatabase.v1.ListEntitlementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse 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.oracledatabase.v1.ListEntitlementsResponse 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 for `Entitlement.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListEntitlementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListEntitlementsResponse) + com.google.cloud.oracledatabase.v1.ListEntitlementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.class, + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entitlementsBuilder_ == null) { + entitlements_ = java.util.Collections.emptyList(); + } else { + entitlements_ = null; + entitlementsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse build() { + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse result = + new com.google.cloud.oracledatabase.v1.ListEntitlementsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse result) { + if (entitlementsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entitlements_ = java.util.Collections.unmodifiableList(entitlements_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entitlements_ = entitlements_; + } else { + result.entitlements_ = entitlementsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListEntitlementsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListEntitlementsResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListEntitlementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListEntitlementsResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListEntitlementsResponse.getDefaultInstance()) + return this; + if (entitlementsBuilder_ == null) { + if (!other.entitlements_.isEmpty()) { + if (entitlements_.isEmpty()) { + entitlements_ = other.entitlements_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitlementsIsMutable(); + entitlements_.addAll(other.entitlements_); + } + onChanged(); + } + } else { + if (!other.entitlements_.isEmpty()) { + if (entitlementsBuilder_.isEmpty()) { + entitlementsBuilder_.dispose(); + entitlementsBuilder_ = null; + entitlements_ = other.entitlements_; + bitField0_ = (bitField0_ & ~0x00000001); + entitlementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntitlementsFieldBuilder() + : null; + } else { + entitlementsBuilder_.addAllMessages(other.entitlements_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.Entitlement m = + input.readMessage( + com.google.cloud.oracledatabase.v1.Entitlement.parser(), extensionRegistry); + if (entitlementsBuilder_ == null) { + ensureEntitlementsIsMutable(); + entitlements_.add(m); + } else { + entitlementsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List entitlements_ = + java.util.Collections.emptyList(); + + private void ensureEntitlementsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entitlements_ = + new java.util.ArrayList(entitlements_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Entitlement, + com.google.cloud.oracledatabase.v1.Entitlement.Builder, + com.google.cloud.oracledatabase.v1.EntitlementOrBuilder> + entitlementsBuilder_; + + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public java.util.List getEntitlementsList() { + if (entitlementsBuilder_ == null) { + return java.util.Collections.unmodifiableList(entitlements_); + } else { + return entitlementsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public int getEntitlementsCount() { + if (entitlementsBuilder_ == null) { + return entitlements_.size(); + } else { + return entitlementsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public com.google.cloud.oracledatabase.v1.Entitlement getEntitlements(int index) { + if (entitlementsBuilder_ == null) { + return entitlements_.get(index); + } else { + return entitlementsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder setEntitlements( + int index, com.google.cloud.oracledatabase.v1.Entitlement value) { + if (entitlementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitlementsIsMutable(); + entitlements_.set(index, value); + onChanged(); + } else { + entitlementsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder setEntitlements( + int index, com.google.cloud.oracledatabase.v1.Entitlement.Builder builderForValue) { + if (entitlementsBuilder_ == null) { + ensureEntitlementsIsMutable(); + entitlements_.set(index, builderForValue.build()); + onChanged(); + } else { + entitlementsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder addEntitlements(com.google.cloud.oracledatabase.v1.Entitlement value) { + if (entitlementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitlementsIsMutable(); + entitlements_.add(value); + onChanged(); + } else { + entitlementsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder addEntitlements( + int index, com.google.cloud.oracledatabase.v1.Entitlement value) { + if (entitlementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitlementsIsMutable(); + entitlements_.add(index, value); + onChanged(); + } else { + entitlementsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder addEntitlements( + com.google.cloud.oracledatabase.v1.Entitlement.Builder builderForValue) { + if (entitlementsBuilder_ == null) { + ensureEntitlementsIsMutable(); + entitlements_.add(builderForValue.build()); + onChanged(); + } else { + entitlementsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder addEntitlements( + int index, com.google.cloud.oracledatabase.v1.Entitlement.Builder builderForValue) { + if (entitlementsBuilder_ == null) { + ensureEntitlementsIsMutable(); + entitlements_.add(index, builderForValue.build()); + onChanged(); + } else { + entitlementsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder addAllEntitlements( + java.lang.Iterable values) { + if (entitlementsBuilder_ == null) { + ensureEntitlementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entitlements_); + onChanged(); + } else { + entitlementsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder clearEntitlements() { + if (entitlementsBuilder_ == null) { + entitlements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitlementsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public Builder removeEntitlements(int index) { + if (entitlementsBuilder_ == null) { + ensureEntitlementsIsMutable(); + entitlements_.remove(index); + onChanged(); + } else { + entitlementsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public com.google.cloud.oracledatabase.v1.Entitlement.Builder getEntitlementsBuilder( + int index) { + return getEntitlementsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public com.google.cloud.oracledatabase.v1.EntitlementOrBuilder getEntitlementsOrBuilder( + int index) { + if (entitlementsBuilder_ == null) { + return entitlements_.get(index); + } else { + return entitlementsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public java.util.List + getEntitlementsOrBuilderList() { + if (entitlementsBuilder_ != null) { + return entitlementsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entitlements_); + } + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public com.google.cloud.oracledatabase.v1.Entitlement.Builder addEntitlementsBuilder() { + return getEntitlementsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.Entitlement.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public com.google.cloud.oracledatabase.v1.Entitlement.Builder addEntitlementsBuilder( + int index) { + return getEntitlementsFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.Entitlement.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Entitlements
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + public java.util.List + getEntitlementsBuilderList() { + return getEntitlementsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Entitlement, + com.google.cloud.oracledatabase.v1.Entitlement.Builder, + com.google.cloud.oracledatabase.v1.EntitlementOrBuilder> + getEntitlementsFieldBuilder() { + if (entitlementsBuilder_ == null) { + entitlementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Entitlement, + com.google.cloud.oracledatabase.v1.Entitlement.Builder, + com.google.cloud.oracledatabase.v1.EntitlementOrBuilder>( + entitlements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entitlements_ = null; + } + return entitlementsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListEntitlementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListEntitlementsResponse) + private static final com.google.cloud.oracledatabase.v1.ListEntitlementsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListEntitlementsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListEntitlementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntitlementsResponse 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.oracledatabase.v1.ListEntitlementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsResponseOrBuilder.java new file mode 100644 index 000000000000..a055a26c6bff --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListEntitlementsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListEntitlementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListEntitlementsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + java.util.List getEntitlementsList(); + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + com.google.cloud.oracledatabase.v1.Entitlement getEntitlements(int index); + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + int getEntitlementsCount(); + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + java.util.List + getEntitlementsOrBuilderList(); + /** + * + * + *
+   * The list of Entitlements
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + com.google.cloud.oracledatabase.v1.EntitlementOrBuilder getEntitlementsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java new file mode 100644 index 000000000000..962cc548e15a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java @@ -0,0 +1,934 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `GiVersion.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListGiVersionsRequest} + */ +public final class ListGiVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListGiVersionsRequest) + ListGiVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGiVersionsRequest.newBuilder() to construct. + private ListGiVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGiVersionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGiVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent value for Grid Infrastructure Version in the following
+   * format: Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 value for Grid Infrastructure Version in the following
+   * format: Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.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 = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * reset to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListGiVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest other = + (com.google.cloud.oracledatabase.v1.ListGiVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest 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.oracledatabase.v1.ListGiVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest 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.oracledatabase.v1.ListGiVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest 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.oracledatabase.v1.ListGiVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest 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.oracledatabase.v1.ListGiVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest 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.oracledatabase.v1.ListGiVersionsRequest 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 for `GiVersion.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListGiVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListGiVersionsRequest) + com.google.cloud.oracledatabase.v1.ListGiVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListGiVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListGiVersionsRequest build() { + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListGiVersionsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest result = + new com.google.cloud.oracledatabase.v1.ListGiVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListGiVersionsRequest 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_; + } + } + + @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.oracledatabase.v1.ListGiVersionsRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListGiVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListGiVersionsRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListGiVersionsRequest.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(); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The parent value for Grid Infrastructure Version in the following
+     * format: Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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 value for Grid Infrastructure Version in the following
+     * format: Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + 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 value for Grid Infrastructure Version in the following
+     * format: Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent value for Grid Infrastructure Version in the following
+     * format: Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.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 value for Grid Infrastructure Version in the following
+     * format: Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * reset to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * reset to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * reset to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.oracledatabase.v1.ListGiVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListGiVersionsRequest) + private static final com.google.cloud.oracledatabase.v1.ListGiVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListGiVersionsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGiVersionsRequest 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.oracledatabase.v1.ListGiVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..62dd2bc27674 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListGiVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListGiVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent value for Grid Infrastructure Version in the following
+   * format: Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent value for Grid Infrastructure Version in the following
+   * format: Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * reset to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsResponse.java new file mode 100644 index 000000000000..6ddaa8ffbc1f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsResponse.java @@ -0,0 +1,1121 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The response for `GiVersion.List`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListGiVersionsResponse} + */ +public final class ListGiVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListGiVersionsResponse) + ListGiVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGiVersionsResponse.newBuilder() to construct. + private ListGiVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGiVersionsResponse() { + giVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGiVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.Builder.class); + } + + public static final int GI_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List giVersions_; + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + @java.lang.Override + public java.util.List getGiVersionsList() { + return giVersions_; + } + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + @java.lang.Override + public java.util.List + getGiVersionsOrBuilderList() { + return giVersions_; + } + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + @java.lang.Override + public int getGiVersionsCount() { + return giVersions_.size(); + } + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GiVersion getGiVersions(int index) { + return giVersions_.get(index); + } + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GiVersionOrBuilder getGiVersionsOrBuilder(int index) { + return giVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @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; + } + } + + 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 < giVersions_.size(); i++) { + output.writeMessage(1, giVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < giVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, giVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListGiVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse other = + (com.google.cloud.oracledatabase.v1.ListGiVersionsResponse) obj; + + if (!getGiVersionsList().equals(other.getGiVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getGiVersionsCount() > 0) { + hash = (37 * hash) + GI_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getGiVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse 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.oracledatabase.v1.ListGiVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse 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.oracledatabase.v1.ListGiVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse 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.oracledatabase.v1.ListGiVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse 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.oracledatabase.v1.ListGiVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse 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.oracledatabase.v1.ListGiVersionsResponse 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 for `GiVersion.List`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListGiVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListGiVersionsResponse) + com.google.cloud.oracledatabase.v1.ListGiVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (giVersionsBuilder_ == null) { + giVersions_ = java.util.Collections.emptyList(); + } else { + giVersions_ = null; + giVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse build() { + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse result = + new com.google.cloud.oracledatabase.v1.ListGiVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse result) { + if (giVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + giVersions_ = java.util.Collections.unmodifiableList(giVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.giVersions_ = giVersions_; + } else { + result.giVersions_ = giVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListGiVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.oracledatabase.v1.ListGiVersionsResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListGiVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListGiVersionsResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListGiVersionsResponse.getDefaultInstance()) + return this; + if (giVersionsBuilder_ == null) { + if (!other.giVersions_.isEmpty()) { + if (giVersions_.isEmpty()) { + giVersions_ = other.giVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGiVersionsIsMutable(); + giVersions_.addAll(other.giVersions_); + } + onChanged(); + } + } else { + if (!other.giVersions_.isEmpty()) { + if (giVersionsBuilder_.isEmpty()) { + giVersionsBuilder_.dispose(); + giVersionsBuilder_ = null; + giVersions_ = other.giVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + giVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGiVersionsFieldBuilder() + : null; + } else { + giVersionsBuilder_.addAllMessages(other.giVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.GiVersion m = + input.readMessage( + com.google.cloud.oracledatabase.v1.GiVersion.parser(), extensionRegistry); + if (giVersionsBuilder_ == null) { + ensureGiVersionsIsMutable(); + giVersions_.add(m); + } else { + giVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List giVersions_ = + java.util.Collections.emptyList(); + + private void ensureGiVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + giVersions_ = + new java.util.ArrayList(giVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.GiVersion, + com.google.cloud.oracledatabase.v1.GiVersion.Builder, + com.google.cloud.oracledatabase.v1.GiVersionOrBuilder> + giVersionsBuilder_; + + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public java.util.List getGiVersionsList() { + if (giVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(giVersions_); + } else { + return giVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public int getGiVersionsCount() { + if (giVersionsBuilder_ == null) { + return giVersions_.size(); + } else { + return giVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.GiVersion getGiVersions(int index) { + if (giVersionsBuilder_ == null) { + return giVersions_.get(index); + } else { + return giVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder setGiVersions(int index, com.google.cloud.oracledatabase.v1.GiVersion value) { + if (giVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGiVersionsIsMutable(); + giVersions_.set(index, value); + onChanged(); + } else { + giVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder setGiVersions( + int index, com.google.cloud.oracledatabase.v1.GiVersion.Builder builderForValue) { + if (giVersionsBuilder_ == null) { + ensureGiVersionsIsMutable(); + giVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + giVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder addGiVersions(com.google.cloud.oracledatabase.v1.GiVersion value) { + if (giVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGiVersionsIsMutable(); + giVersions_.add(value); + onChanged(); + } else { + giVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder addGiVersions(int index, com.google.cloud.oracledatabase.v1.GiVersion value) { + if (giVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGiVersionsIsMutable(); + giVersions_.add(index, value); + onChanged(); + } else { + giVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder addGiVersions( + com.google.cloud.oracledatabase.v1.GiVersion.Builder builderForValue) { + if (giVersionsBuilder_ == null) { + ensureGiVersionsIsMutable(); + giVersions_.add(builderForValue.build()); + onChanged(); + } else { + giVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder addGiVersions( + int index, com.google.cloud.oracledatabase.v1.GiVersion.Builder builderForValue) { + if (giVersionsBuilder_ == null) { + ensureGiVersionsIsMutable(); + giVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + giVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder addAllGiVersions( + java.lang.Iterable values) { + if (giVersionsBuilder_ == null) { + ensureGiVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, giVersions_); + onChanged(); + } else { + giVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder clearGiVersions() { + if (giVersionsBuilder_ == null) { + giVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + giVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public Builder removeGiVersions(int index) { + if (giVersionsBuilder_ == null) { + ensureGiVersionsIsMutable(); + giVersions_.remove(index); + onChanged(); + } else { + giVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.GiVersion.Builder getGiVersionsBuilder(int index) { + return getGiVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.GiVersionOrBuilder getGiVersionsOrBuilder(int index) { + if (giVersionsBuilder_ == null) { + return giVersions_.get(index); + } else { + return giVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public java.util.List + getGiVersionsOrBuilderList() { + if (giVersionsBuilder_ != null) { + return giVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(giVersions_); + } + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.GiVersion.Builder addGiVersionsBuilder() { + return getGiVersionsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.GiVersion.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.GiVersion.Builder addGiVersionsBuilder(int index) { + return getGiVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.GiVersion.getDefaultInstance()); + } + /** + * + * + *
+     * The list of Oracle Grid Infrastructure (GI) versions.
+     * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + public java.util.List + getGiVersionsBuilderList() { + return getGiVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.GiVersion, + com.google.cloud.oracledatabase.v1.GiVersion.Builder, + com.google.cloud.oracledatabase.v1.GiVersionOrBuilder> + getGiVersionsFieldBuilder() { + if (giVersionsBuilder_ == null) { + giVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.GiVersion, + com.google.cloud.oracledatabase.v1.GiVersion.Builder, + com.google.cloud.oracledatabase.v1.GiVersionOrBuilder>( + giVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + giVersions_ = null; + } + return giVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + 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.oracledatabase.v1.ListGiVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListGiVersionsResponse) + private static final com.google.cloud.oracledatabase.v1.ListGiVersionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListGiVersionsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListGiVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGiVersionsResponse 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.oracledatabase.v1.ListGiVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..4675e827847d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ListGiVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListGiVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + java.util.List getGiVersionsList(); + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + com.google.cloud.oracledatabase.v1.GiVersion getGiVersions(int index); + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + int getGiVersionsCount(); + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + java.util.List + getGiVersionsOrBuilderList(); + /** + * + * + *
+   * The list of Oracle Grid Infrastructure (GI) versions.
+   * 
+ * + * repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + com.google.cloud.oracledatabase.v1.GiVersionOrBuilder getGiVersionsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadata.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadata.java new file mode 100644 index 000000000000..146419ebeef1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadata.java @@ -0,0 +1,729 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/location_metadata.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Metadata for a given [Location][google.cloud.location.Location].
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationMetadata() { + gcpOracleZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.LocationMetadataProto + .internal_static_google_cloud_oracledatabase_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.LocationMetadataProto + .internal_static_google_cloud_oracledatabase_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.LocationMetadata.class, + com.google.cloud.oracledatabase.v1.LocationMetadata.Builder.class); + } + + public static final int GCP_ORACLE_ZONES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList gcpOracleZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the gcpOracleZones. + */ + public com.google.protobuf.ProtocolStringList getGcpOracleZonesList() { + return gcpOracleZones_; + } + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of gcpOracleZones. + */ + public int getGcpOracleZonesCount() { + return gcpOracleZones_.size(); + } + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The gcpOracleZones at the given index. + */ + public java.lang.String getGcpOracleZones(int index) { + return gcpOracleZones_.get(index); + } + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the gcpOracleZones at the given index. + */ + public com.google.protobuf.ByteString getGcpOracleZonesBytes(int index) { + return gcpOracleZones_.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 < gcpOracleZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gcpOracleZones_.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 < gcpOracleZones_.size(); i++) { + dataSize += computeStringSizeNoTag(gcpOracleZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getGcpOracleZonesList().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.oracledatabase.v1.LocationMetadata)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.LocationMetadata other = + (com.google.cloud.oracledatabase.v1.LocationMetadata) obj; + + if (!getGcpOracleZonesList().equals(other.getGcpOracleZonesList())) 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 (getGcpOracleZonesCount() > 0) { + hash = (37 * hash) + GCP_ORACLE_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZonesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata 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.oracledatabase.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata 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.oracledatabase.v1.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata 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.oracledatabase.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata 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.oracledatabase.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata 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.oracledatabase.v1.LocationMetadata 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; + } + /** + * + * + *
+   * Metadata for a given [Location][google.cloud.location.Location].
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.LocationMetadata) + com.google.cloud.oracledatabase.v1.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.LocationMetadataProto + .internal_static_google_cloud_oracledatabase_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.LocationMetadataProto + .internal_static_google_cloud_oracledatabase_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.LocationMetadata.class, + com.google.cloud.oracledatabase.v1.LocationMetadata.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.LocationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcpOracleZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.LocationMetadataProto + .internal_static_google_cloud_oracledatabase_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.LocationMetadata getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.LocationMetadata build() { + com.google.cloud.oracledatabase.v1.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.LocationMetadata buildPartial() { + com.google.cloud.oracledatabase.v1.LocationMetadata result = + new com.google.cloud.oracledatabase.v1.LocationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.LocationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + gcpOracleZones_.makeImmutable(); + result.gcpOracleZones_ = gcpOracleZones_; + } + } + + @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.oracledatabase.v1.LocationMetadata) { + return mergeFrom((com.google.cloud.oracledatabase.v1.LocationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.LocationMetadata other) { + if (other == com.google.cloud.oracledatabase.v1.LocationMetadata.getDefaultInstance()) + return this; + if (!other.gcpOracleZones_.isEmpty()) { + if (gcpOracleZones_.isEmpty()) { + gcpOracleZones_ = other.gcpOracleZones_; + bitField0_ |= 0x00000001; + } else { + ensureGcpOracleZonesIsMutable(); + gcpOracleZones_.addAll(other.gcpOracleZones_); + } + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGcpOracleZonesIsMutable(); + gcpOracleZones_.add(s); + 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 com.google.protobuf.LazyStringArrayList gcpOracleZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGcpOracleZonesIsMutable() { + if (!gcpOracleZones_.isModifiable()) { + gcpOracleZones_ = new com.google.protobuf.LazyStringArrayList(gcpOracleZones_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the gcpOracleZones. + */ + public com.google.protobuf.ProtocolStringList getGcpOracleZonesList() { + gcpOracleZones_.makeImmutable(); + return gcpOracleZones_; + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of gcpOracleZones. + */ + public int getGcpOracleZonesCount() { + return gcpOracleZones_.size(); + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The gcpOracleZones at the given index. + */ + public java.lang.String getGcpOracleZones(int index) { + return gcpOracleZones_.get(index); + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the gcpOracleZones at the given index. + */ + public com.google.protobuf.ByteString getGcpOracleZonesBytes(int index) { + return gcpOracleZones_.getByteString(index); + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The gcpOracleZones to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGcpOracleZonesIsMutable(); + gcpOracleZones_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The gcpOracleZones to add. + * @return This builder for chaining. + */ + public Builder addGcpOracleZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGcpOracleZonesIsMutable(); + gcpOracleZones_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The gcpOracleZones to add. + * @return This builder for chaining. + */ + public Builder addAllGcpOracleZones(java.lang.Iterable values) { + ensureGcpOracleZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gcpOracleZones_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZones() { + gcpOracleZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Platform Oracle zones in a location.
+     * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the gcpOracleZones to add. + * @return This builder for chaining. + */ + public Builder addGcpOracleZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGcpOracleZonesIsMutable(); + gcpOracleZones_.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.oracledatabase.v1.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.LocationMetadata) + private static final com.google.cloud.oracledatabase.v1.LocationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.LocationMetadata(); + } + + public static com.google.cloud.oracledatabase.v1.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata 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.oracledatabase.v1.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadataOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..21b94f5d0154 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadataOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/location_metadata.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the gcpOracleZones. + */ + java.util.List getGcpOracleZonesList(); + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of gcpOracleZones. + */ + int getGcpOracleZonesCount(); + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The gcpOracleZones at the given index. + */ + java.lang.String getGcpOracleZones(int index); + /** + * + * + *
+   * Output only. Google Cloud Platform Oracle zones in a location.
+   * 
+ * + * repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the gcpOracleZones at the given index. + */ + com.google.protobuf.ByteString getGcpOracleZonesBytes(int index); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadataProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadataProto.java new file mode 100644 index 000000000000..9a4549838438 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationMetadataProto.java @@ -0,0 +1,79 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/location_metadata.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class LocationMetadataProto { + private LocationMetadataProto() {} + + 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_oracledatabase_v1_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_LocationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/oracledatabase/v1/locatio" + + "n_metadata.proto\022\036google.cloud.oracledat" + + "abase.v1\032\037google/api/field_behavior.prot" + + "o\"1\n\020LocationMetadata\022\035\n\020gcp_oracle_zone" + + "s\030\002 \003(\tB\003\340A\003B\357\001\n\"com.google.cloud.oracle" + + "database.v1B\025LocationMetadataProtoP\001ZJcl" + + "oud.google.com/go/oracledatabase/apiv1/o" + + "racledatabasepb;oracledatabasepb\252\002\036Googl" + + "e.Cloud.OracleDatabase.V1\312\002\036Google\\Cloud" + + "\\OracleDatabase\\V1\352\002!Google::Cloud::Orac" + + "leDatabase::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_LocationMetadata_descriptor, + new java.lang.String[] { + "GcpOracleZones", + }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java new file mode 100644 index 000000000000..c2d9ce151913 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1; + +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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MaintenanceWindow.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MaintenanceWindow.java new file mode 100644 index 000000000000..fe11af15cf00 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MaintenanceWindow.java @@ -0,0 +1,2824 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Maintenance window as defined by Oracle.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.MaintenanceWindow} + */ +public final class MaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.MaintenanceWindow) + MaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceWindow.newBuilder() to construct. + private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceWindow() { + preference_ = 0; + months_ = java.util.Collections.emptyList(); + weeksOfMonth_ = emptyIntList(); + daysOfWeek_ = java.util.Collections.emptyList(); + hoursOfDay_ = emptyIntList(); + patchingMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceWindow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.MaintenanceWindow.class, + com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder.class); + } + + /** + * + * + *
+   * Maintenance window preference.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference} + */ + public enum MaintenanceWindowPreference implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0; + */ + MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED(0), + /** + * + * + *
+     * Custom preference.
+     * 
+ * + * CUSTOM_PREFERENCE = 1; + */ + CUSTOM_PREFERENCE(1), + /** + * + * + *
+     * No preference.
+     * 
+ * + * NO_PREFERENCE = 2; + */ + NO_PREFERENCE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0; + */ + public static final int MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Custom preference.
+     * 
+ * + * CUSTOM_PREFERENCE = 1; + */ + public static final int CUSTOM_PREFERENCE_VALUE = 1; + /** + * + * + *
+     * No preference.
+     * 
+ * + * NO_PREFERENCE = 2; + */ + public static final int NO_PREFERENCE_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 MaintenanceWindowPreference 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 MaintenanceWindowPreference forNumber(int value) { + switch (value) { + case 0: + return MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED; + case 1: + return CUSTOM_PREFERENCE; + case 2: + return NO_PREFERENCE; + 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 MaintenanceWindowPreference findValueByNumber(int number) { + return MaintenanceWindowPreference.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.oracledatabase.v1.MaintenanceWindow.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MaintenanceWindowPreference[] VALUES = values(); + + public static MaintenanceWindowPreference 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 MaintenanceWindowPreference(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference) + } + + /** + * + * + *
+   * Patching mode.
+   * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode} + */ + public enum PatchingMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * PATCHING_MODE_UNSPECIFIED = 0; + */ + PATCHING_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Updates the Cloud Exadata database server hosts in a rolling fashion.
+     * 
+ * + * ROLLING = 1; + */ + ROLLING(1), + /** + * + * + *
+     * The non-rolling maintenance method first updates your storage servers at
+     * the same time, then your database servers at the same time.
+     * 
+ * + * NON_ROLLING = 2; + */ + NON_ROLLING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified value.
+     * 
+ * + * PATCHING_MODE_UNSPECIFIED = 0; + */ + public static final int PATCHING_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Updates the Cloud Exadata database server hosts in a rolling fashion.
+     * 
+ * + * ROLLING = 1; + */ + public static final int ROLLING_VALUE = 1; + /** + * + * + *
+     * The non-rolling maintenance method first updates your storage servers at
+     * the same time, then your database servers at the same time.
+     * 
+ * + * NON_ROLLING = 2; + */ + public static final int NON_ROLLING_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 PatchingMode 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 PatchingMode forNumber(int value) { + switch (value) { + case 0: + return PATCHING_MODE_UNSPECIFIED; + case 1: + return ROLLING; + case 2: + return NON_ROLLING; + 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 PatchingMode findValueByNumber(int number) { + return PatchingMode.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.oracledatabase.v1.MaintenanceWindow.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final PatchingMode[] VALUES = values(); + + public static PatchingMode 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 PatchingMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode) + } + + public static final int PREFERENCE_FIELD_NUMBER = 1; + private int preference_ = 0; + /** + * + * + *
+   * Optional. The maintenance window scheduling preference.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for preference. + */ + @java.lang.Override + public int getPreferenceValue() { + return preference_; + } + /** + * + * + *
+   * Optional. The maintenance window scheduling preference.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preference. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + getPreference() { + com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference result = + com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference.forNumber( + preference_); + return result == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + .UNRECOGNIZED + : result; + } + + public static final int MONTHS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List months_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.Month> + months_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.Month>() { + public com.google.type.Month convert(java.lang.Integer from) { + com.google.type.Month result = com.google.type.Month.forNumber(from); + return result == null ? com.google.type.Month.UNRECOGNIZED : result; + } + }; + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the months. + */ + @java.lang.Override + public java.util.List getMonthsList() { + return new com.google.protobuf.Internal.ListAdapter( + months_, months_converter_); + } + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of months. + */ + @java.lang.Override + public int getMonthsCount() { + return months_.size(); + } + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The months at the given index. + */ + @java.lang.Override + public com.google.type.Month getMonths(int index) { + return months_converter_.convert(months_.get(index)); + } + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enum numeric values on the wire for months. + */ + @java.lang.Override + public java.util.List getMonthsValueList() { + return months_; + } + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of months at the given index. + */ + @java.lang.Override + public int getMonthsValue(int index) { + return months_.get(index); + } + + private int monthsMemoizedSerializedSize; + + public static final int WEEKS_OF_MONTH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList weeksOfMonth_ = emptyIntList(); + /** + * + * + *
+   * Optional. Weeks during the month when maintenance should be performed.
+   * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+   * duration of 7 days. Weeks start and end based on calendar dates, not days
+   * of the week.
+   * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the weeksOfMonth. + */ + @java.lang.Override + public java.util.List getWeeksOfMonthList() { + return weeksOfMonth_; + } + /** + * + * + *
+   * Optional. Weeks during the month when maintenance should be performed.
+   * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+   * duration of 7 days. Weeks start and end based on calendar dates, not days
+   * of the week.
+   * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of weeksOfMonth. + */ + public int getWeeksOfMonthCount() { + return weeksOfMonth_.size(); + } + /** + * + * + *
+   * Optional. Weeks during the month when maintenance should be performed.
+   * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+   * duration of 7 days. Weeks start and end based on calendar dates, not days
+   * of the week.
+   * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The weeksOfMonth at the given index. + */ + public int getWeeksOfMonth(int index) { + return weeksOfMonth_.getInt(index); + } + + private int weeksOfMonthMemoizedSerializedSize = -1; + + public static final int DAYS_OF_WEEK_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List daysOfWeek_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.DayOfWeek> + daysOfWeek_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.DayOfWeek>() { + public com.google.type.DayOfWeek convert(java.lang.Integer from) { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(from); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + }; + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the daysOfWeek. + */ + @java.lang.Override + public java.util.List getDaysOfWeekList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.type.DayOfWeek>(daysOfWeek_, daysOfWeek_converter_); + } + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of daysOfWeek. + */ + @java.lang.Override + public int getDaysOfWeekCount() { + return daysOfWeek_.size(); + } + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The daysOfWeek at the given index. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDaysOfWeek(int index) { + return daysOfWeek_converter_.convert(daysOfWeek_.get(index)); + } + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for daysOfWeek. + */ + @java.lang.Override + public java.util.List getDaysOfWeekValueList() { + return daysOfWeek_; + } + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of daysOfWeek at the given index. + */ + @java.lang.Override + public int getDaysOfWeekValue(int index) { + return daysOfWeek_.get(index); + } + + private int daysOfWeekMemoizedSerializedSize; + + public static final int HOURS_OF_DAY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList hoursOfDay_ = emptyIntList(); + /** + * + * + *
+   * Optional. The window of hours during the day when maintenance should be
+   * performed. The window is a 4 hour slot. Valid values are:
+   *   0 - represents time slot 0:00 - 3:59 UTC
+   *   4 - represents time slot 4:00 - 7:59 UTC
+   *   8 - represents time slot 8:00 - 11:59 UTC
+   *   12 - represents time slot 12:00 - 15:59 UTC
+   *   16 - represents time slot 16:00 - 19:59 UTC
+   *   20 - represents time slot 20:00 - 23:59 UTC
+   * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the hoursOfDay. + */ + @java.lang.Override + public java.util.List getHoursOfDayList() { + return hoursOfDay_; + } + /** + * + * + *
+   * Optional. The window of hours during the day when maintenance should be
+   * performed. The window is a 4 hour slot. Valid values are:
+   *   0 - represents time slot 0:00 - 3:59 UTC
+   *   4 - represents time slot 4:00 - 7:59 UTC
+   *   8 - represents time slot 8:00 - 11:59 UTC
+   *   12 - represents time slot 12:00 - 15:59 UTC
+   *   16 - represents time slot 16:00 - 19:59 UTC
+   *   20 - represents time slot 20:00 - 23:59 UTC
+   * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of hoursOfDay. + */ + public int getHoursOfDayCount() { + return hoursOfDay_.size(); + } + /** + * + * + *
+   * Optional. The window of hours during the day when maintenance should be
+   * performed. The window is a 4 hour slot. Valid values are:
+   *   0 - represents time slot 0:00 - 3:59 UTC
+   *   4 - represents time slot 4:00 - 7:59 UTC
+   *   8 - represents time slot 8:00 - 11:59 UTC
+   *   12 - represents time slot 12:00 - 15:59 UTC
+   *   16 - represents time slot 16:00 - 19:59 UTC
+   *   20 - represents time slot 20:00 - 23:59 UTC
+   * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The hoursOfDay at the given index. + */ + public int getHoursOfDay(int index) { + return hoursOfDay_.getInt(index); + } + + private int hoursOfDayMemoizedSerializedSize = -1; + + public static final int LEAD_TIME_WEEK_FIELD_NUMBER = 6; + private int leadTimeWeek_ = 0; + /** + * + * + *
+   * Optional. Lead time window allows user to set a lead time to prepare for a
+   * down time. The lead time is in weeks and valid value is between 1 to 4.
+   * 
+ * + * int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leadTimeWeek. + */ + @java.lang.Override + public int getLeadTimeWeek() { + return leadTimeWeek_; + } + + public static final int PATCHING_MODE_FIELD_NUMBER = 7; + private int patchingMode_ = 0; + /** + * + * + *
+   * Optional. Cloud CloudExadataInfrastructure node patching method, either
+   * "ROLLING"
+   *  or "NONROLLING". Default value is ROLLING.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for patchingMode. + */ + @java.lang.Override + public int getPatchingModeValue() { + return patchingMode_; + } + /** + * + * + *
+   * Optional. Cloud CloudExadataInfrastructure node patching method, either
+   * "ROLLING"
+   *  or "NONROLLING". Default value is ROLLING.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The patchingMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode getPatchingMode() { + com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode result = + com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode.forNumber(patchingMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_ACTION_TIMEOUT_MINS_FIELD_NUMBER = 8; + private int customActionTimeoutMins_ = 0; + /** + * + * + *
+   * Optional. Determines the amount of time the system will wait before the
+   * start of each database server patching operation. Custom action timeout is
+   * in minutes and valid value is between 15 to 120 (inclusive).
+   * 
+ * + * int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customActionTimeoutMins. + */ + @java.lang.Override + public int getCustomActionTimeoutMins() { + return customActionTimeoutMins_; + } + + public static final int IS_CUSTOM_ACTION_TIMEOUT_ENABLED_FIELD_NUMBER = 9; + private boolean isCustomActionTimeoutEnabled_ = false; + /** + * + * + *
+   * Optional. If true, enables the configuration of a custom action timeout
+   * (waiting period) between database server patching operations.
+   * 
+ * + * bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isCustomActionTimeoutEnabled. + */ + @java.lang.Override + public boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled_; + } + + 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 { + getSerializedSize(); + if (preference_ + != com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + .MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, preference_); + } + if (getMonthsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(monthsMemoizedSerializedSize); + } + for (int i = 0; i < months_.size(); i++) { + output.writeEnumNoTag(months_.get(i)); + } + if (getWeeksOfMonthList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(weeksOfMonthMemoizedSerializedSize); + } + for (int i = 0; i < weeksOfMonth_.size(); i++) { + output.writeInt32NoTag(weeksOfMonth_.getInt(i)); + } + if (getDaysOfWeekList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(daysOfWeekMemoizedSerializedSize); + } + for (int i = 0; i < daysOfWeek_.size(); i++) { + output.writeEnumNoTag(daysOfWeek_.get(i)); + } + if (getHoursOfDayList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(hoursOfDayMemoizedSerializedSize); + } + for (int i = 0; i < hoursOfDay_.size(); i++) { + output.writeInt32NoTag(hoursOfDay_.getInt(i)); + } + if (leadTimeWeek_ != 0) { + output.writeInt32(6, leadTimeWeek_); + } + if (patchingMode_ + != com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode + .PATCHING_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, patchingMode_); + } + if (customActionTimeoutMins_ != 0) { + output.writeInt32(8, customActionTimeoutMins_); + } + if (isCustomActionTimeoutEnabled_ != false) { + output.writeBool(9, isCustomActionTimeoutEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (preference_ + != com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + .MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, preference_); + } + { + int dataSize = 0; + for (int i = 0; i < months_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(months_.get(i)); + } + size += dataSize; + if (!getMonthsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + monthsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < weeksOfMonth_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(weeksOfMonth_.getInt(i)); + } + size += dataSize; + if (!getWeeksOfMonthList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + weeksOfMonthMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < daysOfWeek_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(daysOfWeek_.get(i)); + } + size += dataSize; + if (!getDaysOfWeekList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + daysOfWeekMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < hoursOfDay_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(hoursOfDay_.getInt(i)); + } + size += dataSize; + if (!getHoursOfDayList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + hoursOfDayMemoizedSerializedSize = dataSize; + } + if (leadTimeWeek_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, leadTimeWeek_); + } + if (patchingMode_ + != com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode + .PATCHING_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, patchingMode_); + } + if (customActionTimeoutMins_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, customActionTimeoutMins_); + } + if (isCustomActionTimeoutEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, isCustomActionTimeoutEnabled_); + } + 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.oracledatabase.v1.MaintenanceWindow)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.MaintenanceWindow other = + (com.google.cloud.oracledatabase.v1.MaintenanceWindow) obj; + + if (preference_ != other.preference_) return false; + if (!months_.equals(other.months_)) return false; + if (!getWeeksOfMonthList().equals(other.getWeeksOfMonthList())) return false; + if (!daysOfWeek_.equals(other.daysOfWeek_)) return false; + if (!getHoursOfDayList().equals(other.getHoursOfDayList())) return false; + if (getLeadTimeWeek() != other.getLeadTimeWeek()) return false; + if (patchingMode_ != other.patchingMode_) return false; + if (getCustomActionTimeoutMins() != other.getCustomActionTimeoutMins()) return false; + if (getIsCustomActionTimeoutEnabled() != other.getIsCustomActionTimeoutEnabled()) 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) + PREFERENCE_FIELD_NUMBER; + hash = (53 * hash) + preference_; + if (getMonthsCount() > 0) { + hash = (37 * hash) + MONTHS_FIELD_NUMBER; + hash = (53 * hash) + months_.hashCode(); + } + if (getWeeksOfMonthCount() > 0) { + hash = (37 * hash) + WEEKS_OF_MONTH_FIELD_NUMBER; + hash = (53 * hash) + getWeeksOfMonthList().hashCode(); + } + if (getDaysOfWeekCount() > 0) { + hash = (37 * hash) + DAYS_OF_WEEK_FIELD_NUMBER; + hash = (53 * hash) + daysOfWeek_.hashCode(); + } + if (getHoursOfDayCount() > 0) { + hash = (37 * hash) + HOURS_OF_DAY_FIELD_NUMBER; + hash = (53 * hash) + getHoursOfDayList().hashCode(); + } + hash = (37 * hash) + LEAD_TIME_WEEK_FIELD_NUMBER; + hash = (53 * hash) + getLeadTimeWeek(); + hash = (37 * hash) + PATCHING_MODE_FIELD_NUMBER; + hash = (53 * hash) + patchingMode_; + hash = (37 * hash) + CUSTOM_ACTION_TIMEOUT_MINS_FIELD_NUMBER; + hash = (53 * hash) + getCustomActionTimeoutMins(); + hash = (37 * hash) + IS_CUSTOM_ACTION_TIMEOUT_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCustomActionTimeoutEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow 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.oracledatabase.v1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow 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.oracledatabase.v1.MaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow 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.oracledatabase.v1.MaintenanceWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow 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.oracledatabase.v1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow 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.oracledatabase.v1.MaintenanceWindow 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; + } + /** + * + * + *
+   * Maintenance window as defined by Oracle.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.MaintenanceWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.MaintenanceWindow) + com.google.cloud.oracledatabase.v1.MaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.MaintenanceWindow.class, + com.google.cloud.oracledatabase.v1.MaintenanceWindow.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.MaintenanceWindow.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + preference_ = 0; + months_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + weeksOfMonth_ = emptyIntList(); + daysOfWeek_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + hoursOfDay_ = emptyIntList(); + leadTimeWeek_ = 0; + patchingMode_ = 0; + customActionTimeoutMins_ = 0; + isCustomActionTimeoutEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow build() { + com.google.cloud.oracledatabase.v1.MaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow buildPartial() { + com.google.cloud.oracledatabase.v1.MaintenanceWindow result = + new com.google.cloud.oracledatabase.v1.MaintenanceWindow(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.MaintenanceWindow result) { + if (((bitField0_ & 0x00000002) != 0)) { + months_ = java.util.Collections.unmodifiableList(months_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.months_ = months_; + if (((bitField0_ & 0x00000008) != 0)) { + daysOfWeek_ = java.util.Collections.unmodifiableList(daysOfWeek_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.daysOfWeek_ = daysOfWeek_; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.MaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.preference_ = preference_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + weeksOfMonth_.makeImmutable(); + result.weeksOfMonth_ = weeksOfMonth_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + hoursOfDay_.makeImmutable(); + result.hoursOfDay_ = hoursOfDay_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.leadTimeWeek_ = leadTimeWeek_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.patchingMode_ = patchingMode_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.customActionTimeoutMins_ = customActionTimeoutMins_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isCustomActionTimeoutEnabled_ = isCustomActionTimeoutEnabled_; + } + } + + @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.oracledatabase.v1.MaintenanceWindow) { + return mergeFrom((com.google.cloud.oracledatabase.v1.MaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.MaintenanceWindow other) { + if (other == com.google.cloud.oracledatabase.v1.MaintenanceWindow.getDefaultInstance()) + return this; + if (other.preference_ != 0) { + setPreferenceValue(other.getPreferenceValue()); + } + if (!other.months_.isEmpty()) { + if (months_.isEmpty()) { + months_ = other.months_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMonthsIsMutable(); + months_.addAll(other.months_); + } + onChanged(); + } + if (!other.weeksOfMonth_.isEmpty()) { + if (weeksOfMonth_.isEmpty()) { + weeksOfMonth_ = other.weeksOfMonth_; + weeksOfMonth_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureWeeksOfMonthIsMutable(); + weeksOfMonth_.addAll(other.weeksOfMonth_); + } + onChanged(); + } + if (!other.daysOfWeek_.isEmpty()) { + if (daysOfWeek_.isEmpty()) { + daysOfWeek_ = other.daysOfWeek_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDaysOfWeekIsMutable(); + daysOfWeek_.addAll(other.daysOfWeek_); + } + onChanged(); + } + if (!other.hoursOfDay_.isEmpty()) { + if (hoursOfDay_.isEmpty()) { + hoursOfDay_ = other.hoursOfDay_; + hoursOfDay_.makeImmutable(); + bitField0_ |= 0x00000010; + } else { + ensureHoursOfDayIsMutable(); + hoursOfDay_.addAll(other.hoursOfDay_); + } + onChanged(); + } + if (other.getLeadTimeWeek() != 0) { + setLeadTimeWeek(other.getLeadTimeWeek()); + } + if (other.patchingMode_ != 0) { + setPatchingModeValue(other.getPatchingModeValue()); + } + if (other.getCustomActionTimeoutMins() != 0) { + setCustomActionTimeoutMins(other.getCustomActionTimeoutMins()); + } + if (other.getIsCustomActionTimeoutEnabled() != false) { + setIsCustomActionTimeoutEnabled(other.getIsCustomActionTimeoutEnabled()); + } + 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: + { + preference_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureMonthsIsMutable(); + months_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureMonthsIsMutable(); + months_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 24: + { + int v = input.readInt32(); + ensureWeeksOfMonthIsMutable(); + weeksOfMonth_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureWeeksOfMonthIsMutable(); + while (input.getBytesUntilLimit() > 0) { + weeksOfMonth_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: + { + int tmpRaw = input.readEnum(); + ensureDaysOfWeekIsMutable(); + daysOfWeek_.add(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureDaysOfWeekIsMutable(); + daysOfWeek_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 34 + case 40: + { + int v = input.readInt32(); + ensureHoursOfDayIsMutable(); + hoursOfDay_.addInt(v); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureHoursOfDayIsMutable(); + while (input.getBytesUntilLimit() > 0) { + hoursOfDay_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: + { + leadTimeWeek_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + patchingMode_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + customActionTimeoutMins_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + isCustomActionTimeoutEnabled_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + 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 preference_ = 0; + /** + * + * + *
+     * Optional. The maintenance window scheduling preference.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for preference. + */ + @java.lang.Override + public int getPreferenceValue() { + return preference_; + } + /** + * + * + *
+     * Optional. The maintenance window scheduling preference.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for preference to set. + * @return This builder for chaining. + */ + public Builder setPreferenceValue(int value) { + preference_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maintenance window scheduling preference.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preference. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + getPreference() { + com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference result = + com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + .forNumber(preference_); + return result == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The maintenance window scheduling preference.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The preference to set. + * @return This builder for chaining. + */ + public Builder setPreference( + com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + preference_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maintenance window scheduling preference.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPreference() { + bitField0_ = (bitField0_ & ~0x00000001); + preference_ = 0; + onChanged(); + return this; + } + + private java.util.List months_ = java.util.Collections.emptyList(); + + private void ensureMonthsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + months_ = new java.util.ArrayList(months_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the months. + */ + public java.util.List getMonthsList() { + return new com.google.protobuf.Internal.ListAdapter( + months_, months_converter_); + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of months. + */ + public int getMonthsCount() { + return months_.size(); + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The months at the given index. + */ + public com.google.type.Month getMonths(int index) { + return months_converter_.convert(months_.get(index)); + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The months to set. + * @return This builder for chaining. + */ + public Builder setMonths(int index, com.google.type.Month value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonthsIsMutable(); + months_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The months to add. + * @return This builder for chaining. + */ + public Builder addMonths(com.google.type.Month value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonthsIsMutable(); + months_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The months to add. + * @return This builder for chaining. + */ + public Builder addAllMonths(java.lang.Iterable values) { + ensureMonthsIsMutable(); + for (com.google.type.Month value : values) { + months_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMonths() { + months_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for months. + */ + public java.util.List getMonthsValueList() { + return java.util.Collections.unmodifiableList(months_); + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of months at the given index. + */ + public int getMonthsValue(int index) { + return months_.get(index); + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for months to set. + * @return This builder for chaining. + */ + public Builder setMonthsValue(int index, int value) { + ensureMonthsIsMutable(); + months_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for months to add. + * @return This builder for chaining. + */ + public Builder addMonthsValue(int value) { + ensureMonthsIsMutable(); + months_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Months during the year when maintenance should be performed.
+     * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for months to add. + * @return This builder for chaining. + */ + public Builder addAllMonthsValue(java.lang.Iterable values) { + ensureMonthsIsMutable(); + for (int value : values) { + months_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList weeksOfMonth_ = emptyIntList(); + + private void ensureWeeksOfMonthIsMutable() { + if (!weeksOfMonth_.isModifiable()) { + weeksOfMonth_ = makeMutableCopy(weeksOfMonth_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the weeksOfMonth. + */ + public java.util.List getWeeksOfMonthList() { + weeksOfMonth_.makeImmutable(); + return weeksOfMonth_; + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of weeksOfMonth. + */ + public int getWeeksOfMonthCount() { + return weeksOfMonth_.size(); + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The weeksOfMonth at the given index. + */ + public int getWeeksOfMonth(int index) { + return weeksOfMonth_.getInt(index); + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The weeksOfMonth to set. + * @return This builder for chaining. + */ + public Builder setWeeksOfMonth(int index, int value) { + + ensureWeeksOfMonthIsMutable(); + weeksOfMonth_.setInt(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The weeksOfMonth to add. + * @return This builder for chaining. + */ + public Builder addWeeksOfMonth(int value) { + + ensureWeeksOfMonthIsMutable(); + weeksOfMonth_.addInt(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The weeksOfMonth to add. + * @return This builder for chaining. + */ + public Builder addAllWeeksOfMonth(java.lang.Iterable values) { + ensureWeeksOfMonthIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeksOfMonth_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Weeks during the month when maintenance should be performed.
+     * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+     * duration of 7 days. Weeks start and end based on calendar dates, not days
+     * of the week.
+     * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWeeksOfMonth() { + weeksOfMonth_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private java.util.List daysOfWeek_ = java.util.Collections.emptyList(); + + private void ensureDaysOfWeekIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + daysOfWeek_ = new java.util.ArrayList(daysOfWeek_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the daysOfWeek. + */ + public java.util.List getDaysOfWeekList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.type.DayOfWeek>(daysOfWeek_, daysOfWeek_converter_); + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of daysOfWeek. + */ + public int getDaysOfWeekCount() { + return daysOfWeek_.size(); + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The daysOfWeek at the given index. + */ + public com.google.type.DayOfWeek getDaysOfWeek(int index) { + return daysOfWeek_converter_.convert(daysOfWeek_.get(index)); + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The daysOfWeek to set. + * @return This builder for chaining. + */ + public Builder setDaysOfWeek(int index, com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDaysOfWeekIsMutable(); + daysOfWeek_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The daysOfWeek to add. + * @return This builder for chaining. + */ + public Builder addDaysOfWeek(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDaysOfWeekIsMutable(); + daysOfWeek_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The daysOfWeek to add. + * @return This builder for chaining. + */ + public Builder addAllDaysOfWeek( + java.lang.Iterable values) { + ensureDaysOfWeekIsMutable(); + for (com.google.type.DayOfWeek value : values) { + daysOfWeek_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDaysOfWeek() { + daysOfWeek_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for daysOfWeek. + */ + public java.util.List getDaysOfWeekValueList() { + return java.util.Collections.unmodifiableList(daysOfWeek_); + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of daysOfWeek at the given index. + */ + public int getDaysOfWeekValue(int index) { + return daysOfWeek_.get(index); + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for daysOfWeek to set. + * @return This builder for chaining. + */ + public Builder setDaysOfWeekValue(int index, int value) { + ensureDaysOfWeekIsMutable(); + daysOfWeek_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for daysOfWeek to add. + * @return This builder for chaining. + */ + public Builder addDaysOfWeekValue(int value) { + ensureDaysOfWeekIsMutable(); + daysOfWeek_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Days during the week when maintenance should be performed.
+     * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for daysOfWeek to add. + * @return This builder for chaining. + */ + public Builder addAllDaysOfWeekValue(java.lang.Iterable values) { + ensureDaysOfWeekIsMutable(); + for (int value : values) { + daysOfWeek_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList hoursOfDay_ = emptyIntList(); + + private void ensureHoursOfDayIsMutable() { + if (!hoursOfDay_.isModifiable()) { + hoursOfDay_ = makeMutableCopy(hoursOfDay_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the hoursOfDay. + */ + public java.util.List getHoursOfDayList() { + hoursOfDay_.makeImmutable(); + return hoursOfDay_; + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of hoursOfDay. + */ + public int getHoursOfDayCount() { + return hoursOfDay_.size(); + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The hoursOfDay at the given index. + */ + public int getHoursOfDay(int index) { + return hoursOfDay_.getInt(index); + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The hoursOfDay to set. + * @return This builder for chaining. + */ + public Builder setHoursOfDay(int index, int value) { + + ensureHoursOfDayIsMutable(); + hoursOfDay_.setInt(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hoursOfDay to add. + * @return This builder for chaining. + */ + public Builder addHoursOfDay(int value) { + + ensureHoursOfDayIsMutable(); + hoursOfDay_.addInt(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The hoursOfDay to add. + * @return This builder for chaining. + */ + public Builder addAllHoursOfDay(java.lang.Iterable values) { + ensureHoursOfDayIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hoursOfDay_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The window of hours during the day when maintenance should be
+     * performed. The window is a 4 hour slot. Valid values are:
+     *   0 - represents time slot 0:00 - 3:59 UTC
+     *   4 - represents time slot 4:00 - 7:59 UTC
+     *   8 - represents time slot 8:00 - 11:59 UTC
+     *   12 - represents time slot 12:00 - 15:59 UTC
+     *   16 - represents time slot 16:00 - 19:59 UTC
+     *   20 - represents time slot 20:00 - 23:59 UTC
+     * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHoursOfDay() { + hoursOfDay_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + private int leadTimeWeek_; + /** + * + * + *
+     * Optional. Lead time window allows user to set a lead time to prepare for a
+     * down time. The lead time is in weeks and valid value is between 1 to 4.
+     * 
+ * + * int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leadTimeWeek. + */ + @java.lang.Override + public int getLeadTimeWeek() { + return leadTimeWeek_; + } + /** + * + * + *
+     * Optional. Lead time window allows user to set a lead time to prepare for a
+     * down time. The lead time is in weeks and valid value is between 1 to 4.
+     * 
+ * + * int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The leadTimeWeek to set. + * @return This builder for chaining. + */ + public Builder setLeadTimeWeek(int value) { + + leadTimeWeek_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Lead time window allows user to set a lead time to prepare for a
+     * down time. The lead time is in weeks and valid value is between 1 to 4.
+     * 
+ * + * int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLeadTimeWeek() { + bitField0_ = (bitField0_ & ~0x00000020); + leadTimeWeek_ = 0; + onChanged(); + return this; + } + + private int patchingMode_ = 0; + /** + * + * + *
+     * Optional. Cloud CloudExadataInfrastructure node patching method, either
+     * "ROLLING"
+     *  or "NONROLLING". Default value is ROLLING.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for patchingMode. + */ + @java.lang.Override + public int getPatchingModeValue() { + return patchingMode_; + } + /** + * + * + *
+     * Optional. Cloud CloudExadataInfrastructure node patching method, either
+     * "ROLLING"
+     *  or "NONROLLING". Default value is ROLLING.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for patchingMode to set. + * @return This builder for chaining. + */ + public Builder setPatchingModeValue(int value) { + patchingMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Cloud CloudExadataInfrastructure node patching method, either
+     * "ROLLING"
+     *  or "NONROLLING". Default value is ROLLING.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The patchingMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode getPatchingMode() { + com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode result = + com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode.forNumber( + patchingMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Cloud CloudExadataInfrastructure node patching method, either
+     * "ROLLING"
+     *  or "NONROLLING". Default value is ROLLING.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The patchingMode to set. + * @return This builder for chaining. + */ + public Builder setPatchingMode( + com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + patchingMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Cloud CloudExadataInfrastructure node patching method, either
+     * "ROLLING"
+     *  or "NONROLLING". Default value is ROLLING.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPatchingMode() { + bitField0_ = (bitField0_ & ~0x00000040); + patchingMode_ = 0; + onChanged(); + return this; + } + + private int customActionTimeoutMins_; + /** + * + * + *
+     * Optional. Determines the amount of time the system will wait before the
+     * start of each database server patching operation. Custom action timeout is
+     * in minutes and valid value is between 15 to 120 (inclusive).
+     * 
+ * + * int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customActionTimeoutMins. + */ + @java.lang.Override + public int getCustomActionTimeoutMins() { + return customActionTimeoutMins_; + } + /** + * + * + *
+     * Optional. Determines the amount of time the system will wait before the
+     * start of each database server patching operation. Custom action timeout is
+     * in minutes and valid value is between 15 to 120 (inclusive).
+     * 
+ * + * int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customActionTimeoutMins to set. + * @return This builder for chaining. + */ + public Builder setCustomActionTimeoutMins(int value) { + + customActionTimeoutMins_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines the amount of time the system will wait before the
+     * start of each database server patching operation. Custom action timeout is
+     * in minutes and valid value is between 15 to 120 (inclusive).
+     * 
+ * + * int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomActionTimeoutMins() { + bitField0_ = (bitField0_ & ~0x00000080); + customActionTimeoutMins_ = 0; + onChanged(); + return this; + } + + private boolean isCustomActionTimeoutEnabled_; + /** + * + * + *
+     * Optional. If true, enables the configuration of a custom action timeout
+     * (waiting period) between database server patching operations.
+     * 
+ * + * bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isCustomActionTimeoutEnabled. + */ + @java.lang.Override + public boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled_; + } + /** + * + * + *
+     * Optional. If true, enables the configuration of a custom action timeout
+     * (waiting period) between database server patching operations.
+     * 
+ * + * bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isCustomActionTimeoutEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsCustomActionTimeoutEnabled(boolean value) { + + isCustomActionTimeoutEnabled_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If true, enables the configuration of a custom action timeout
+     * (waiting period) between database server patching operations.
+     * 
+ * + * bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsCustomActionTimeoutEnabled() { + bitField0_ = (bitField0_ & ~0x00000100); + isCustomActionTimeoutEnabled_ = 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.oracledatabase.v1.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.MaintenanceWindow) + private static final com.google.cloud.oracledatabase.v1.MaintenanceWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.MaintenanceWindow(); + } + + public static com.google.cloud.oracledatabase.v1.MaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceWindow 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.oracledatabase.v1.MaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MaintenanceWindowOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..685efa255994 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,374 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/exadata_infra.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface MaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The maintenance window scheduling preference.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for preference. + */ + int getPreferenceValue(); + /** + * + * + *
+   * Optional. The maintenance window scheduling preference.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preference. + */ + com.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference getPreference(); + + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the months. + */ + java.util.List getMonthsList(); + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of months. + */ + int getMonthsCount(); + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The months at the given index. + */ + com.google.type.Month getMonths(int index); + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enum numeric values on the wire for months. + */ + java.util.List getMonthsValueList(); + /** + * + * + *
+   * Optional. Months during the year when maintenance should be performed.
+   * 
+ * + * repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of months at the given index. + */ + int getMonthsValue(int index); + + /** + * + * + *
+   * Optional. Weeks during the month when maintenance should be performed.
+   * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+   * duration of 7 days. Weeks start and end based on calendar dates, not days
+   * of the week.
+   * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the weeksOfMonth. + */ + java.util.List getWeeksOfMonthList(); + /** + * + * + *
+   * Optional. Weeks during the month when maintenance should be performed.
+   * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+   * duration of 7 days. Weeks start and end based on calendar dates, not days
+   * of the week.
+   * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of weeksOfMonth. + */ + int getWeeksOfMonthCount(); + /** + * + * + *
+   * Optional. Weeks during the month when maintenance should be performed.
+   * Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a
+   * duration of 7 days. Weeks start and end based on calendar dates, not days
+   * of the week.
+   * 
+ * + * repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The weeksOfMonth at the given index. + */ + int getWeeksOfMonth(int index); + + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the daysOfWeek. + */ + java.util.List getDaysOfWeekList(); + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of daysOfWeek. + */ + int getDaysOfWeekCount(); + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The daysOfWeek at the given index. + */ + com.google.type.DayOfWeek getDaysOfWeek(int index); + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for daysOfWeek. + */ + java.util.List getDaysOfWeekValueList(); + /** + * + * + *
+   * Optional. Days during the week when maintenance should be performed.
+   * 
+ * + * + * repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of daysOfWeek at the given index. + */ + int getDaysOfWeekValue(int index); + + /** + * + * + *
+   * Optional. The window of hours during the day when maintenance should be
+   * performed. The window is a 4 hour slot. Valid values are:
+   *   0 - represents time slot 0:00 - 3:59 UTC
+   *   4 - represents time slot 4:00 - 7:59 UTC
+   *   8 - represents time slot 8:00 - 11:59 UTC
+   *   12 - represents time slot 12:00 - 15:59 UTC
+   *   16 - represents time slot 16:00 - 19:59 UTC
+   *   20 - represents time slot 20:00 - 23:59 UTC
+   * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the hoursOfDay. + */ + java.util.List getHoursOfDayList(); + /** + * + * + *
+   * Optional. The window of hours during the day when maintenance should be
+   * performed. The window is a 4 hour slot. Valid values are:
+   *   0 - represents time slot 0:00 - 3:59 UTC
+   *   4 - represents time slot 4:00 - 7:59 UTC
+   *   8 - represents time slot 8:00 - 11:59 UTC
+   *   12 - represents time slot 12:00 - 15:59 UTC
+   *   16 - represents time slot 16:00 - 19:59 UTC
+   *   20 - represents time slot 20:00 - 23:59 UTC
+   * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of hoursOfDay. + */ + int getHoursOfDayCount(); + /** + * + * + *
+   * Optional. The window of hours during the day when maintenance should be
+   * performed. The window is a 4 hour slot. Valid values are:
+   *   0 - represents time slot 0:00 - 3:59 UTC
+   *   4 - represents time slot 4:00 - 7:59 UTC
+   *   8 - represents time slot 8:00 - 11:59 UTC
+   *   12 - represents time slot 12:00 - 15:59 UTC
+   *   16 - represents time slot 16:00 - 19:59 UTC
+   *   20 - represents time slot 20:00 - 23:59 UTC
+   * 
+ * + * repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The hoursOfDay at the given index. + */ + int getHoursOfDay(int index); + + /** + * + * + *
+   * Optional. Lead time window allows user to set a lead time to prepare for a
+   * down time. The lead time is in weeks and valid value is between 1 to 4.
+   * 
+ * + * int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leadTimeWeek. + */ + int getLeadTimeWeek(); + + /** + * + * + *
+   * Optional. Cloud CloudExadataInfrastructure node patching method, either
+   * "ROLLING"
+   *  or "NONROLLING". Default value is ROLLING.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for patchingMode. + */ + int getPatchingModeValue(); + /** + * + * + *
+   * Optional. Cloud CloudExadataInfrastructure node patching method, either
+   * "ROLLING"
+   *  or "NONROLLING". Default value is ROLLING.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The patchingMode. + */ + com.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode getPatchingMode(); + + /** + * + * + *
+   * Optional. Determines the amount of time the system will wait before the
+   * start of each database server patching operation. Custom action timeout is
+   * in minutes and valid value is between 15 to 120 (inclusive).
+   * 
+ * + * int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customActionTimeoutMins. + */ + int getCustomActionTimeoutMins(); + + /** + * + * + *
+   * Optional. If true, enables the configuration of a custom action timeout
+   * (waiting period) between database server patching operations.
+   * 
+ * + * bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isCustomActionTimeoutEnabled. + */ + boolean getIsCustomActionTimeoutEnabled(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationMetadata.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationMetadata.java new file mode 100644 index 000000000000..6934e91a9326 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationMetadata.java @@ -0,0 +1,1949 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.OperationMetadata} + */ +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.OperationMetadata.class, + com.google.cloud.oracledatabase.v1.OperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.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_; + } + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.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 TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + 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(); + verb_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + /** + * + * + *
+   * Output only. The status of the operation.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + 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(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The status of the operation.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + apiVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 8; + private double percentComplete_ = 0D; + /** + * + * + *
+   * Output only. An estimated percentage of the operation that has been
+   * completed at a given moment of time, between 0 and 100.
+   * 
+ * + * double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public double getPercentComplete() { + return percentComplete_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + if (java.lang.Double.doubleToRawLongBits(percentComplete_) != 0) { + output.writeDouble(8, percentComplete_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + if (java.lang.Double.doubleToRawLongBits(percentComplete_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, percentComplete_); + } + 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.oracledatabase.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.OperationMetadata other = + (com.google.cloud.oracledatabase.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (java.lang.Double.doubleToLongBits(getPercentComplete()) + != java.lang.Double.doubleToLongBits(other.getPercentComplete())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPercentComplete())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata 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.oracledatabase.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata 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.oracledatabase.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata 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.oracledatabase.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata 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.oracledatabase.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata 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.oracledatabase.v1.OperationMetadata 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 metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.OperationMetadata) + com.google.cloud.oracledatabase.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.OperationMetadata.class, + com.google.cloud.oracledatabase.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.OperationMetadata.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(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + percentComplete_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OperationMetadata build() { + com.google.cloud.oracledatabase.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OperationMetadata buildPartial() { + com.google.cloud.oracledatabase.v1.OperationMetadata result = + new com.google.cloud.oracledatabase.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.percentComplete_ = percentComplete_; + } + 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.oracledatabase.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.oracledatabase.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.OperationMetadata other) { + if (other == com.google.cloud.oracledatabase.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getPercentComplete() != 0D) { + setPercentComplete(other.getPercentComplete()); + } + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 65: + { + percentComplete_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + 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 createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.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(); + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.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_; + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + 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 java.lang.Object target_ = ""; + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * Output only. The status of the operation.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The status of the operation.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The status of the operation.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The status of the operation.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The status of the operation.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private double percentComplete_; + /** + * + * + *
+     * Output only. An estimated percentage of the operation that has been
+     * completed at a given moment of time, between 0 and 100.
+     * 
+ * + * double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public double getPercentComplete() { + return percentComplete_; + } + /** + * + * + *
+     * Output only. An estimated percentage of the operation that has been
+     * completed at a given moment of time, between 0 and 100.
+     * 
+ * + * double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(double value) { + + percentComplete_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. An estimated percentage of the operation that has been
+     * completed at a given moment of time, between 0 and 100.
+     * 
+ * + * double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000080); + percentComplete_ = 0D; + 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.oracledatabase.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.OperationMetadata) + private static final com.google.cloud.oracledatabase.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.OperationMetadata(); + } + + public static com.google.cloud.oracledatabase.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata 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.oracledatabase.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationMetadataOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..1caecb9b9f54 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,233 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. The status of the operation.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + /** + * + * + *
+   * Output only. The status of the operation.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); + + /** + * + * + *
+   * Output only. An estimated percentage of the operation that has been
+   * completed at a given moment of time, between 0 and 100.
+   * 
+ * + * double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + double getPercentComplete(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationsInsightsState.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationsInsightsState.java new file mode 100644 index 000000000000..7fa321f5b440 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OperationsInsightsState.java @@ -0,0 +1,270 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The state of the Operations Insights for this Autonomous Database.
+ * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.OperationsInsightsState} + */ +public enum OperationsInsightsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + */ + OPERATIONS_INSIGHTS_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Enabling status for operation insights.
+   * 
+ * + * ENABLING = 1; + */ + ENABLING(1), + /** + * + * + *
+   * Enabled status for operation insights.
+   * 
+ * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
+   * Disabling status for operation insights.
+   * 
+ * + * DISABLING = 3; + */ + DISABLING(3), + /** + * + * + *
+   * Not Enabled status for operation insights.
+   * 
+ * + * NOT_ENABLED = 4; + */ + NOT_ENABLED(4), + /** + * + * + *
+   * Failed enabling status for operation insights.
+   * 
+ * + * FAILED_ENABLING = 5; + */ + FAILED_ENABLING(5), + /** + * + * + *
+   * Failed disabling status for operation insights.
+   * 
+ * + * FAILED_DISABLING = 6; + */ + FAILED_DISABLING(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + */ + public static final int OPERATIONS_INSIGHTS_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Enabling status for operation insights.
+   * 
+ * + * ENABLING = 1; + */ + public static final int ENABLING_VALUE = 1; + /** + * + * + *
+   * Enabled status for operation insights.
+   * 
+ * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + /** + * + * + *
+   * Disabling status for operation insights.
+   * 
+ * + * DISABLING = 3; + */ + public static final int DISABLING_VALUE = 3; + /** + * + * + *
+   * Not Enabled status for operation insights.
+   * 
+ * + * NOT_ENABLED = 4; + */ + public static final int NOT_ENABLED_VALUE = 4; + /** + * + * + *
+   * Failed enabling status for operation insights.
+   * 
+ * + * FAILED_ENABLING = 5; + */ + public static final int FAILED_ENABLING_VALUE = 5; + /** + * + * + *
+   * Failed disabling status for operation insights.
+   * 
+ * + * FAILED_DISABLING = 6; + */ + public static final int FAILED_DISABLING_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 OperationsInsightsState 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 OperationsInsightsState forNumber(int value) { + switch (value) { + case 0: + return OPERATIONS_INSIGHTS_STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ENABLED; + case 3: + return DISABLING; + case 4: + return NOT_ENABLED; + case 5: + return FAILED_ENABLING; + case 6: + return FAILED_DISABLING; + 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 OperationsInsightsState findValueByNumber(int number) { + return OperationsInsightsState.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.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final OperationsInsightsState[] VALUES = values(); + + public static OperationsInsightsState 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 OperationsInsightsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.OperationsInsightsState) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RestoreAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RestoreAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..3f96d30c65db --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RestoreAutonomousDatabaseRequest.java @@ -0,0 +1,947 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `AutonomousDatabase.Restore`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest} + */ +public final class RestoreAutonomousDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest) + RestoreAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreAutonomousDatabaseRequest.newBuilder() to construct. + private RestoreAutonomousDatabaseRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreAutonomousDatabaseRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.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 RESTORE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp restoreTime_; + /** + * + * + *
+   * Required. The time and date to restore the database to.
+   * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the restoreTime field is set. + */ + @java.lang.Override + public boolean hasRestoreTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The time and date to restore the database to.
+   * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The restoreTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRestoreTime() { + return restoreTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : restoreTime_; + } + /** + * + * + *
+   * Required. The time and date to restore the database to.
+   * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRestoreTimeOrBuilder() { + return restoreTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : restoreTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRestoreTime()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRestoreTime()); + } + 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasRestoreTime() != other.hasRestoreTime()) return false; + if (hasRestoreTime()) { + if (!getRestoreTime().equals(other.getRestoreTime())) 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 (hasRestoreTime()) { + hash = (37 * hash) + RESTORE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRestoreTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest 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 for `AutonomousDatabase.Restore`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRestoreTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + restoreTime_ = null; + if (restoreTimeBuilder_ != null) { + restoreTimeBuilder_.dispose(); + restoreTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.restoreTime_ = + restoreTimeBuilder_ == null ? restoreTime_ : restoreTimeBuilder_.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.oracledatabase.v1.RestoreAutonomousDatabaseRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRestoreTime()) { + mergeRestoreTime(other.getRestoreTime()); + } + 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: + { + input.readMessage(getRestoreTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 name_ = ""; + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.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 name of the Autonomous Database in the following format:
+     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp restoreTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + restoreTimeBuilder_; + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the restoreTime field is set. + */ + public boolean hasRestoreTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The restoreTime. + */ + public com.google.protobuf.Timestamp getRestoreTime() { + if (restoreTimeBuilder_ == null) { + return restoreTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : restoreTime_; + } else { + return restoreTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRestoreTime(com.google.protobuf.Timestamp value) { + if (restoreTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + restoreTime_ = value; + } else { + restoreTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRestoreTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (restoreTimeBuilder_ == null) { + restoreTime_ = builderForValue.build(); + } else { + restoreTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRestoreTime(com.google.protobuf.Timestamp value) { + if (restoreTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && restoreTime_ != null + && restoreTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRestoreTimeBuilder().mergeFrom(value); + } else { + restoreTime_ = value; + } + } else { + restoreTimeBuilder_.mergeFrom(value); + } + if (restoreTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRestoreTime() { + bitField0_ = (bitField0_ & ~0x00000002); + restoreTime_ = null; + if (restoreTimeBuilder_ != null) { + restoreTimeBuilder_.dispose(); + restoreTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getRestoreTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRestoreTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRestoreTimeOrBuilder() { + if (restoreTimeBuilder_ != null) { + return restoreTimeBuilder_.getMessageOrBuilder(); + } else { + return restoreTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : restoreTime_; + } + } + /** + * + * + *
+     * Required. The time and date to restore the database to.
+     * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRestoreTimeFieldBuilder() { + if (restoreTimeBuilder_ == null) { + restoreTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRestoreTime(), getParentForChildren(), isClean()); + restoreTime_ = null; + } + return restoreTimeBuilder_; + } + + @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.oracledatabase.v1.RestoreAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreAutonomousDatabaseRequest 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.oracledatabase.v1.RestoreAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RestoreAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RestoreAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..eb7e330c89bf --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RestoreAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface RestoreAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Autonomous Database in the following format:
+   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The time and date to restore the database to.
+   * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the restoreTime field is set. + */ + boolean hasRestoreTime(); + /** + * + * + *
+   * Required. The time and date to restore the database to.
+   * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The restoreTime. + */ + com.google.protobuf.Timestamp getRestoreTime(); + /** + * + * + *
+   * Required. The time and date to restore the database to.
+   * 
+ * + * .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getRestoreTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ScheduledOperationDetails.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ScheduledOperationDetails.java new file mode 100644 index 000000000000..c43555c01850 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ScheduledOperationDetails.java @@ -0,0 +1,1155 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of scheduled operation.
+ * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ScheduledOperationDetails} + */ +public final class ScheduledOperationDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ScheduledOperationDetails) + ScheduledOperationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScheduledOperationDetails.newBuilder() to construct. + private ScheduledOperationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ScheduledOperationDetails() { + dayOfWeek_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScheduledOperationDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.class, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder.class); + } + + private int bitField0_; + public static final int DAY_OF_WEEK_FIELD_NUMBER = 1; + private int dayOfWeek_ = 0; + /** + * + * + *
+   * Output only. Day of week.
+   * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dayOfWeek. + */ + @java.lang.Override + public int getDayOfWeekValue() { + return dayOfWeek_; + } + /** + * + * + *
+   * Output only. Day of week.
+   * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dayOfWeek. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDayOfWeek() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(dayOfWeek_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
+   * Output only. Auto start time.
+   * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Auto start time.
+   * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Auto start time.
+   * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + public static final int STOP_TIME_FIELD_NUMBER = 5; + private com.google.type.TimeOfDay stopTime_; + /** + * + * + *
+   * Output only. Auto stop time.
+   * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the stopTime field is set. + */ + @java.lang.Override + public boolean hasStopTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Auto stop time.
+   * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stopTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStopTime() { + return stopTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : stopTime_; + } + /** + * + * + *
+   * Output only. Auto stop time.
+   * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStopTimeOrBuilder() { + return stopTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : stopTime_; + } + + 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 (dayOfWeek_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + output.writeEnum(1, dayOfWeek_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getStopTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dayOfWeek_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dayOfWeek_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStopTime()); + } + 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.oracledatabase.v1.ScheduledOperationDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails other = + (com.google.cloud.oracledatabase.v1.ScheduledOperationDetails) obj; + + if (dayOfWeek_ != other.dayOfWeek_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasStopTime() != other.hasStopTime()) return false; + if (hasStopTime()) { + if (!getStopTime().equals(other.getStopTime())) 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) + DAY_OF_WEEK_FIELD_NUMBER; + hash = (53 * hash) + dayOfWeek_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasStopTime()) { + hash = (37 * hash) + STOP_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStopTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails 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.oracledatabase.v1.ScheduledOperationDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails 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.oracledatabase.v1.ScheduledOperationDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails 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.oracledatabase.v1.ScheduledOperationDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails 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.oracledatabase.v1.ScheduledOperationDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails 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.oracledatabase.v1.ScheduledOperationDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of scheduled operation.
+   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ScheduledOperationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ScheduledOperationDetails) + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.class, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.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(); + getStopTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dayOfWeek_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + stopTime_ = null; + if (stopTimeBuilder_ != null) { + stopTimeBuilder_.dispose(); + stopTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails build() { + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails buildPartial() { + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails result = + new com.google.cloud.oracledatabase.v1.ScheduledOperationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dayOfWeek_ = dayOfWeek_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.stopTime_ = stopTimeBuilder_ == null ? stopTime_ : stopTimeBuilder_.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.oracledatabase.v1.ScheduledOperationDetails) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ScheduledOperationDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ScheduledOperationDetails other) { + if (other + == com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()) + return this; + if (other.dayOfWeek_ != 0) { + setDayOfWeekValue(other.getDayOfWeekValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasStopTime()) { + mergeStopTime(other.getStopTime()); + } + 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: + { + dayOfWeek_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + input.readMessage(getStopTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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 dayOfWeek_ = 0; + /** + * + * + *
+     * Output only. Day of week.
+     * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dayOfWeek. + */ + @java.lang.Override + public int getDayOfWeekValue() { + return dayOfWeek_; + } + /** + * + * + *
+     * Output only. Day of week.
+     * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dayOfWeek to set. + * @return This builder for chaining. + */ + public Builder setDayOfWeekValue(int value) { + dayOfWeek_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Day of week.
+     * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dayOfWeek. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDayOfWeek() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(dayOfWeek_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Day of week.
+     * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dayOfWeek to set. + * @return This builder for chaining. + */ + public Builder setDayOfWeek(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + dayOfWeek_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Day of week.
+     * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDayOfWeek() { + bitField0_ = (bitField0_ & ~0x00000001); + dayOfWeek_ = 0; + onChanged(); + return this; + } + + private com.google.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Auto start time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.type.TimeOfDay stopTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + stopTimeBuilder_; + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stopTime field is set. + */ + public boolean hasStopTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stopTime. + */ + public com.google.type.TimeOfDay getStopTime() { + if (stopTimeBuilder_ == null) { + return stopTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : stopTime_; + } else { + return stopTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStopTime(com.google.type.TimeOfDay value) { + if (stopTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopTime_ = value; + } else { + stopTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStopTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (stopTimeBuilder_ == null) { + stopTime_ = builderForValue.build(); + } else { + stopTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStopTime(com.google.type.TimeOfDay value) { + if (stopTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && stopTime_ != null + && stopTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStopTimeBuilder().mergeFrom(value); + } else { + stopTime_ = value; + } + } else { + stopTimeBuilder_.mergeFrom(value); + } + if (stopTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStopTime() { + bitField0_ = (bitField0_ & ~0x00000004); + stopTime_ = null; + if (stopTimeBuilder_ != null) { + stopTimeBuilder_.dispose(); + stopTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.TimeOfDay.Builder getStopTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStopTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.TimeOfDayOrBuilder getStopTimeOrBuilder() { + if (stopTimeBuilder_ != null) { + return stopTimeBuilder_.getMessageOrBuilder(); + } else { + return stopTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : stopTime_; + } + } + /** + * + * + *
+     * Output only. Auto stop time.
+     * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStopTimeFieldBuilder() { + if (stopTimeBuilder_ == null) { + stopTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStopTime(), getParentForChildren(), isClean()); + stopTime_ = null; + } + return stopTimeBuilder_; + } + + @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.oracledatabase.v1.ScheduledOperationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ScheduledOperationDetails) + private static final com.google.cloud.oracledatabase.v1.ScheduledOperationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ScheduledOperationDetails(); + } + + public static com.google.cloud.oracledatabase.v1.ScheduledOperationDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScheduledOperationDetails 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.oracledatabase.v1.ScheduledOperationDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ScheduledOperationDetailsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ScheduledOperationDetailsOrBuilder.java new file mode 100644 index 000000000000..9a34a19cde79 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ScheduledOperationDetailsOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public interface ScheduledOperationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ScheduledOperationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Day of week.
+   * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dayOfWeek. + */ + int getDayOfWeekValue(); + /** + * + * + *
+   * Output only. Day of week.
+   * 
+ * + * .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dayOfWeek. + */ + com.google.type.DayOfWeek getDayOfWeek(); + + /** + * + * + *
+   * Output only. Auto start time.
+   * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Auto start time.
+   * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
+   * Output only. Auto start time.
+   * 
+ * + * .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Auto stop time.
+   * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the stopTime field is set. + */ + boolean hasStopTime(); + /** + * + * + *
+   * Output only. Auto stop time.
+   * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stopTime. + */ + com.google.type.TimeOfDay getStopTime(); + /** + * + * + *
+   * Output only. Auto stop time.
+   * 
+ * + * .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.type.TimeOfDayOrBuilder getStopTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/State.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/State.java new file mode 100644 index 000000000000..9a01c07d504e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/State.java @@ -0,0 +1,599 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The various lifecycle states of the Autonomous Database.
+ * 
+ * + * Protobuf enum {@code google.cloud.oracledatabase.v1.State} + */ +public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Indicates that the Autonomous Database is in provisioning state.
+   * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+   * Indicates that the Autonomous Database is in available state.
+   * 
+ * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
+   * Indicates that the Autonomous Database is in stopping state.
+   * 
+ * + * STOPPING = 3; + */ + STOPPING(3), + /** + * + * + *
+   * Indicates that the Autonomous Database is in stopped state.
+   * 
+ * + * STOPPED = 4; + */ + STOPPED(4), + /** + * + * + *
+   * Indicates that the Autonomous Database is in starting state.
+   * 
+ * + * STARTING = 5; + */ + STARTING(5), + /** + * + * + *
+   * Indicates that the Autonomous Database is in terminating state.
+   * 
+ * + * TERMINATING = 6; + */ + TERMINATING(6), + /** + * + * + *
+   * Indicates that the Autonomous Database is in terminated state.
+   * 
+ * + * TERMINATED = 7; + */ + TERMINATED(7), + /** + * + * + *
+   * Indicates that the Autonomous Database is in unavailable state.
+   * 
+ * + * UNAVAILABLE = 8; + */ + UNAVAILABLE(8), + /** + * + * + *
+   * Indicates that the Autonomous Database restore is in progress.
+   * 
+ * + * RESTORE_IN_PROGRESS = 9; + */ + RESTORE_IN_PROGRESS(9), + /** + * + * + *
+   * Indicates that the Autonomous Database failed to restore.
+   * 
+ * + * RESTORE_FAILED = 10; + */ + RESTORE_FAILED(10), + /** + * + * + *
+   * Indicates that the Autonomous Database backup is in progress.
+   * 
+ * + * BACKUP_IN_PROGRESS = 11; + */ + BACKUP_IN_PROGRESS(11), + /** + * + * + *
+   * Indicates that the Autonomous Database scale is in progress.
+   * 
+ * + * SCALE_IN_PROGRESS = 12; + */ + SCALE_IN_PROGRESS(12), + /** + * + * + *
+   * Indicates that the Autonomous Database is available but needs attention
+   * state.
+   * 
+ * + * AVAILABLE_NEEDS_ATTENTION = 13; + */ + AVAILABLE_NEEDS_ATTENTION(13), + /** + * + * + *
+   * Indicates that the Autonomous Database is in updating state.
+   * 
+ * + * UPDATING = 14; + */ + UPDATING(14), + /** + * + * + *
+   * Indicates that the Autonomous Database's maintenance is in progress state.
+   * 
+ * + * MAINTENANCE_IN_PROGRESS = 15; + */ + MAINTENANCE_IN_PROGRESS(15), + /** + * + * + *
+   * Indicates that the Autonomous Database is in restarting state.
+   * 
+ * + * RESTARTING = 16; + */ + RESTARTING(16), + /** + * + * + *
+   * Indicates that the Autonomous Database is in recreating state.
+   * 
+ * + * RECREATING = 17; + */ + RECREATING(17), + /** + * + * + *
+   * Indicates that the Autonomous Database's role change is in progress state.
+   * 
+ * + * ROLE_CHANGE_IN_PROGRESS = 18; + */ + ROLE_CHANGE_IN_PROGRESS(18), + /** + * + * + *
+   * Indicates that the Autonomous Database is in upgrading state.
+   * 
+ * + * UPGRADING = 19; + */ + UPGRADING(19), + /** + * + * + *
+   * Indicates that the Autonomous Database is in inaccessible state.
+   * 
+ * + * INACCESSIBLE = 20; + */ + INACCESSIBLE(20), + /** + * + * + *
+   * Indicates that the Autonomous Database is in standby state.
+   * 
+ * + * STANDBY = 21; + */ + STANDBY(21), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default unspecified value.
+   * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Indicates that the Autonomous Database is in provisioning state.
+   * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+   * Indicates that the Autonomous Database is in available state.
+   * 
+ * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + /** + * + * + *
+   * Indicates that the Autonomous Database is in stopping state.
+   * 
+ * + * STOPPING = 3; + */ + public static final int STOPPING_VALUE = 3; + /** + * + * + *
+   * Indicates that the Autonomous Database is in stopped state.
+   * 
+ * + * STOPPED = 4; + */ + public static final int STOPPED_VALUE = 4; + /** + * + * + *
+   * Indicates that the Autonomous Database is in starting state.
+   * 
+ * + * STARTING = 5; + */ + public static final int STARTING_VALUE = 5; + /** + * + * + *
+   * Indicates that the Autonomous Database is in terminating state.
+   * 
+ * + * TERMINATING = 6; + */ + public static final int TERMINATING_VALUE = 6; + /** + * + * + *
+   * Indicates that the Autonomous Database is in terminated state.
+   * 
+ * + * TERMINATED = 7; + */ + public static final int TERMINATED_VALUE = 7; + /** + * + * + *
+   * Indicates that the Autonomous Database is in unavailable state.
+   * 
+ * + * UNAVAILABLE = 8; + */ + public static final int UNAVAILABLE_VALUE = 8; + /** + * + * + *
+   * Indicates that the Autonomous Database restore is in progress.
+   * 
+ * + * RESTORE_IN_PROGRESS = 9; + */ + public static final int RESTORE_IN_PROGRESS_VALUE = 9; + /** + * + * + *
+   * Indicates that the Autonomous Database failed to restore.
+   * 
+ * + * RESTORE_FAILED = 10; + */ + public static final int RESTORE_FAILED_VALUE = 10; + /** + * + * + *
+   * Indicates that the Autonomous Database backup is in progress.
+   * 
+ * + * BACKUP_IN_PROGRESS = 11; + */ + public static final int BACKUP_IN_PROGRESS_VALUE = 11; + /** + * + * + *
+   * Indicates that the Autonomous Database scale is in progress.
+   * 
+ * + * SCALE_IN_PROGRESS = 12; + */ + public static final int SCALE_IN_PROGRESS_VALUE = 12; + /** + * + * + *
+   * Indicates that the Autonomous Database is available but needs attention
+   * state.
+   * 
+ * + * AVAILABLE_NEEDS_ATTENTION = 13; + */ + public static final int AVAILABLE_NEEDS_ATTENTION_VALUE = 13; + /** + * + * + *
+   * Indicates that the Autonomous Database is in updating state.
+   * 
+ * + * UPDATING = 14; + */ + public static final int UPDATING_VALUE = 14; + /** + * + * + *
+   * Indicates that the Autonomous Database's maintenance is in progress state.
+   * 
+ * + * MAINTENANCE_IN_PROGRESS = 15; + */ + public static final int MAINTENANCE_IN_PROGRESS_VALUE = 15; + /** + * + * + *
+   * Indicates that the Autonomous Database is in restarting state.
+   * 
+ * + * RESTARTING = 16; + */ + public static final int RESTARTING_VALUE = 16; + /** + * + * + *
+   * Indicates that the Autonomous Database is in recreating state.
+   * 
+ * + * RECREATING = 17; + */ + public static final int RECREATING_VALUE = 17; + /** + * + * + *
+   * Indicates that the Autonomous Database's role change is in progress state.
+   * 
+ * + * ROLE_CHANGE_IN_PROGRESS = 18; + */ + public static final int ROLE_CHANGE_IN_PROGRESS_VALUE = 18; + /** + * + * + *
+   * Indicates that the Autonomous Database is in upgrading state.
+   * 
+ * + * UPGRADING = 19; + */ + public static final int UPGRADING_VALUE = 19; + /** + * + * + *
+   * Indicates that the Autonomous Database is in inaccessible state.
+   * 
+ * + * INACCESSIBLE = 20; + */ + public static final int INACCESSIBLE_VALUE = 20; + /** + * + * + *
+   * Indicates that the Autonomous Database is in standby state.
+   * 
+ * + * STANDBY = 21; + */ + public static final int STANDBY_VALUE = 21; + + 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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return STOPPING; + case 4: + return STOPPED; + case 5: + return STARTING; + case 6: + return TERMINATING; + case 7: + return TERMINATED; + case 8: + return UNAVAILABLE; + case 9: + return RESTORE_IN_PROGRESS; + case 10: + return RESTORE_FAILED; + case 11: + return BACKUP_IN_PROGRESS; + case 12: + return SCALE_IN_PROGRESS; + case 13: + return AVAILABLE_NEEDS_ATTENTION; + case 14: + return UPDATING; + case 15: + return MAINTENANCE_IN_PROGRESS; + case 16: + return RESTARTING; + case 17: + return RECREATING; + case 18: + return ROLE_CHANGE_IN_PROGRESS; + case 19: + return UPGRADING; + case 20: + return INACCESSIBLE; + case 21: + return STANDBY; + 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 State findValueByNumber(int number) { + return State.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.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.State) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java new file mode 100644 index 000000000000..4d73352bdf52 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java @@ -0,0 +1,840 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.oracledatabase.v1; + +public final class V1mainProto { + private V1mainProto() {} + + 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_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/oracledatabase/v1/oracled" + + "atabase.proto\022\036google.cloud.oracledataba" + + "se.v1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\033google/api/field_info.pro" + + "to\032\031google/api/resource.proto\0328google/cl" + + "oud/oracledatabase/v1/autonomous_databas" + + "e.proto\032Fgoogle/cloud/oracledatabase/v1/" + + "autonomous_database_character_set.proto\032" + + "9google/cloud/oracledatabase/v1/autonomo" + + "us_db_backup.proto\032:google/cloud/oracled" + + "atabase/v1/autonomous_db_version.proto\032," + + "google/cloud/oracledatabase/v1/db_node.p" + + "roto\032.google/cloud/oracledatabase/v1/db_" + + "server.proto\0324google/cloud/oracledatabas" + + "e/v1/db_system_shape.proto\0320google/cloud" + + "/oracledatabase/v1/entitlement.proto\0322go" + + "ogle/cloud/oracledatabase/v1/exadata_inf" + + "ra.proto\032/google/cloud/oracledatabase/v1" + + "/gi_version.proto\032/google/cloud/oracleda" + + "tabase/v1/vm_cluster.proto\032#google/longr" + + "unning/operations.proto\032\033google/protobuf" + + "/empty.proto\032\037google/protobuf/timestamp." + + "proto\"\253\001\n&ListCloudExadataInfrastructure" + + "sRequest\022P\n\006parent\030\001 \001(\tB@\340A\002\372A:\0228oracle" + + "database.googleapis.com/CloudExadataInfr" + + "astructure\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_token\030\003 \001(\tB\003\340A\001\"\245\001\n\'ListCloudExadata" + + "InfrastructuresResponse\022a\n\035cloud_exadata" + + "_infrastructures\030\001 \003(\0132:.google.cloud.or" + + "acledatabase.v1.CloudExadataInfrastructu" + + "re\022\027\n\017next_page_token\030\002 \001(\t\"v\n$GetCloudE" + + "xadataInfrastructureRequest\022N\n\004name\030\001 \001(" + + "\tB@\340A\002\372A:\n8oracledatabase.googleapis.com" + + "/CloudExadataInfrastructure\"\261\002\n\'CreateCl" + + "oudExadataInfrastructureRequest\022P\n\006paren" + + "t\030\001 \001(\tB@\340A\002\372A:\0228oracledatabase.googleap" + + "is.com/CloudExadataInfrastructure\022,\n\037clo" + + "ud_exadata_infrastructure_id\030\002 \001(\tB\003\340A\002\022" + + "e\n\034cloud_exadata_infrastructure\030\003 \001(\0132:." + + "google.cloud.oracledatabase.v1.CloudExad" + + "ataInfrastructureB\003\340A\002\022\037\n\nrequest_id\030\004 \001" + + "(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\256\001\n\'DeleteCloudExadataIn" + + "frastructureRequest\022N\n\004name\030\001 \001(\tB@\340A\002\372A" + + ":\n8oracledatabase.googleapis.com/CloudEx" + + "adataInfrastructure\022\037\n\nrequest_id\030\002 \001(\tB" + + "\013\340A\001\342\214\317\327\010\002\010\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"\250\001\n\032Lis" + + "tCloudVmClustersRequest\022D\n\006parent\030\001 \001(\tB" + + "4\340A\002\372A.\022,oracledatabase.googleapis.com/C" + + "loudVmCluster\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003" + + "\340A\001\"\201\001\n\033ListCloudVmClustersResponse\022I\n\021c" + + "loud_vm_clusters\030\001 \003(\0132..google.cloud.or" + + "acledatabase.v1.CloudVmCluster\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"^\n\030GetCloudVmClusterRequ" + + "est\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,oracledatabas" + + "e.googleapis.com/CloudVmCluster\"\365\001\n\033Crea" + + "teCloudVmClusterRequest\022D\n\006parent\030\001 \001(\tB" + + "4\340A\002\372A.\022,oracledatabase.googleapis.com/C" + + "loudVmCluster\022 \n\023cloud_vm_cluster_id\030\002 \001" + + "(\tB\003\340A\002\022M\n\020cloud_vm_cluster\030\003 \001(\0132..goog" + + "le.cloud.oracledatabase.v1.CloudVmCluste" + + "rB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"" + + "\226\001\n\033DeleteCloudVmClusterRequest\022B\n\004name\030" + + "\001 \001(\tB4\340A\002\372A.\n,oracledatabase.googleapis" + + ".com/CloudVmCluster\022\037\n\nrequest_id\030\002 \001(\tB" + + "\013\340A\001\342\214\317\327\010\002\010\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"\215\001\n\027Lis" + + "tEntitlementsRequest\022A\n\006parent\030\001 \001(\tB1\340A" + + "\002\372A+\022)oracledatabase.googleapis.com/Enti" + + "tlement\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"v\n\030ListEntitlementsResp" + + "onse\022A\n\014entitlements\030\001 \003(\0132+.google.clou" + + "d.oracledatabase.v1.Entitlement\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\207\001\n\024ListDbServersReques" + + "t\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&oracledatabas" + + "e.googleapis.com/DbServer\022\026\n\tpage_size\030\002" + + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\025Li" + + "stDbServersResponse\022<\n\ndb_servers\030\001 \003(\0132" + + "(.google.cloud.oracledatabase.v1.DbServe" + + "r\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n\022ListDbNod" + + "esRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$oracl" + + "edatabase.googleapis.com/DbNode\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\"h\n\023ListDbNodesResponse\0228\n\010db_nodes\030\001 \003(" + + "\0132&.google.cloud.oracledatabase.v1.DbNod" + + "e\022\027\n\017next_page_token\030\002 \001(\t\"\211\001\n\025ListGiVer" + + "sionsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'or" + + "acledatabase.googleapis.com/GiVersion\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\"q\n\026ListGiVersionsResponse\022>\n\013gi_v" + + "ersions\030\001 \003(\0132).google.cloud.oracledatab" + + "ase.v1.GiVersion\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\221\001\n\031ListDbSystemShapesRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\022+oracledatabase.googleap" + + "is.com/DbSystemShape\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"~\n\032ListDbS" + + "ystemShapesResponse\022G\n\020db_system_shapes\030" + + "\001 \003(\0132-.google.cloud.oracledatabase.v1.D" + + "bSystemShape\022\027\n\017next_page_token\030\002 \001(\t\"\237\002" + + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + + "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\007 \001(\tB\003\340A\003\022\035\n\020percent_complete\030\010 \001" + + "(\001B\003\340A\003\"\307\001\n\036ListAutonomousDatabasesReque" + + "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\0220oracledataba" + + "se.googleapis.com/AutonomousDatabase\022\026\n\t" + + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" + + "B\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005" + + " \001(\tB\003\340A\001\"\214\001\n\037ListAutonomousDatabasesRes" + + "ponse\022P\n\024autonomous_databases\030\001 \003(\01322.go" + + "ogle.cloud.oracledatabase.v1.AutonomousD" + + "atabase\022\027\n\017next_page_token\030\002 \001(\t\"f\n\034GetA" + + "utonomousDatabaseRequest\022F\n\004name\030\001 \001(\tB8" + + "\340A\002\372A2\n0oracledatabase.googleapis.com/Au" + + "tonomousDatabase\"\207\002\n\037CreateAutonomousDat" + + "abaseRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\0220or" + + "acledatabase.googleapis.com/AutonomousDa" + + "tabase\022#\n\026autonomous_database_id\030\002 \001(\tB\003" + + "\340A\002\022T\n\023autonomous_database\030\003 \001(\01322.googl" + + "e.cloud.oracledatabase.v1.AutonomousData" + + "baseB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002" + + "\010\001\"\212\001\n\037DeleteAutonomousDatabaseRequest\022F" + + "\n\004name\030\001 \001(\tB8\340A\002\372A2\n0oracledatabase.goo" + + "gleapis.com/AutonomousDatabase\022\037\n\nreques" + + "t_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\241\001\n RestoreAuton" + + "omousDatabaseRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372" + + "A2\n0oracledatabase.googleapis.com/Autono" + + "mousDatabase\0225\n\014restore_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\002\"\343\001\n\'Generate" + + "AutonomousDatabaseWalletRequest\022F\n\004name\030" + + "\001 \001(\tB8\340A\002\372A2\n0oracledatabase.googleapis" + + ".com/AutonomousDatabase\022?\n\004type\030\002 \001(\0162,." + + "google.cloud.oracledatabase.v1.GenerateT" + + "ypeB\003\340A\001\022\030\n\013is_regional\030\003 \001(\010B\003\340A\001\022\025\n\010pa" + + "ssword\030\004 \001(\tB\003\340A\002\"H\n(GenerateAutonomousD" + + "atabaseWalletResponse\022\034\n\017archive_content" + + "\030\001 \001(\014B\003\340A\003\"\235\001\n\037ListAutonomousDbVersions" + + "Request\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\0221oracled" + + "atabase.googleapis.com/AutonomousDbVersi" + + "on\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\"\220\001\n ListAutonomousDbVersions" + + "Response\022S\n\026autonomous_db_versions\030\001 \003(\013" + + "23.google.cloud.oracledatabase.v1.Autono" + + "mousDbVersion\022\027\n\017next_page_token\030\002 \001(\t\"\310" + + "\001\n*ListAutonomousDatabaseCharacterSetsRe" + + "quest\022T\n\006parent\030\001 \001(\tBD\340A\002\372A>\022.google.cloud.oracledatab" + + "ase.v1.AutonomousDatabaseCharacterSet\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\274\001\n$ListAutonomou" + + "sDatabaseBackupsRequest\022N\n\006parent\030\001 \001(\tB" + + ">\340A\002\372A8\0226oracledatabase.googleapis.com/A" + + "utonomousDatabaseBackup\022\023\n\006filter\030\005 \001(\tB" + + "\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\004 \001(\tB\003\340A\001\"\237\001\n%ListAutonomousDatabase" + + "BackupsResponse\022]\n\033autonomous_database_b" + + "ackups\030\001 \003(\01328.google.cloud.oracledataba" + + "se.v1.AutonomousDatabaseBackup\022\027\n\017next_p" + + "age_token\030\002 \001(\t2\214+\n\016OracleDatabase\022\204\002\n\037L" + + "istCloudExadataInfrastructures\022F.google." + + "cloud.oracledatabase.v1.ListCloudExadata" + + "InfrastructuresRequest\032G.google.cloud.or" + + "acledatabase.v1.ListCloudExadataInfrastr" + + "ucturesResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{p" + + "arent=projects/*/locations/*}/cloudExada" + + "taInfrastructures\022\361\001\n\035GetCloudExadataInf" + + "rastructure\022D.google.cloud.oracledatabas" + + "e.v1.GetCloudExadataInfrastructureReques" + + "t\032:.google.cloud.oracledatabase.v1.Cloud" + + "ExadataInfrastructure\"N\332A\004name\202\323\344\223\002A\022?/v" + + "1/{name=projects/*/locations/*/cloudExad" + + "ataInfrastructures/*}\022\352\002\n CreateCloudExa" + + "dataInfrastructure\022G.google.cloud.oracle" + + "database.v1.CreateCloudExadataInfrastruc" + + "tureRequest\032\035.google.longrunning.Operati" + + "on\"\335\001\312A/\n\032CloudExadataInfrastructure\022\021Op" + + "erationMetadata\332ACparent,cloud_exadata_i" + + "nfrastructure,cloud_exadata_infrastructu" + + "re_id\202\323\344\223\002_\"?/v1/{parent=projects/*/loca" + + "tions/*}/cloudExadataInfrastructures:\034cl" + + "oud_exadata_infrastructure\022\207\002\n DeleteClo" + + "udExadataInfrastructure\022G.google.cloud.o" + + "racledatabase.v1.DeleteCloudExadataInfra" + + "structureRequest\032\035.google.longrunning.Op" + + "eration\"{\312A*\n\025google.protobuf.Empty\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\002A*?/v1/{name=p" + + "rojects/*/locations/*/cloudExadataInfras" + + "tructures/*}\022\324\001\n\023ListCloudVmClusters\022:.g" + + "oogle.cloud.oracledatabase.v1.ListCloudV" + + "mClustersRequest\032;.google.cloud.oracleda" + + "tabase.v1.ListCloudVmClustersResponse\"D\332" + + "A\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/l" + + "ocations/*}/cloudVmClusters\022\301\001\n\021GetCloud" + + "VmCluster\0228.google.cloud.oracledatabase." + + "v1.GetCloudVmClusterRequest\032..google.clo" + + "ud.oracledatabase.v1.CloudVmCluster\"B\332A\004" + + "name\202\323\344\223\0025\0223/v1/{name=projects/*/locatio" + + "ns/*/cloudVmClusters/*}\022\226\002\n\024CreateCloudV" + + "mCluster\022;.google.cloud.oracledatabase.v" + + "1.CreateCloudVmClusterRequest\032\035.google.l" + + "ongrunning.Operation\"\241\001\312A#\n\016CloudVmClust" + + "er\022\021OperationMetadata\332A+parent,cloud_vm_" + + "cluster,cloud_vm_cluster_id\202\323\344\223\002G\"3/v1/{" + + "parent=projects/*/locations/*}/cloudVmCl" + + "usters:\020cloud_vm_cluster\022\343\001\n\024DeleteCloud" + + "VmCluster\022;.google.cloud.oracledatabase." + + "v1.DeleteCloudVmClusterRequest\032\035.google." + + "longrunning.Operation\"o\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "5*3/v1/{name=projects/*/locations/*/clou" + + "dVmClusters/*}\022\310\001\n\020ListEntitlements\0227.go" + + "ogle.cloud.oracledatabase.v1.ListEntitle" + + "mentsRequest\0328.google.cloud.oracledataba" + + "se.v1.ListEntitlementsResponse\"A\332A\006paren" + + "t\202\323\344\223\0022\0220/v1/{parent=projects/*/location" + + "s/*}/entitlements\022\332\001\n\rListDbServers\0224.go" + + "ogle.cloud.oracledatabase.v1.ListDbServe" + + "rsRequest\0325.google.cloud.oracledatabase." + + "v1.ListDbServersResponse\"\\\332A\006parent\202\323\344\223\002" + + "M\022K/v1/{parent=projects/*/locations/*/cl" + + "oudExadataInfrastructures/*}/dbServers\022\306" + + "\001\n\013ListDbNodes\0222.google.cloud.oracledata" + + "base.v1.ListDbNodesRequest\0323.google.clou" + + "d.oracledatabase.v1.ListDbNodesResponse\"" + + "N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*" + + "/locations/*/cloudVmClusters/*}/dbNodes\022" + + "\300\001\n\016ListGiVersions\0225.google.cloud.oracle" + + "database.v1.ListGiVersionsRequest\0326.goog" + + "le.cloud.oracledatabase.v1.ListGiVersion" + + "sResponse\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=" + + "projects/*/locations/*}/giVersions\022\320\001\n\022L" + + "istDbSystemShapes\0229.google.cloud.oracled" + + "atabase.v1.ListDbSystemShapesRequest\032:.g" + + "oogle.cloud.oracledatabase.v1.ListDbSyst" + + "emShapesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{" + + "parent=projects/*/locations/*}/dbSystemS" + + "hapes\022\344\001\n\027ListAutonomousDatabases\022>.goog" + + "le.cloud.oracledatabase.v1.ListAutonomou" + + "sDatabasesRequest\032?.google.cloud.oracled" + + "atabase.v1.ListAutonomousDatabasesRespon" + + "se\"H\332A\006parent\202\323\344\223\0029\0227/v1/{parent=project" + + "s/*/locations/*}/autonomousDatabases\022\321\001\n" + + "\025GetAutonomousDatabase\022<.google.cloud.or" + + "acledatabase.v1.GetAutonomousDatabaseReq" + + "uest\0322.google.cloud.oracledatabase.v1.Au" + + "tonomousDatabase\"F\332A\004name\202\323\344\223\0029\0227/v1/{na" + + "me=projects/*/locations/*/autonomousData" + + "bases/*}\022\257\002\n\030CreateAutonomousDatabase\022?." + + "google.cloud.oracledatabase.v1.CreateAut" + + "onomousDatabaseRequest\032\035.google.longrunn" + + "ing.Operation\"\262\001\312A\'\n\022AutonomousDatabase\022" + + "\021OperationMetadata\332A1parent,autonomous_d" + + "atabase,autonomous_database_id\202\323\344\223\002N\"7/v" + + "1/{parent=projects/*/locations/*}/autono" + + "mousDatabases:\023autonomous_database\022\357\001\n\030D" + + "eleteAutonomousDatabase\022?.google.cloud.o" + + "racledatabase.v1.DeleteAutonomousDatabas" + + "eRequest\032\035.google.longrunning.Operation\"" + + "s\312A*\n\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\0029*7/v1/{name=projects/" + + "*/locations/*/autonomousDatabases/*}\022\207\002\n" + + "\031RestoreAutonomousDatabase\022@.google.clou" + + "d.oracledatabase.v1.RestoreAutonomousDat" + + "abaseRequest\032\035.google.longrunning.Operat" + + "ion\"\210\001\312A\'\n\022AutonomousDatabase\022\021Operation" + + "Metadata\332A\021name,restore_time\202\323\344\223\002D\"?/v1/" + + "{name=projects/*/locations/*/autonomousD" + + "atabases/*}:restore:\001*\022\251\002\n GenerateAuton" + + "omousDatabaseWallet\022G.google.cloud.oracl" + + "edatabase.v1.GenerateAutonomousDatabaseW" + + "alletRequest\032H.google.cloud.oracledataba" + + "se.v1.GenerateAutonomousDatabaseWalletRe" + + "sponse\"r\332A\036name,type,is_regional,passwor" + + "d\202\323\344\223\002K\"F/v1/{name=projects/*/locations/" + + "*/autonomousDatabases/*}:generateWallet:" + + "\001*\022\350\001\n\030ListAutonomousDbVersions\022?.google" + + ".cloud.oracledatabase.v1.ListAutonomousD" + + "bVersionsRequest\032@.google.cloud.oracleda" + + "tabase.v1.ListAutonomousDbVersionsRespon" + + "se\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=project" + + "s/*/locations/*}/autonomousDbVersions\022\224\002" + + "\n#ListAutonomousDatabaseCharacterSets\022J." + + "google.cloud.oracledatabase.v1.ListAuton" + + "omousDatabaseCharacterSetsRequest\032K.goog" + + "le.cloud.oracledatabase.v1.ListAutonomou" + + "sDatabaseCharacterSetsResponse\"T\332A\006paren" + + "t\202\323\344\223\002E\022C/v1/{parent=projects/*/location" + + "s/*}/autonomousDatabaseCharacterSets\022\374\001\n" + + "\035ListAutonomousDatabaseBackups\022D.google." + + "cloud.oracledatabase.v1.ListAutonomousDa" + + "tabaseBackupsRequest\032E.google.cloud.orac" + + "ledatabase.v1.ListAutonomousDatabaseBack" + + "upsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{paren" + + "t=projects/*/locations/*}/autonomousData" + + "baseBackups\032Q\312A\035oracledatabase.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platformB\266\002\n\"com.google.cloud.orac" + + "ledatabase.v1B\013V1mainProtoP\001ZJcloud.goog" + + "le.com/go/oracledatabase/apiv1/oracledat" + + "abasepb;oracledatabasepb\252\002\036Google.Cloud." + + "OracleDatabase.V1\312\002\036Google\\Cloud\\OracleD" + + "atabase\\V1\352\002!Google::Cloud::OracleDataba" + + "se::V1\352AN\n\036compute.googleapis.com/Networ" + + "k\022,projects/{project}/global/networks/{n" + + "etwork}b\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.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto + .getDescriptor(), + com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DbNodeProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DbServerProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DbSystemShapeProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.EntitlementProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.GiVersionProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.CloudVmClusterProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor, + new java.lang.String[] { + "CloudExadataInfrastructures", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetCloudExadataInfrastructureRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateCloudExadataInfrastructureRequest_descriptor, + new java.lang.String[] { + "Parent", "CloudExadataInfrastructureId", "CloudExadataInfrastructure", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteCloudExadataInfrastructureRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListCloudVmClustersResponse_descriptor, + new java.lang.String[] { + "CloudVmClusters", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetCloudVmClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateCloudVmClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "CloudVmClusterId", "CloudVmCluster", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteCloudVmClusterRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListEntitlementsResponse_descriptor, + new java.lang.String[] { + "Entitlements", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbServersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbServersResponse_descriptor, + new java.lang.String[] { + "DbServers", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbNodesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbNodesResponse_descriptor, + new java.lang.String[] { + "DbNodes", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor, + new java.lang.String[] { + "GiVersions", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor, + new java.lang.String[] { + "DbSystemShapes", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_oracledatabase_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "PercentComplete", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabasesResponse_descriptor, + new java.lang.String[] { + "AutonomousDatabases", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "Parent", "AutonomousDatabaseId", "AutonomousDatabase", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", "RestoreTime", + }); + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor, + new java.lang.String[] { + "Name", "Type", "IsRegional", "Password", + }); + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor, + new java.lang.String[] { + "ArchiveContent", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor, + new java.lang.String[] { + "AutonomousDbVersions", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor, + new java.lang.String[] { + "AutonomousDatabaseCharacterSets", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor, + new java.lang.String[] { + "AutonomousDatabaseBackups", "NextPageToken", + }); + 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.FieldInfoProto.fieldInfo); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DbNodeProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DbServerProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DbSystemShapeProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.EntitlementProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.GiVersionProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.CloudVmClusterProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto new file mode 100644 index 000000000000..3090a89f2268 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto @@ -0,0 +1,870 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/common.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/dayofweek.proto"; +import "google/type/timeofday.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "AutonomousDatabaseProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// The type of wallet generation. +enum GenerateType { + // Default unspecified value. + GENERATE_TYPE_UNSPECIFIED = 0; + + // Used to generate wallet for all databases in the region. + ALL = 1; + + // Used to generate wallet for a single database. + SINGLE = 2; +} + +// The various lifecycle states of the Autonomous Database. +enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the Autonomous Database is in provisioning state. + PROVISIONING = 1; + + // Indicates that the Autonomous Database is in available state. + AVAILABLE = 2; + + // Indicates that the Autonomous Database is in stopping state. + STOPPING = 3; + + // Indicates that the Autonomous Database is in stopped state. + STOPPED = 4; + + // Indicates that the Autonomous Database is in starting state. + STARTING = 5; + + // Indicates that the Autonomous Database is in terminating state. + TERMINATING = 6; + + // Indicates that the Autonomous Database is in terminated state. + TERMINATED = 7; + + // Indicates that the Autonomous Database is in unavailable state. + UNAVAILABLE = 8; + + // Indicates that the Autonomous Database restore is in progress. + RESTORE_IN_PROGRESS = 9; + + // Indicates that the Autonomous Database failed to restore. + RESTORE_FAILED = 10; + + // Indicates that the Autonomous Database backup is in progress. + BACKUP_IN_PROGRESS = 11; + + // Indicates that the Autonomous Database scale is in progress. + SCALE_IN_PROGRESS = 12; + + // Indicates that the Autonomous Database is available but needs attention + // state. + AVAILABLE_NEEDS_ATTENTION = 13; + + // Indicates that the Autonomous Database is in updating state. + UPDATING = 14; + + // Indicates that the Autonomous Database's maintenance is in progress state. + MAINTENANCE_IN_PROGRESS = 15; + + // Indicates that the Autonomous Database is in restarting state. + RESTARTING = 16; + + // Indicates that the Autonomous Database is in recreating state. + RECREATING = 17; + + // Indicates that the Autonomous Database's role change is in progress state. + ROLE_CHANGE_IN_PROGRESS = 18; + + // Indicates that the Autonomous Database is in upgrading state. + UPGRADING = 19; + + // Indicates that the Autonomous Database is in inaccessible state. + INACCESSIBLE = 20; + + // Indicates that the Autonomous Database is in standby state. + STANDBY = 21; +} + +// The state of the Operations Insights for this Autonomous Database. +enum OperationsInsightsState { + // Default unspecified value. + OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + + // Enabling status for operation insights. + ENABLING = 1; + + // Enabled status for operation insights. + ENABLED = 2; + + // Disabling status for operation insights. + DISABLING = 3; + + // Not Enabled status for operation insights. + NOT_ENABLED = 4; + + // Failed enabling status for operation insights. + FAILED_ENABLING = 5; + + // Failed disabling status for operation insights. + FAILED_DISABLING = 6; +} + +// The various states available for the Autonomous Database workload type. +enum DBWorkload { + // Default unspecified value. + DB_WORKLOAD_UNSPECIFIED = 0; + + // Autonomous Transaction Processing database. + OLTP = 1; + + // Autonomous Data Warehouse database. + DW = 2; + + // Autonomous JSON Database. + AJD = 3; + + // Autonomous Database with the Oracle APEX Application Development workload + // type. + APEX = 4; +} + +// Details of the Autonomous Database resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ +message AutonomousDatabase { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + pattern: "projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}" + plural: "autonomousDatabases" + singular: "autonomousDatabase" + }; + + // Identifier. The name of the Autonomous Database resource in the following + // format: + // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The name of the Autonomous Database. The database name must be + // unique in the project. The name must begin with a letter and can contain a + // maximum of 30 alphanumeric characters. + string database = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The display name for the Autonomous Database. The name does not + // have to be unique within your project. + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The ID of the subscription entitlement associated with the + // Autonomous Database. + string entitlement_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The password for the default ADMIN user. + string admin_password = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The properties of the Autonomous Database. + AutonomousDatabaseProperties properties = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels or tags associated with the Autonomous Database. + map labels = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The name of the VPC network used by the Autonomous Database in + // the following format: projects/{project}/global/networks/{network} + string network = 9 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Required. The subnet CIDR range for the Autonmous Database. + string cidr = 10 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The date and time that the Autonomous Database was created. + google.protobuf.Timestamp create_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The properties of an Autonomous Database. +message AutonomousDatabaseProperties { + // The editions available for the Autonomous Database. + enum DatabaseEdition { + // Default unspecified value. + DATABASE_EDITION_UNSPECIFIED = 0; + + // Standard Database Edition + STANDARD_EDITION = 1; + + // Enterprise Database Edition + ENTERPRISE_EDITION = 2; + } + + // The license types available for the Autonomous Database. + enum LicenseType { + // Unspecified + LICENSE_TYPE_UNSPECIFIED = 0; + + // License included part of offer + LICENSE_INCLUDED = 1; + + // Bring your own license + BRING_YOUR_OWN_LICENSE = 2; + } + + // The available maintenance schedules for the Autonomous Database. + enum MaintenanceScheduleType { + // Default unspecified value. + MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0; + + // An EARLY maintenance schedule patches the database before + // the regular scheduled maintenance. + EARLY = 1; + + // A REGULAR maintenance schedule follows the normal maintenance cycle. + REGULAR = 2; + } + + // The types of local disaster recovery available for an Autonomous Database. + enum LocalDisasterRecoveryType { + // Default unspecified value. + LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0; + + // Autonomous Data Guard recovery. + ADG = 1; + + // Backup based recovery. + BACKUP_BASED = 2; + } + + // Varies states of the Data Safe registration for the Autonomous Database. + enum DataSafeState { + // Default unspecified value. + DATA_SAFE_STATE_UNSPECIFIED = 0; + + // Registering data safe state. + REGISTERING = 1; + + // Registered data safe state. + REGISTERED = 2; + + // Deregistering data safe state. + DEREGISTERING = 3; + + // Not registered data safe state. + NOT_REGISTERED = 4; + + // Failed data safe state. + FAILED = 5; + } + + // The different states of database management for an Autonomous Database. + enum DatabaseManagementState { + // Default unspecified value. + DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0; + + // Enabling Database Management state + ENABLING = 1; + + // Enabled Database Management state + ENABLED = 2; + + // Disabling Database Management state + DISABLING = 3; + + // Not Enabled Database Management state + NOT_ENABLED = 4; + + // Failed enabling Database Management state + FAILED_ENABLING = 5; + + // Failed disabling Database Management state + FAILED_DISABLING = 6; + } + + // This field indicates the modes of an Autonomous Database. + enum OpenMode { + // Default unspecified value. + OPEN_MODE_UNSPECIFIED = 0; + + // Read Only Mode + READ_ONLY = 1; + + // Read Write Mode + READ_WRITE = 2; + } + + // The types of permission levels for an Autonomous Database. + enum PermissionLevel { + // Default unspecified value. + PERMISSION_LEVEL_UNSPECIFIED = 0; + + // Restricted mode allows access only by admin users. + RESTRICTED = 1; + + // Normal access. + UNRESTRICTED = 2; + } + + // The refresh mode of the cloned Autonomous Database. + enum RefreshableMode { + // The default unspecified value. + REFRESHABLE_MODE_UNSPECIFIED = 0; + + // AUTOMATIC indicates that the cloned database is automatically + // refreshed with data from the source Autonomous Database. + AUTOMATIC = 1; + + // MANUAL indicates that the cloned database is manually refreshed with + // data from the source Autonomous Database. + MANUAL = 2; + } + + // The refresh state of the cloned Autonomous Database. + enum RefreshableState { + // Default unspecified value. + REFRESHABLE_STATE_UNSPECIFIED = 0; + + // Refreshing + REFRESHING = 1; + + // Not refreshed + NOT_REFRESHING = 2; + } + + // The Data Guard role of the Autonomous Database. + enum Role { + // Default unspecified value. + ROLE_UNSPECIFIED = 0; + + // Primary role + PRIMARY = 1; + + // Standby role + STANDBY = 2; + + // Disabled standby role + DISABLED_STANDBY = 3; + + // Backup copy role + BACKUP_COPY = 4; + + // Snapshot standby role + SNAPSHOT_STANDBY = 5; + } + + // Output only. OCID of the Autonomous Database. + // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The number of compute servers for the Autonomous Database. + float compute_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of CPU cores to be made available to the database. + int32 cpu_core_count = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The size of the data stored in the database, in terabytes. + int32 data_storage_size_tb = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The size of the data stored in the database, in gigabytes. + int32 data_storage_size_gb = 63 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The workload type of the Autonomous Database. + DBWorkload db_workload = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The edition of the Autonomous Databases. + DatabaseEdition db_edition = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The character set for the Autonomous Database. The default is + // AL32UTF8. + string character_set = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The national character set for the Autonomous Database. The + // default is AL16UTF16. + string n_character_set = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The private endpoint IP address for the Autonomous Database. + string private_endpoint_ip = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The private endpoint label for the Autonomous Database. + string private_endpoint_label = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Oracle Database version for the Autonomous Database. + string db_version = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field indicates if auto scaling is enabled for the + // Autonomous Database CPU core count. + bool is_auto_scaling_enabled = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field indicates if auto scaling is enabled for the + // Autonomous Database storage. + bool is_storage_auto_scaling_enabled = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The license type used for the Autonomous Database. + LicenseType license_type = 16 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of customer contacts. + repeated CustomerContact customer_contacts = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID of the Oracle Cloud Infrastructure vault secret. + string secret_id = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID of the Oracle Cloud Infrastructure vault. + string vault_id = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maintenance schedule of the Autonomous Database. + MaintenanceScheduleType maintenance_schedule_type = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies if the Autonomous Database requires mTLS + // connections. + bool mtls_connection_required = 34 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The retention period for the Autonomous Database. This field is + // specified in days, can range from 1 day to 60 days, and has a default value + // of 60 days. + int32 backup_retention_period_days = 57 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The amount of storage currently being used for user and system + // data, in terabytes. + double actual_used_data_storage_size_tb = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The amount of storage currently allocated for the database + // tables and billed for, rounded up in terabytes. + double allocated_storage_size_tb = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The details for the Oracle APEX Application Development. + AutonomousDatabaseApex apex_details = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the status of Data Guard and Access + // control for the Autonomous Database. The field's value is null if Data + // Guard is disabled or Access Control is disabled. The field's value is TRUE + // if both Data Guard and Access Control are enabled, and the Autonomous + // Database is using primary IP access control list (ACL) for standby. The + // field's value is FALSE if both Data Guard and Access Control are enabled, + // and the Autonomous Database is using a different IP access control list + // (ACL) for standby compared to primary. + optional bool are_primary_allowlisted_ips_used = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The details of the current lifestyle state of the Autonomous + // Database. + string lifecycle_details = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current lifecycle state of the Autonomous Database. + State state = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Autonomous Container Database OCID. + string autonomous_container_database_id = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of available Oracle Database upgrade versions for an + // Autonomous Database. + repeated string available_upgrade_versions = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connection strings used to connect to an Autonomous + // Database. + AutonomousDatabaseConnectionStrings connection_strings = 29 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Oracle Connection URLs for an Autonomous Database. + AutonomousDatabaseConnectionUrls connection_urls = 30 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the number of seconds of data loss during + // a Data Guard failover. + google.protobuf.Duration failed_data_recovery_duration = 31 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The memory assigned to in-memory tables in an Autonomous + // Database. + int32 memory_table_gbs = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates whether the Autonomous Database has local + // (in-region) Data Guard enabled. + bool is_local_data_guard_enabled = 33 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the maximum data loss limit for an + // Autonomous Database, in seconds. + int32 local_adg_auto_failover_max_data_loss_limit = 35 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The details of the Autonomous Data Guard standby database. + AutonomousDatabaseStandbySummary local_standby_db = 36 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The amount of memory enabled per ECPU, in gigabytes. + int32 memory_per_oracle_compute_unit_gbs = 37 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the local disaster recovery (DR) type of + // an Autonomous Database. + LocalDisasterRecoveryType local_disaster_recovery_type = 38 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the Data Safe registration for the + // Autonomous Database. + DataSafeState data_safe_state = 39 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of database management for the Autonomous + // Database. + DatabaseManagementState database_management_state = 40 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the current mode of the Autonomous + // Database. + OpenMode open_mode = 41 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the state of Operations Insights for the + // Autonomous Database. + OperationsInsightsState operations_insights_state = 42 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of OCIDs of standby databases located in Autonomous + // Data Guard remote regions that are associated with the source database. + repeated string peer_db_ids = 43 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The permission level of the Autonomous Database. + PermissionLevel permission_level = 44 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The private endpoint for the Autonomous Database. + string private_endpoint = 45 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The refresh mode of the cloned Autonomous Database. + RefreshableMode refreshable_mode = 46 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The refresh State of the clone. + RefreshableState refreshable_state = 47 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Data Guard role of the Autonomous Database. + Role role = 48 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list and details of the scheduled operations of the + // Autonomous Database. + repeated ScheduledOperationDetails scheduled_operation_details = 64 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The SQL Web Developer URL for the Autonomous Database. + string sql_web_developer_url = 50 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of available regions that can be used to create a + // clone for the Autonomous Database. + repeated string supported_clone_regions = 51 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The storage space used by Autonomous Database, in gigabytes. + int32 used_data_storage_size_tbs = 53 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Oracle Cloud Infrastructure link for the Autonomous + // Database. + string oci_url = 54 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The storage space used by automatic backups of Autonomous + // Database, in gigabytes. + float total_auto_backup_storage_size_gbs = 59 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The long term backup schedule of the Autonomous Database. + google.protobuf.Timestamp next_long_term_backup_time = 60 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time when maintenance will begin. + google.protobuf.Timestamp maintenance_begin_time = 65 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time when maintenance will end. + google.protobuf.Timestamp maintenance_end_time = 66 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Oracle APEX Application Development. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex +message AutonomousDatabaseApex { + // Output only. The Oracle APEX Application Development version. + string apex_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Oracle REST Data Services (ORDS) version. + string ords_version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The connection string used to connect to the Autonomous Database. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings +message AutonomousDatabaseConnectionStrings { + // Output only. Returns all connection strings that can be used to connect to + // the Autonomous Database. + AllConnectionStrings all_connection_strings = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database service provides the least level of resources to + // each SQL statement, but supports the most number of concurrent SQL + // statements. + string dedicated = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database service provides the highest level of resources + // to each SQL statement. + string high = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database service provides the least level of resources to + // each SQL statement. + string low = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database service provides a lower level of resources to + // each SQL statement. + string medium = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of connection string profiles to allow clients to + // group, filter, and select values based on the structured metadata. + repeated DatabaseConnectionStringProfile profiles = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The connection string profile to allow clients to group. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile +message DatabaseConnectionStringProfile { + // The various consumer groups available in the connection string profile. + enum ConsumerGroup { + // Default unspecified value. + CONSUMER_GROUP_UNSPECIFIED = 0; + + // High consumer group. + HIGH = 1; + + // Medium consumer group. + MEDIUM = 2; + + // Low consumer group. + LOW = 3; + + // TP consumer group. + TP = 4; + + // TPURGENT consumer group. + TPURGENT = 5; + } + + // The host name format being used in the connection string. + enum HostFormat { + // Default unspecified value. + HOST_FORMAT_UNSPECIFIED = 0; + + // FQDN + FQDN = 1; + + // IP + IP = 2; + } + + // The protocol being used by the connection. + enum Protocol { + // Default unspecified value. + PROTOCOL_UNSPECIFIED = 0; + + // Tcp + TCP = 1; + + // Tcps + TCPS = 2; + } + + // The session mode of the connection. + enum SessionMode { + // Default unspecified value. + SESSION_MODE_UNSPECIFIED = 0; + + // Direct + DIRECT = 1; + + // Indirect + INDIRECT = 2; + } + + // Specifies syntax of the connection string. + enum SyntaxFormat { + // Default unspecified value. + SYNTAX_FORMAT_UNSPECIFIED = 0; + + // Long + LONG = 1; + + // Ezconnect + EZCONNECT = 2; + + // Ezconnectplus + EZCONNECTPLUS = 3; + } + + // This field indicates the TLS authentication type of the connection. + enum TLSAuthentication { + // Default unspecified value. + TLS_AUTHENTICATION_UNSPECIFIED = 0; + + // Server + SERVER = 1; + + // Mutual + MUTUAL = 2; + } + + // Output only. The current consumer group being used by the connection. + ConsumerGroup consumer_group = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name for the database connection. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The host name format being currently used in connection + // string. + HostFormat host_format = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates if the connection string is regional and + // is only applicable for cross-region Data Guard. + bool is_regional = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The protocol being used by the connection. + Protocol protocol = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current session mode of the connection. + SessionMode session_mode = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The syntax of the connection string. + SyntaxFormat syntax_format = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field indicates the TLS authentication type of the + // connection. + TLSAuthentication tls_authentication = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value of the connection string. + string value = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A list of all connection strings that can be used to connect to the +// Autonomous Database. +message AllConnectionStrings { + // Output only. The database service provides the highest level of resources + // to each SQL statement. + string high = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database service provides the least level of resources to + // each SQL statement. + string low = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database service provides a lower level of resources to + // each SQL statement. + string medium = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The URLs for accessing Oracle Application Express (APEX) and SQL Developer +// Web with a browser from a Compute instance. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls +message AutonomousDatabaseConnectionUrls { + // Output only. Oracle Application Express (APEX) URL. + string apex_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of the Database Transforms for the Autonomous + // Database. + string database_transforms_uri = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of the Graph Studio for the Autonomous Database. + string graph_studio_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of the Oracle Machine Learning (OML) Notebook for the + // Autonomous Database. + string machine_learning_notebook_uri = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of Machine Learning user management the Autonomous + // Database. + string machine_learning_user_management_uri = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of the MongoDB API for the Autonomous Database. + string mongo_db_uri = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for + // the Autonomous Database. + string ords_uri = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of the Oracle SQL Developer Web for the Autonomous + // Database. + string sql_dev_web_uri = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Autonomous Data Guard standby database details. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary +message AutonomousDatabaseStandbySummary { + // Output only. The amount of time, in seconds, that the data of the standby + // database lags in comparison to the data of the primary database. + google.protobuf.Duration lag_time_duration = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The additional details about the current lifecycle state of + // the Autonomous Database. + string lifecycle_details = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current lifecycle state of the Autonomous Database. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time the Autonomous Data Guard role was switched + // for the standby Autonomous Database. + google.protobuf.Timestamp data_guard_role_changed_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time the Disaster Recovery role was switched for + // the standby Autonomous Database. + google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of scheduled operation. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails +message ScheduledOperationDetails { + // Output only. Day of week. + google.type.DayOfWeek day_of_week = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Auto start time. + google.type.TimeOfDay start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Auto stop time. + google.type.TimeOfDay stop_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database_character_set.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database_character_set.proto new file mode 100644 index 000000000000..4c71efdecddf --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database_character_set.proto @@ -0,0 +1,64 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "AutonomousDatabaseCharacterSetProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Autonomous Database character set resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ +message AutonomousDatabaseCharacterSet { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/AutonomousDatabaseCharacterSet" + pattern: "projects/{project}/locations/{location}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}" + plural: "autonomousDatabaseCharacterSets" + singular: "autonomousDatabaseCharacterSet" + }; + + // The type of character set an Autonomous Database can have. + enum CharacterSetType { + // Character set type is not specified. + CHARACTER_SET_TYPE_UNSPECIFIED = 0; + + // Character set type is set to database. + DATABASE = 1; + + // Character set type is set to national. + NATIONAL = 2; + } + + // Identifier. The name of the Autonomous Database Character Set resource in + // the following format: + // projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The character set type for the Autonomous Database. + CharacterSetType character_set_type = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The character set name for the Autonomous Database which is + // the ID in the resource name. + string character_set = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_db_backup.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_db_backup.proto new file mode 100644 index 000000000000..3abc5c0210f5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_db_backup.proto @@ -0,0 +1,179 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "AutonomousDbBackupProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Autonomous Database Backup resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ +message AutonomousDatabaseBackup { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/AutonomousDatabaseBackup" + pattern: "projects/{project}/locations/{location}/autonomousDatabaseBackups/{autonomous_database_backup}" + plural: "autonomousDatabaseBackups" + singular: "autonomousDatabaseBackup" + }; + + // Identifier. The name of the Autonomous Database Backup resource with the + // format: + // projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The name of the Autonomous Database resource for which the backup + // is being created. Format: + // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + string autonomous_database = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Optional. User friendly name for the Backup. The name does not have to be + // unique. + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Various properties of the backup. + AutonomousDatabaseBackupProperties properties = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. labels or tags associated with the resource. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Properties of the Autonomous Database Backup resource. +message AutonomousDatabaseBackupProperties { + // // The various lifecycle states of the Autonomous Database Backup. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in creating state. + CREATING = 1; + + // Indicates that the resource is in active state. + ACTIVE = 2; + + // Indicates that the resource is in deleting state. + DELETING = 3; + + // Indicates that the resource is in deleted state. + DELETED = 4; + + // Indicates that the resource is in failed state. + FAILED = 6; + + // Indicates that the resource is in updating state. + UPDATING = 7; + } + + // The type of the backup. + enum Type { + // Default unspecified value. + TYPE_UNSPECIFIED = 0; + + // Incremental backups. + INCREMENTAL = 1; + + // Full backups. + FULL = 2; + + // Long term backups. + LONG_TERM = 3; + } + + // Output only. OCID of the Autonomous Database backup. + // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Retention period in days for the backup. + int32 retention_period_days = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The OCID of the compartment. + string compartment_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The quantity of data in the database, in terabytes. + float database_size_tb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A valid Oracle Database version for Autonomous Database. + string db_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the backup is long term backup. + bool is_long_term_backup = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the backup is automatic or user initiated. + bool is_automatic_backup = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the backup can be used to restore the Autonomous + // Database. + bool is_restorable = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The OCID of the key store of Oracle Vault. + string key_store_id = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The wallet name for Oracle Key Vault. + string key_store_wallet = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The OCID of the key container that is used as the master + // encryption key in database transparent data encryption (TDE) operations. + string kms_key_id = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The OCID of the key container version that is used in database + // transparent data encryption (TDE) operations KMS Key can have multiple key + // versions. If none is specified, the current key version (latest) of the Key + // Id is used for the operation. Autonomous Database Serverless does not use + // key versions, hence is not applicable for Autonomous Database Serverless + // instances. + string kms_key_version_id = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Additional information about the current lifecycle state. + string lifecycle_details = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The lifecycle state of the backup. + State lifecycle_state = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The backup size in terabytes. + float size_tb = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp until when the backup will be available. + google.protobuf.Timestamp available_till_time = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time the backup completed. + google.protobuf.Timestamp end_time = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time the backup started. + google.protobuf.Timestamp start_time = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the backup. + Type type = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The OCID of the vault. + string vault_id = 20 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_db_version.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_db_version.proto new file mode 100644 index 000000000000..35d68fd60978 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_db_version.proto @@ -0,0 +1,55 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/autonomous_database.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "AutonomousDbVersionProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Autonomous Database version. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/ +message AutonomousDbVersion { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/AutonomousDbVersion" + pattern: "projects/{project}/locations/{location}/autonomousDbVersions/{autonomous_db_version}" + plural: "autonomousDbVersions" + singular: "autonomousDbVersion" + }; + + // Identifier. The name of the Autonomous Database Version resource with the + // format: + // projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. An Oracle Database version for Autonomous Database. + string version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Autonomous Database workload type. + DBWorkload db_workload = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A URL that points to a detailed description of the Autonomous + // Database version. + string workload_uri = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto new file mode 100644 index 000000000000..4eefe90efb39 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto @@ -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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// The CustomerContact reference as defined by Oracle. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact +message CustomerContact { + // Required. The email address used by Oracle to send notifications regarding + // databases and infrastructure. + string email = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto new file mode 100644 index 000000000000..d49d99c75926 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto @@ -0,0 +1,106 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DbNodeProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the database node resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ +message DbNode { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DbNode" + pattern: "projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}" + plural: "dbNodes" + singular: "dbNode" + }; + + // Identifier. The name of the database node resource in the following format: + // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Various properties of the database node. + DbNodeProperties properties = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Various properties and settings associated with Db node. +message DbNodeProperties { + // The various lifecycle states of the database node. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in updating state. + UPDATING = 3; + + // Indicates that the resource is in stopping state. + STOPPING = 4; + + // Indicates that the resource is in stopped state. + STOPPED = 5; + + // Indicates that the resource is in starting state. + STARTING = 6; + + // Indicates that the resource is in terminating state. + TERMINATING = 7; + + // Indicates that the resource is in terminated state. + TERMINATED = 8; + + // Indicates that the resource is in failed state. + FAILED = 9; + } + + // Output only. OCID of database node. + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. OCPU count per database node. + int32 ocpu_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Memory allocated in GBs. + int32 memory_size_gb = 3; + + // Optional. Local storage per database node. + int32 db_node_storage_size_gb = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Database server OCID. + string db_server_ocid = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. DNS + string hostname = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the database node. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Total CPU core count of the database node. + int32 total_cpu_core_count = 10; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_server.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_server.proto new file mode 100644 index 000000000000..e5cdcf33d2db --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_server.proto @@ -0,0 +1,104 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DbServerProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the database server resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/ +message DbServer { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DbServer" + pattern: "projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}" + plural: "dbServers" + singular: "dbServer" + }; + + // Identifier. The name of the database server resource with the format: + // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. User friendly name for this resource. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Various properties of the database server. + DbServerProperties properties = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Various properties and settings associated with Exadata database server. +message DbServerProperties { + // The various lifecycle states of the database server. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in creating state. + CREATING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in unavailable state. + UNAVAILABLE = 3; + + // Indicates that the resource is in deleting state. + DELETING = 4; + + // Indicates that the resource is in deleted state. + DELETED = 5; + } + + // Output only. OCID of database server. + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. OCPU count per database. + int32 ocpu_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum OCPU count per database. + int32 max_ocpu_count = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Memory allocated in GBs. + int32 memory_size_gb = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum memory allocated in GBs. + int32 max_memory_size_gb = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Local storage per VM. + int32 db_node_storage_size_gb = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum local storage per VM. + int32 max_db_node_storage_size_gb = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Vm count per database. + int32 vm_count = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the database server. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. OCID of database nodes associated with the database server. + repeated string db_node_ids = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system_shape.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system_shape.proto new file mode 100644 index 000000000000..79ae46d3cf20 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system_shape.proto @@ -0,0 +1,79 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DbSystemShapeProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Database System Shapes resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/ +message DbSystemShape { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DbSystemShape" + pattern: "projects/{project}/locations/{location}/dbSystemShapes/{db_system_shape}" + plural: "dbSystemShapes" + singular: "dbSystemShape" + }; + + // Identifier. The name of the Database System Shape resource with the format: + // projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. shape + string shape = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum number of database servers. + int32 min_node_count = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of database servers. + int32 max_node_count = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum number of storage servers. + int32 min_storage_count = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of storage servers. + int32 max_storage_count = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of cores per node. + int32 available_core_count_per_node = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Memory per database server node in gigabytes. + int32 available_memory_per_node_gb = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Storage per storage server in terabytes. + int32 available_data_storage_tb = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum core count per node. + int32 min_core_count_per_node = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum memory per node in gigabytes. + int32 min_memory_per_node_gb = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum node storage per database server in gigabytes. + int32 min_db_node_storage_per_node_gb = 12 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/entitlement.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/entitlement.proto new file mode 100644 index 000000000000..d82762b659c3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/entitlement.proto @@ -0,0 +1,84 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "EntitlementProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Entitlement resource. +message Entitlement { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/Entitlement" + pattern: "projects/{project}/locations/{location}/entitlements/{entitlement}" + plural: "entitlements" + singular: "entitlement" + }; + + // The various lifecycle states of the subscription. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Account not linked. + ACCOUNT_NOT_LINKED = 1; + + // Account is linked but not active. + ACCOUNT_NOT_ACTIVE = 2; + + // Entitlement and Account are active. + ACTIVE = 3; + } + + // Identifier. The name of the Entitlement resource with the format: + // projects/{project}/locations/{region}/entitlements/{entitlement} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Details of the OCI Cloud Account. + CloudAccountDetails cloud_account_details = 2; + + // Output only. Google Cloud Marketplace order ID (aka entitlement ID) + string entitlement_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Entitlement State. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the OCI Cloud Account. +message CloudAccountDetails { + // Output only. OCI account name. + string cloud_account = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. OCI account home region. + string cloud_account_home_region = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URL to link an existing account. + optional string link_existing_account_uri = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URL to create a new account and link. + optional string account_creation_uri = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto new file mode 100644 index 000000000000..7b10ebb469fc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto @@ -0,0 +1,279 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/common.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/dayofweek.proto"; +import "google/type/month.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "CloudExadataInfrastructureProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Represents CloudExadataInfrastructure resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ +message CloudExadataInfrastructure { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + pattern: "projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}" + plural: "cloudExadataInfrastructures" + singular: "cloudExadataInfrastructure" + }; + + // Identifier. The name of the Exadata Infrastructure resource with the + // format: + // projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. User friendly name for this resource. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Google Cloud Platform location where Oracle Exadata is hosted. + string gcp_oracle_zone = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Entitlement ID of the private offer against which this + // infrastructure resource is provisioned. + string entitlement_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Various properties of the infra. + CloudExadataInfrastructureProperties properties = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels or tags associated with the resource. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The date and time that the Exadata Infrastructure was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Various properties of Exadata Infrastructure. +message CloudExadataInfrastructureProperties { + // The various lifecycle states of the Exadata Infrastructure. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // The Exadata Infrastructure is being provisioned. + PROVISIONING = 1; + + // The Exadata Infrastructure is available for use. + AVAILABLE = 2; + + // The Exadata Infrastructure is being updated. + UPDATING = 3; + + // The Exadata Infrastructure is being terminated. + TERMINATING = 4; + + // The Exadata Infrastructure is terminated. + TERMINATED = 5; + + // The Exadata Infrastructure is in failed state. + FAILED = 6; + + // The Exadata Infrastructure is in maintenance. + MAINTENANCE_IN_PROGRESS = 7; + } + + // Output only. OCID of created infra. + // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The number of compute servers for the Exadata Infrastructure. + int32 compute_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of Cloud Exadata storage servers for the Exadata + // Infrastructure. + int32 storage_count = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The total storage allocated to the Exadata Infrastructure + // resource, in gigabytes (GB). + int32 total_storage_size_gb = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The available storage can be allocated to the Exadata + // Infrastructure resource, in gigabytes (GB). + int32 available_storage_size_gb = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Maintenance window for repair. + MaintenanceWindow maintenance_window = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The current lifecycle state of the Exadata Infrastructure. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The shape of the Exadata Infrastructure. The shape determines the + // amount of CPU, storage, and memory resources allocated to the instance. + string shape = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Deep link to the OCI console to view this resource. + string oci_url = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The number of enabled CPU cores. + int32 cpu_count = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The total number of CPU cores available. + int32 max_cpu_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The memory allocated in GBs. + int32 memory_size_gb = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The total memory available in GBs. + int32 max_memory_gb = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The local node storage allocated in GBs. + int32 db_node_storage_size_gb = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The total local node storage available in GBs. + int32 max_db_node_storage_size_gb = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size, in terabytes, of the DATA disk group. + double data_storage_size_tb = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total available DATA disk group size. + double max_data_storage_tb = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The requested number of additional storage servers activated + // for the Exadata Infrastructure. + int32 activated_storage_count = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The requested number of additional storage servers for the + // Exadata Infrastructure. + int32 additional_storage_count = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The software version of the database servers (dom0) in the + // Exadata Infrastructure. + string db_server_version = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The software version of the storage servers (cells) in the + // Exadata Infrastructure. + string storage_server_version = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The OCID of the next maintenance run. + string next_maintenance_run_id = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the next maintenance run will occur. + google.protobuf.Timestamp next_maintenance_run_time = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the next security maintenance run will occur. + google.protobuf.Timestamp next_security_maintenance_run_time = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The list of customer contacts. + repeated CustomerContact customer_contacts = 25 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The monthly software version of the storage servers (cells) + // in the Exadata Infrastructure. Example: 20.1.15 + string monthly_storage_server_version = 26 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The monthly software version of the database servers (dom0) + // in the Exadata Infrastructure. Example: 20.1.15 + string monthly_db_server_version = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Maintenance window as defined by Oracle. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow +message MaintenanceWindow { + // Maintenance window preference. + enum MaintenanceWindowPreference { + // Default unspecified value. + MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0; + + // Custom preference. + CUSTOM_PREFERENCE = 1; + + // No preference. + NO_PREFERENCE = 2; + } + + // Patching mode. + enum PatchingMode { + // Default unspecified value. + PATCHING_MODE_UNSPECIFIED = 0; + + // Updates the Cloud Exadata database server hosts in a rolling fashion. + ROLLING = 1; + + // The non-rolling maintenance method first updates your storage servers at + // the same time, then your database servers at the same time. + NON_ROLLING = 2; + } + + // Optional. The maintenance window scheduling preference. + MaintenanceWindowPreference preference = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Months during the year when maintenance should be performed. + repeated google.type.Month months = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Weeks during the month when maintenance should be performed. + // Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a + // duration of 7 days. Weeks start and end based on calendar dates, not days + // of the week. + repeated int32 weeks_of_month = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Days during the week when maintenance should be performed. + repeated google.type.DayOfWeek days_of_week = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The window of hours during the day when maintenance should be + // performed. The window is a 4 hour slot. Valid values are: + // 0 - represents time slot 0:00 - 3:59 UTC + // 4 - represents time slot 4:00 - 7:59 UTC + // 8 - represents time slot 8:00 - 11:59 UTC + // 12 - represents time slot 12:00 - 15:59 UTC + // 16 - represents time slot 16:00 - 19:59 UTC + // 20 - represents time slot 20:00 - 23:59 UTC + repeated int32 hours_of_day = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lead time window allows user to set a lead time to prepare for a + // down time. The lead time is in weeks and valid value is between 1 to 4. + int32 lead_time_week = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Cloud CloudExadataInfrastructure node patching method, either + // "ROLLING" + // or "NONROLLING". Default value is ROLLING. + PatchingMode patching_mode = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines the amount of time the system will wait before the + // start of each database server patching operation. Custom action timeout is + // in minutes and valid value is between 15 to 120 (inclusive). + int32 custom_action_timeout_mins = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, enables the configuration of a custom action timeout + // (waiting period) between database server patching operations. + bool is_custom_action_timeout_enabled = 9 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/gi_version.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/gi_version.proto new file mode 100644 index 000000000000..67f1111a5b54 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/gi_version.proto @@ -0,0 +1,47 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "GiVersionProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Oracle Grid Infrastructure (GI) version resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/ +message GiVersion { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/GiVersion" + pattern: "projects/{project}/locations/{location}/giVersions/{gi_version}" + plural: "giVersions" + singular: "giVersion" + }; + + // Identifier. The name of the Oracle Grid Infrastructure (GI) version + // resource with the format: + // projects/{project}/locations/{region}/giVersions/{gi_versions} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. version + string version = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/location_metadata.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/location_metadata.proto new file mode 100644 index 000000000000..c0f96098bcb0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/location_metadata.proto @@ -0,0 +1,34 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "LocationMetadataProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Metadata for a given [Location][google.cloud.location.Location]. +message LocationMetadata { + // Output only. Google Cloud Platform Oracle zones in a location. + repeated string gcp_oracle_zones = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto new file mode 100644 index 000000000000..bc9a82b6a7a7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto @@ -0,0 +1,942 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/autonomous_database.proto"; +import "google/cloud/oracledatabase/v1/autonomous_database_character_set.proto"; +import "google/cloud/oracledatabase/v1/autonomous_db_backup.proto"; +import "google/cloud/oracledatabase/v1/autonomous_db_version.proto"; +import "google/cloud/oracledatabase/v1/db_node.proto"; +import "google/cloud/oracledatabase/v1/db_server.proto"; +import "google/cloud/oracledatabase/v1/db_system_shape.proto"; +import "google/cloud/oracledatabase/v1/entitlement.proto"; +import "google/cloud/oracledatabase/v1/exadata_infra.proto"; +import "google/cloud/oracledatabase/v1/gi_version.proto"; +import "google/cloud/oracledatabase/v1/vm_cluster.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "V1mainProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; + +// Service describing handlers for resources +service OracleDatabase { + option (google.api.default_host) = "oracledatabase.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Exadata Infrastructures in a given project and location. + rpc ListCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest) + returns (ListCloudExadataInfrastructuresResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Exadata Infrastructure. + rpc GetCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest) + returns (CloudExadataInfrastructure) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Exadata Infrastructure in a given project and location. + rpc CreateCloudExadataInfrastructure(CreateCloudExadataInfrastructureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures" + body: "cloud_exadata_infrastructure" + }; + option (google.api.method_signature) = + "parent,cloud_exadata_infrastructure,cloud_exadata_infrastructure_id"; + option (google.longrunning.operation_info) = { + response_type: "CloudExadataInfrastructure" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Exadata Infrastructure. + rpc DeleteCloudExadataInfrastructure(DeleteCloudExadataInfrastructureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists the VM Clusters in a given project and location. + rpc ListCloudVmClusters(ListCloudVmClustersRequest) + returns (ListCloudVmClustersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/cloudVmClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single VM Cluster. + rpc GetCloudVmCluster(GetCloudVmClusterRequest) returns (CloudVmCluster) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/cloudVmClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new VM Cluster in a given project and location. + rpc CreateCloudVmCluster(CreateCloudVmClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/cloudVmClusters" + body: "cloud_vm_cluster" + }; + option (google.api.method_signature) = + "parent,cloud_vm_cluster,cloud_vm_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "CloudVmCluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single VM Cluster. + rpc DeleteCloudVmCluster(DeleteCloudVmClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/cloudVmClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists the entitlements in a given project. + rpc ListEntitlements(ListEntitlementsRequest) + returns (ListEntitlementsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/entitlements" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists the database servers of an Exadata Infrastructure instance. + rpc ListDbServers(ListDbServersRequest) returns (ListDbServersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists the database nodes of a VM Cluster. + rpc ListDbNodes(ListDbNodesRequest) returns (ListDbNodesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodes" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists all the valid Oracle Grid Infrastructure (GI) versions for the given + // project and location. + rpc ListGiVersions(ListGiVersionsRequest) returns (ListGiVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/giVersions" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists the database system shapes available for the project and location. + rpc ListDbSystemShapes(ListDbSystemShapesRequest) + returns (ListDbSystemShapesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dbSystemShapes" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists the Autonomous Databases in a given project and location. + rpc ListAutonomousDatabases(ListAutonomousDatabasesRequest) + returns (ListAutonomousDatabasesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/autonomousDatabases" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a single Autonomous Database. + rpc GetAutonomousDatabase(GetAutonomousDatabaseRequest) + returns (AutonomousDatabase) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Autonomous Database in a given project and location. + rpc CreateAutonomousDatabase(CreateAutonomousDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/autonomousDatabases" + body: "autonomous_database" + }; + option (google.api.method_signature) = + "parent,autonomous_database,autonomous_database_id"; + option (google.longrunning.operation_info) = { + response_type: "AutonomousDatabase" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Autonomous Database. + rpc DeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Restores a single Autonomous Database. + rpc RestoreAutonomousDatabase(RestoreAutonomousDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore" + body: "*" + }; + option (google.api.method_signature) = "name,restore_time"; + option (google.longrunning.operation_info) = { + response_type: "AutonomousDatabase" + metadata_type: "OperationMetadata" + }; + } + + // Generates a wallet for an Autonomous Database. + rpc GenerateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest) + returns (GenerateAutonomousDatabaseWalletResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet" + body: "*" + }; + option (google.api.method_signature) = "name,type,is_regional,password"; + } + + // Lists all the available Autonomous Database versions for a project and + // location. + rpc ListAutonomousDbVersions(ListAutonomousDbVersionsRequest) + returns (ListAutonomousDbVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/autonomousDbVersions" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists Autonomous Database Character Sets in a given project and location. + rpc ListAutonomousDatabaseCharacterSets( + ListAutonomousDatabaseCharacterSetsRequest) + returns (ListAutonomousDatabaseCharacterSetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists the long-term and automatic backups of an Autonomous Database. + rpc ListAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest) + returns (ListAutonomousDatabaseBackupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups" + }; + option (google.api.method_signature) = "parent"; + } +} + +// The request for `CloudExadataInfrastructures.List`. +message ListCloudExadataInfrastructuresRequest { + // Required. The parent value for CloudExadataInfrastructure in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 Exadata infrastructures will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `CloudExadataInfrastructures.list`. +message ListCloudExadataInfrastructuresResponse { + // The list of Exadata Infrastructures. + repeated CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + + // A token for fetching next page of response. + string next_page_token = 2; +} + +// The request for `CloudExadataInfrastructure.Get`. +message GetCloudExadataInfrastructureRequest { + // Required. The name of the Cloud Exadata Infrastructure in the following + // format: + // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; +} + +// The request for `CloudExadataInfrastructure.Create`. +message CreateCloudExadataInfrastructureRequest { + // Required. The parent value for CloudExadataInfrastructure in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; + + // Required. The ID of the Exadata Infrastructure to create. This value is + // restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of + // 63 characters in length. The value must start with a letter and end with a + // letter or a number. + string cloud_exadata_infrastructure_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Details of the Exadata Infrastructure instance to create. + CloudExadataInfrastructure cloud_exadata_infrastructure = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores 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 = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `CloudExadataInfrastructure.Delete`. +message DeleteCloudExadataInfrastructureRequest { + // Required. The name of the Cloud Exadata Infrastructure in the following + // format: + // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores 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 = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set to true, all VM clusters for this Exadata Infrastructure + // will be deleted. An Exadata Infrastructure can only be deleted once all its + // VM clusters have been deleted. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for `CloudVmCluster.List`. +message ListCloudVmClustersRequest { + // Required. The name of the parent in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/CloudVmCluster" + } + ]; + + // Optional. The number of VM clusters to return. + // If unspecified, at most 50 VM clusters will be returned. + // The maximum value is 1,000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying the page of results the server returns. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `CloudVmCluster.List`. +message ListCloudVmClustersResponse { + // The list of VM Clusters. + repeated CloudVmCluster cloud_vm_clusters = 1; + + // A token to fetch the next page of results. + string next_page_token = 2; +} + +// The request for `CloudVmCluster.Get`. +message GetCloudVmClusterRequest { + // Required. The name of the Cloud VM Cluster in the following format: + // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudVmCluster" + } + ]; +} + +// The request for `CloudVmCluster.Create`. +message CreateCloudVmClusterRequest { + // Required. The name of the parent in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/CloudVmCluster" + } + ]; + + // Required. The ID of the VM Cluster to create. This value is restricted + // to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + // characters in length. The value must start with a letter and end with + // a letter or a number. + string cloud_vm_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + CloudVmCluster cloud_vm_cluster = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores 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 = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `CloudVmCluster.Delete`. +message DeleteCloudVmClusterRequest { + // Required. The name of the Cloud VM Cluster in the following format: + // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudVmCluster" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores 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 = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set to true, all child resources for the VM Cluster will be + // deleted. A VM Cluster can only be deleted once all its child resources have + // been deleted. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for `Entitlement.List`. +message ListEntitlementsRequest { + // Required. The parent value for the entitlement in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/Entitlement" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 entitlements will be returned. + // The maximum value is 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `Entitlement.List`. +message ListEntitlementsResponse { + // The list of Entitlements + repeated Entitlement entitlements = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `DbServer.List`. +message ListDbServersRequest { + // Required. The parent value for database server in the following format: + // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbServer" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 db servers will be returned. + // The maximum value is 1000; values above 1000 will be reset to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DbServer.List`. +message ListDbServersResponse { + // The list of database servers. + repeated DbServer db_servers = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `DbNode.List`. +message ListDbNodesRequest { + // Required. The parent value for database node in the following format: + // projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbNode" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 db nodes will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the node should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DbNode.List`. +message ListDbNodesResponse { + // The list of DB Nodes + repeated DbNode db_nodes = 1; + + // A token identifying a page of results the node should return. + string next_page_token = 2; +} + +// The request for `GiVersion.List`. +message ListGiVersionsRequest { + // Required. The parent value for Grid Infrastructure Version in the following + // format: Format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/GiVersion" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions + // will be returned. The maximum value is 1000; values above 1000 will be + // reset to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `GiVersion.List`. +message ListGiVersionsResponse { + // The list of Oracle Grid Infrastructure (GI) versions. + repeated GiVersion gi_versions = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `DbSystemShape.List`. +message ListDbSystemShapesRequest { + // Required. The parent value for Database System Shapes in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbSystemShape" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 database system shapes will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DbSystemShape.List`. +message ListDbSystemShapesResponse { + // The list of Database System shapes. + repeated DbSystemShape db_system_shapes = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the operation. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An estimated percentage of the operation that has been + // completed at a given moment of time, between 0 and 100. + double percent_complete = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `AutonomousDatabase.List`. +message ListAutonomousDatabasesRequest { + // Required. The parent value for the Autonomous Database in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 Autonomous Database will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `AutonomousDatabase.List`. +message ListAutonomousDatabasesResponse { + // The list of Autonomous Databases. + repeated AutonomousDatabase autonomous_databases = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `AutonomousDatabase.Get`. +message GetAutonomousDatabaseRequest { + // Required. The name of the Autonomous Database in the following format: + // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; +} + +// The request for `AutonomousDatabase.Create`. +message CreateAutonomousDatabaseRequest { + // Required. The name of the parent in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Required. The ID of the Autonomous Database to create. This value is + // restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of + // 63 characters in length. The value must start with a letter and end with a + // letter or a number. + string autonomous_database_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Autonomous Database being created. + AutonomousDatabase autonomous_database = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores 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 = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `AutonomousDatabase.Delete`. +message DeleteAutonomousDatabaseRequest { + // Required. The name of the resource in the following format: + // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores 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 = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `AutonomousDatabase.Restore`. +message RestoreAutonomousDatabaseRequest { + // Required. The name of the Autonomous Database in the following format: + // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Required. The time and date to restore the database to. + google.protobuf.Timestamp restore_time = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The request for `AutonomousDatabase.GenerateWallet`. +message GenerateAutonomousDatabaseWalletRequest { + // Required. The name of the Autonomous Database in the following format: + // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Optional. The type of wallet generation for the Autonomous Database. The + // default value is SINGLE. + GenerateType type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True when requesting regional connection strings in PDB connect + // info, applicable to cross-region Data Guard only. + bool is_regional = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The password used to encrypt the keys inside the wallet. The + // password must be a minimum of 8 characters. + string password = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// The response for `AutonomousDatabase.GenerateWallet`. +message GenerateAutonomousDatabaseWalletResponse { + // Output only. The base64 encoded wallet files. + bytes archive_content = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `AutonomousDbVersion.List`. +message ListAutonomousDbVersionsRequest { + // Required. The parent value for the Autonomous Database in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/AutonomousDbVersion" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 Autonomous DB Versions will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `AutonomousDbVersion.List`. +message ListAutonomousDbVersionsResponse { + // The list of Autonomous Database versions. + repeated AutonomousDbVersion autonomous_db_versions = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `AutonomousDatabaseCharacterSet.List`. +message ListAutonomousDatabaseCharacterSetsRequest { + // Required. The parent value for the Autonomous Database in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/AutonomousDatabaseCharacterSet" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 Autonomous DB Character Sets will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. Only the + // **character_set_type** field is supported in the following format: + // `character_set_type="{characterSetType}"`. Accepted values include + // `DATABASE` and `NATIONAL`. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `AutonomousDatabaseCharacterSet.List`. +message ListAutonomousDatabaseCharacterSetsResponse { + // The list of Autonomous Database Character Sets. + repeated AutonomousDatabaseCharacterSet autonomous_database_character_sets = + 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `AutonomousDatabaseBackup.List`. +message ListAutonomousDatabaseBackupsRequest { + // Required. The parent value for ListAutonomousDatabaseBackups in the + // following format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/AutonomousDatabaseBackup" + } + ]; + + // Optional. An expression for filtering the results of the request. Only the + // **autonomous_database_id** field is supported in the following format: + // `autonomous_database_id="{autonomous_database_id}"`. The accepted values + // must be a valid Autonomous Database ID, limited to the naming + // restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). + // The ID must start with a letter, end with a letter or a number, and be + // a maximum of 63 characters. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 Autonomous DB Backups will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `AutonomousDatabaseBackup.List`. +message ListAutonomousDatabaseBackupsResponse { + // The list of Autonomous Database Backups. + repeated AutonomousDatabaseBackup autonomous_database_backups = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto new file mode 100644 index 000000000000..769d9e069c40 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto @@ -0,0 +1,256 @@ +// 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. + +syntax = "proto3"; + +package google.cloud.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/datetime.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "CloudVmClusterProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Cloud VM Cluster resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ +message CloudVmCluster { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/CloudVmCluster" + pattern: "projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}" + plural: "cloudVmClusters" + singular: "cloudVmCluster" + }; + + // Identifier. The name of the VM Cluster resource with the format: + // projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The name of the Exadata Infrastructure resource on which VM + // cluster resource is created, in the following format: + // projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure} + string exadata_infrastructure = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; + + // Optional. User friendly name for this resource. + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Google Cloud Platform location where Oracle Exadata is hosted. + // It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. + string gcp_oracle_zone = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Various properties of the VM Cluster. + CloudVmClusterProperties properties = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels or tags associated with the VM Cluster. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The date and time that the VM cluster was created. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Network settings. CIDR to use for cluster IP allocation. + string cidr = 9 [(google.api.field_behavior) = REQUIRED]; + + // Required. CIDR range of the backup subnet. + string backup_subnet_cidr = 10 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the VPC network. + // Format: projects/{project}/global/networks/{network} + string network = 11 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; +} + +// Various properties and settings associated with Exadata VM cluster. +message CloudVmClusterProperties { + // Different licenses supported. + enum LicenseType { + // Unspecified + LICENSE_TYPE_UNSPECIFIED = 0; + + // License included part of offer + LICENSE_INCLUDED = 1; + + // Bring your own license + BRING_YOUR_OWN_LICENSE = 2; + } + + // Types of disk redundancy provided by Oracle. + enum DiskRedundancy { + // Unspecified. + DISK_REDUNDANCY_UNSPECIFIED = 0; + + // High - 3 way mirror. + HIGH = 1; + + // Normal - 2 way mirror. + NORMAL = 2; + } + + // The various lifecycle states of the VM cluster. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in updating state. + UPDATING = 3; + + // Indicates that the resource is in terminating state. + TERMINATING = 4; + + // Indicates that the resource is in terminated state. + TERMINATED = 5; + + // Indicates that the resource is in failed state. + FAILED = 6; + + // Indicates that the resource is in maintenance in progress state. + MAINTENANCE_IN_PROGRESS = 7; + } + + // Output only. Oracle Cloud Infrastructure ID of VM Cluster. + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. License type of VM Cluster. + LicenseType license_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Grid Infrastructure Version. + string gi_version = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. + google.type.TimeZone time_zone = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SSH public keys to be stored with cluster. + repeated string ssh_public_keys = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of database servers. + int32 node_count = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Shape of VM Cluster. + string shape = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. OCPU count per VM. Minimum is 0.1. + float ocpu_count = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Memory allocated in GBs. + int32 memory_size_gb = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Local storage per VM. + int32 db_node_storage_size_gb = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The storage allocation for the disk group, in gigabytes (GB). + int32 storage_size_gb = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The data disk group size to be allocated in TBs. + double data_storage_size_tb = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of redundancy. + DiskRedundancy disk_redundancy = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use exadata sparse snapshots. + bool sparse_diskgroup_enabled = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use local backup. + bool local_backup_enabled = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Prefix for VM cluster host names. + string hostname_prefix = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data collection options for diagnostics. + DataCollectionOptions diagnostics_data_collection_options = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the cluster. + State state = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. SCAN listener port - TCP + int32 scan_listener_port_tcp = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. SCAN listener port - TLS + int32 scan_listener_port_tcp_ssl = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Parent DNS domain where SCAN DNS and hosts names are + // qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + string domain = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. SCAN DNS name. + // ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + string scan_dns = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. host name without domain. + // format: "-" with some suffix. + // ex: sp2-yi0xq where "sp2" is the hostname_prefix. + string hostname = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Number of enabled CPU cores. + int32 cpu_core_count = 26 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Operating system version of the image. + string system_version = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. OCIDs of scan IPs. + repeated string scan_ip_ids = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. OCID of scan DNS record. + string scan_dns_record_id = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deep link to the OCI console to view this resource. + string oci_url = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. OCID of database servers. + repeated string db_server_ocids = 31 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Compartment ID of cluster. + string compartment_id = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DNS listener IP. + string dns_listener_ip = 35 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. OCI Cluster name. + string cluster_name = 36 [(google.api.field_behavior) = OPTIONAL]; +} + +// Data collection options for diagnostics. +message DataCollectionOptions { + // Optional. Indicates whether diagnostic collection is enabled for the VM + // cluster + bool diagnostics_events_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether health monitoring is enabled for the VM cluster + bool health_monitoring_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether incident logs and trace collection are enabled + // for the VM cluster + bool incident_logs_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/create/SyncCreateSetCredentialsProvider.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..74ed4f7d113e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.OracleDatabaseSettings; +import com.google.cloud.oracledatabase.v1.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 + OracleDatabaseSettings oracleDatabaseSettings = + OracleDatabaseSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings); + } +} +// [END oracledatabase_v1_generated_OracleDatabase_Create_SetCredentialsProvider_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/create/SyncCreateSetEndpoint.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..741754392aaf --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_Create_SetEndpoint_sync] +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.OracleDatabaseSettings; +import com.google.cloud.oracledatabase.v1.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 + OracleDatabaseSettings oracleDatabaseSettings = + OracleDatabaseSettings.newBuilder().setEndpoint(myEndpoint).build(); + OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings); + } +} +// [END oracledatabase_v1_generated_OracleDatabase_Create_SetEndpoint_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/AsyncCreateAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/AsyncCreateAutonomousDatabase.java new file mode 100644 index 000000000000..16f822d091df --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/AsyncCreateAutonomousDatabase.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncCreateAutonomousDatabase(); + } + + public static void asyncCreateAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutonomousDatabaseId("autonomousDatabaseId-1972693114") + .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/AsyncCreateAutonomousDatabaseLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/AsyncCreateAutonomousDatabaseLRO.java new file mode 100644 index 000000000000..4cd32516bdf7 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/AsyncCreateAutonomousDatabaseLRO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateAutonomousDatabaseLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAutonomousDatabaseLRO(); + } + + public static void asyncCreateAutonomousDatabaseLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutonomousDatabaseId("autonomousDatabaseId-1972693114") + .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request); + // Do something. + AutonomousDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabase.java new file mode 100644 index 000000000000..6c74c6a2f2de --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabase.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncCreateAutonomousDatabase(); + } + + public static void syncCreateAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutonomousDatabaseId("autonomousDatabaseId-1972693114") + .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AutonomousDatabase response = + oracleDatabaseClient.createAutonomousDatabaseAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabaseLocationnameAutonomousdatabaseString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabaseLocationnameAutonomousdatabaseString.java new file mode 100644 index 000000000000..77c6e0d39f0f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabaseLocationnameAutonomousdatabaseString.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_LocationnameAutonomousdatabaseString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateAutonomousDatabaseLocationnameAutonomousdatabaseString { + + public static void main(String[] args) throws Exception { + syncCreateAutonomousDatabaseLocationnameAutonomousdatabaseString(); + } + + public static void syncCreateAutonomousDatabaseLocationnameAutonomousdatabaseString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; + AutonomousDatabase response = + oracleDatabaseClient + .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_LocationnameAutonomousdatabaseString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabaseStringAutonomousdatabaseString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabaseStringAutonomousdatabaseString.java new file mode 100644 index 000000000000..397baa24bdf3 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createautonomousdatabase/SyncCreateAutonomousDatabaseStringAutonomousdatabaseString.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_StringAutonomousdatabaseString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateAutonomousDatabaseStringAutonomousdatabaseString { + + public static void main(String[] args) throws Exception { + syncCreateAutonomousDatabaseStringAutonomousdatabaseString(); + } + + public static void syncCreateAutonomousDatabaseStringAutonomousdatabaseString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; + AutonomousDatabase response = + oracleDatabaseClient + .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_StringAutonomousdatabaseString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/AsyncCreateCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/AsyncCreateCloudExadataInfrastructure.java new file mode 100644 index 000000000000..1cc694de9d47 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/AsyncCreateCloudExadataInfrastructure.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + asyncCreateCloudExadataInfrastructure(); + } + + public static void asyncCreateCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409") + .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/AsyncCreateCloudExadataInfrastructureLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/AsyncCreateCloudExadataInfrastructureLRO.java new file mode 100644 index 000000000000..80f46ac90df4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/AsyncCreateCloudExadataInfrastructureLRO.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateCloudExadataInfrastructureLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCloudExadataInfrastructureLRO(); + } + + public static void asyncCreateCloudExadataInfrastructureLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409") + .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient + .createCloudExadataInfrastructureOperationCallable() + .futureCall(request); + // Do something. + CloudExadataInfrastructure response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java new file mode 100644 index 000000000000..aa174bf72892 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncCreateCloudExadataInfrastructure(); + } + + public static void syncCreateCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409") + .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CloudExadataInfrastructure response = + oracleDatabaseClient.createCloudExadataInfrastructureAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructureLocationnameCloudexadatainfrastructureString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructureLocationnameCloudexadatainfrastructureString.java new file mode 100644 index 000000000000..5809c2431565 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructureLocationnameCloudexadatainfrastructureString.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_LocationnameCloudexadatainfrastructureString_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateCloudExadataInfrastructureLocationnameCloudexadatainfrastructureString { + + public static void main(String[] args) throws Exception { + syncCreateCloudExadataInfrastructureLocationnameCloudexadatainfrastructureString(); + } + + public static void + syncCreateCloudExadataInfrastructureLocationnameCloudexadatainfrastructureString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CloudExadataInfrastructure cloudExadataInfrastructure = + CloudExadataInfrastructure.newBuilder().build(); + String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; + CloudExadataInfrastructure response = + oracleDatabaseClient + .createCloudExadataInfrastructureAsync( + parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_LocationnameCloudexadatainfrastructureString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructureStringCloudexadatainfrastructureString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructureStringCloudexadatainfrastructureString.java new file mode 100644 index 000000000000..f0a12446f4c5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructureStringCloudexadatainfrastructureString.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_StringCloudexadatainfrastructureString_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateCloudExadataInfrastructureStringCloudexadatainfrastructureString { + + public static void main(String[] args) throws Exception { + syncCreateCloudExadataInfrastructureStringCloudexadatainfrastructureString(); + } + + public static void syncCreateCloudExadataInfrastructureStringCloudexadatainfrastructureString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CloudExadataInfrastructure cloudExadataInfrastructure = + CloudExadataInfrastructure.newBuilder().build(); + String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; + CloudExadataInfrastructure response = + oracleDatabaseClient + .createCloudExadataInfrastructureAsync( + parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_StringCloudexadatainfrastructureString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/AsyncCreateCloudVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/AsyncCreateCloudVmCluster.java new file mode 100644 index 000000000000..1edcbe1727ff --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/AsyncCreateCloudVmCluster.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateCloudVmCluster { + + public static void main(String[] args) throws Exception { + asyncCreateCloudVmCluster(); + } + + public static void asyncCreateCloudVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCloudVmClusterId("cloudVmClusterId-1217103287") + .setCloudVmCluster(CloudVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/AsyncCreateCloudVmClusterLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/AsyncCreateCloudVmClusterLRO.java new file mode 100644 index 000000000000..d352f2da7017 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/AsyncCreateCloudVmClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateCloudVmClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCloudVmClusterLRO(); + } + + public static void asyncCreateCloudVmClusterLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCloudVmClusterId("cloudVmClusterId-1217103287") + .setCloudVmCluster(CloudVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request); + // Do something. + CloudVmCluster response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmCluster.java new file mode 100644 index 000000000000..eb73ee22aba1 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmCluster.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateCloudVmCluster { + + public static void main(String[] args) throws Exception { + syncCreateCloudVmCluster(); + } + + public static void syncCreateCloudVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCloudVmClusterId("cloudVmClusterId-1217103287") + .setCloudVmCluster(CloudVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CloudVmCluster response = oracleDatabaseClient.createCloudVmClusterAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmClusterLocationnameCloudvmclusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmClusterLocationnameCloudvmclusterString.java new file mode 100644 index 000000000000..b7b02e56aace --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmClusterLocationnameCloudvmclusterString.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_LocationnameCloudvmclusterString_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateCloudVmClusterLocationnameCloudvmclusterString { + + public static void main(String[] args) throws Exception { + syncCreateCloudVmClusterLocationnameCloudvmclusterString(); + } + + public static void syncCreateCloudVmClusterLocationnameCloudvmclusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); + String cloudVmClusterId = "cloudVmClusterId-1217103287"; + CloudVmCluster response = + oracleDatabaseClient + .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_LocationnameCloudvmclusterString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmClusterStringCloudvmclusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmClusterStringCloudvmclusterString.java new file mode 100644 index 000000000000..11117fb4fdd8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createcloudvmcluster/SyncCreateCloudVmClusterStringCloudvmclusterString.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_StringCloudvmclusterString_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateCloudVmClusterStringCloudvmclusterString { + + public static void main(String[] args) throws Exception { + syncCreateCloudVmClusterStringCloudvmclusterString(); + } + + public static void syncCreateCloudVmClusterStringCloudvmclusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); + String cloudVmClusterId = "cloudVmClusterId-1217103287"; + CloudVmCluster response = + oracleDatabaseClient + .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_StringCloudvmclusterString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/AsyncDeleteAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/AsyncDeleteAutonomousDatabase.java new file mode 100644 index 000000000000..b73943a0d9d0 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/AsyncDeleteAutonomousDatabase.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncDeleteAutonomousDatabase(); + } + + public static void asyncDeleteAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/AsyncDeleteAutonomousDatabaseLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/AsyncDeleteAutonomousDatabaseLRO.java new file mode 100644 index 000000000000..c2a29a4ecf16 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/AsyncDeleteAutonomousDatabaseLRO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteAutonomousDatabaseLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAutonomousDatabaseLRO(); + } + + public static void asyncDeleteAutonomousDatabaseLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabase.java new file mode 100644 index 000000000000..5a5ce9015522 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabase.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncDeleteAutonomousDatabase(); + } + + public static void syncDeleteAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + oracleDatabaseClient.deleteAutonomousDatabaseAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabaseAutonomousdatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabaseAutonomousdatabasename.java new file mode 100644 index 000000000000..11509af5afe8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabaseAutonomousdatabasename.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_Autonomousdatabasename_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAutonomousDatabaseAutonomousdatabasename { + + public static void main(String[] args) throws Exception { + syncDeleteAutonomousDatabaseAutonomousdatabasename(); + } + + public static void syncDeleteAutonomousDatabaseAutonomousdatabasename() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_Autonomousdatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabaseString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabaseString.java new file mode 100644 index 000000000000..cc335b042f60 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteautonomousdatabase/SyncDeleteAutonomousDatabaseString.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_String_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAutonomousDatabaseString { + + public static void main(String[] args) throws Exception { + syncDeleteAutonomousDatabaseString(); + } + + public static void syncDeleteAutonomousDatabaseString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/AsyncDeleteCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/AsyncDeleteCloudExadataInfrastructure.java new file mode 100644 index 000000000000..6b088507fb9a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/AsyncDeleteCloudExadataInfrastructure.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + asyncDeleteCloudExadataInfrastructure(); + } + + public static void asyncDeleteCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/AsyncDeleteCloudExadataInfrastructureLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/AsyncDeleteCloudExadataInfrastructureLRO.java new file mode 100644 index 000000000000..993c174b47d5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/AsyncDeleteCloudExadataInfrastructureLRO.java @@ -0,0 +1,58 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteCloudExadataInfrastructureLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCloudExadataInfrastructureLRO(); + } + + public static void asyncDeleteCloudExadataInfrastructureLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + oracleDatabaseClient + .deleteCloudExadataInfrastructureOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructure.java new file mode 100644 index 000000000000..81c31505c4b7 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructure.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncDeleteCloudExadataInfrastructure(); + } + + public static void syncDeleteCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructureCloudexadatainfrastructurename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructureCloudexadatainfrastructurename.java new file mode 100644 index 000000000000..be6180ff1e37 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructureCloudexadatainfrastructurename.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_Cloudexadatainfrastructurename_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCloudExadataInfrastructureCloudexadatainfrastructurename { + + public static void main(String[] args) throws Exception { + syncDeleteCloudExadataInfrastructureCloudexadatainfrastructurename(); + } + + public static void syncDeleteCloudExadataInfrastructureCloudexadatainfrastructurename() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_Cloudexadatainfrastructurename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructureString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructureString.java new file mode 100644 index 000000000000..458f3d95901e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudexadatainfrastructure/SyncDeleteCloudExadataInfrastructureString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_String_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCloudExadataInfrastructureString { + + public static void main(String[] args) throws Exception { + syncDeleteCloudExadataInfrastructureString(); + } + + public static void syncDeleteCloudExadataInfrastructureString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString(); + oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/AsyncDeleteCloudVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/AsyncDeleteCloudVmCluster.java new file mode 100644 index 000000000000..b09cff30a35e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/AsyncDeleteCloudVmCluster.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCloudVmCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteCloudVmCluster(); + } + + public static void asyncDeleteCloudVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/AsyncDeleteCloudVmClusterLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/AsyncDeleteCloudVmClusterLRO.java new file mode 100644 index 000000000000..99ba57f7a2d8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/AsyncDeleteCloudVmClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteCloudVmClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCloudVmClusterLRO(); + } + + public static void asyncDeleteCloudVmClusterLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmCluster.java new file mode 100644 index 000000000000..145edfd401a0 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmCluster.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCloudVmCluster { + + public static void main(String[] args) throws Exception { + syncDeleteCloudVmCluster(); + } + + public static void syncDeleteCloudVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + oracleDatabaseClient.deleteCloudVmClusterAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmClusterCloudvmclustername.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmClusterCloudvmclustername.java new file mode 100644 index 000000000000..31a1d1d85a88 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmClusterCloudvmclustername.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_Cloudvmclustername_sync] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCloudVmClusterCloudvmclustername { + + public static void main(String[] args) throws Exception { + syncDeleteCloudVmClusterCloudvmclustername(); + } + + public static void syncDeleteCloudVmClusterCloudvmclustername() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudVmClusterName name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + oracleDatabaseClient.deleteCloudVmClusterAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_Cloudvmclustername_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmClusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmClusterString.java new file mode 100644 index 000000000000..224c89567850 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletecloudvmcluster/SyncDeleteCloudVmClusterString.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_String_sync] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCloudVmClusterString { + + public static void main(String[] args) throws Exception { + syncDeleteCloudVmClusterString(); + } + + public static void syncDeleteCloudVmClusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString(); + oracleDatabaseClient.deleteCloudVmClusterAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/AsyncGenerateAutonomousDatabaseWallet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/AsyncGenerateAutonomousDatabaseWallet.java new file mode 100644 index 000000000000..97d4434d351c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/AsyncGenerateAutonomousDatabaseWallet.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GenerateType; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGenerateAutonomousDatabaseWallet { + + public static void main(String[] args) throws Exception { + asyncGenerateAutonomousDatabaseWallet(); + } + + public static void asyncGenerateAutonomousDatabaseWallet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GenerateAutonomousDatabaseWalletRequest request = + GenerateAutonomousDatabaseWalletRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setType(GenerateType.forNumber(0)) + .setIsRegional(true) + .setPassword("password1216985755") + .build(); + ApiFuture future = + oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request); + // Do something. + GenerateAutonomousDatabaseWalletResponse response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWallet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWallet.java new file mode 100644 index 000000000000..2d0aaba75fb8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWallet.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GenerateType; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGenerateAutonomousDatabaseWallet { + + public static void main(String[] args) throws Exception { + syncGenerateAutonomousDatabaseWallet(); + } + + public static void syncGenerateAutonomousDatabaseWallet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GenerateAutonomousDatabaseWalletRequest request = + GenerateAutonomousDatabaseWalletRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setType(GenerateType.forNumber(0)) + .setIsRegional(true) + .setPassword("password1216985755") + .build(); + GenerateAutonomousDatabaseWalletResponse response = + oracleDatabaseClient.generateAutonomousDatabaseWallet(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWalletAutonomousdatabasenameGeneratetypeBooleanString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWalletAutonomousdatabasenameGeneratetypeBooleanString.java new file mode 100644 index 000000000000..3aab819a1533 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWalletAutonomousdatabasenameGeneratetypeBooleanString.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_AutonomousdatabasenameGeneratetypeBooleanString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GenerateType; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGenerateAutonomousDatabaseWalletAutonomousdatabasenameGeneratetypeBooleanString { + + public static void main(String[] args) throws Exception { + syncGenerateAutonomousDatabaseWalletAutonomousdatabasenameGeneratetypeBooleanString(); + } + + public static void + syncGenerateAutonomousDatabaseWalletAutonomousdatabasenameGeneratetypeBooleanString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + GenerateType type = GenerateType.forNumber(0); + boolean isRegional = true; + String password = "password1216985755"; + GenerateAutonomousDatabaseWalletResponse response = + oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_AutonomousdatabasenameGeneratetypeBooleanString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWalletStringGeneratetypeBooleanString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWalletStringGeneratetypeBooleanString.java new file mode 100644 index 000000000000..64f849b58ab7 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/generateautonomousdatabasewallet/SyncGenerateAutonomousDatabaseWalletStringGeneratetypeBooleanString.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_StringGeneratetypeBooleanString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; +import com.google.cloud.oracledatabase.v1.GenerateType; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGenerateAutonomousDatabaseWalletStringGeneratetypeBooleanString { + + public static void main(String[] args) throws Exception { + syncGenerateAutonomousDatabaseWalletStringGeneratetypeBooleanString(); + } + + public static void syncGenerateAutonomousDatabaseWalletStringGeneratetypeBooleanString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + GenerateType type = GenerateType.forNumber(0); + boolean isRegional = true; + String password = "password1216985755"; + GenerateAutonomousDatabaseWalletResponse response = + oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_StringGeneratetypeBooleanString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/AsyncGetAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/AsyncGetAutonomousDatabase.java new file mode 100644 index 000000000000..45993102fc8c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/AsyncGetAutonomousDatabase.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncGetAutonomousDatabase(); + } + + public static void asyncGetAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetAutonomousDatabaseRequest request = + GetAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request); + // Do something. + AutonomousDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabase.java new file mode 100644 index 000000000000..c55fd2d3177e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabase.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncGetAutonomousDatabase(); + } + + public static void syncGetAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetAutonomousDatabaseRequest request = + GetAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabaseAutonomousdatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabaseAutonomousdatabasename.java new file mode 100644 index 000000000000..09ca2a13840d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabaseAutonomousdatabasename.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_Autonomousdatabasename_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetAutonomousDatabaseAutonomousdatabasename { + + public static void main(String[] args) throws Exception { + syncGetAutonomousDatabaseAutonomousdatabasename(); + } + + public static void syncGetAutonomousDatabaseAutonomousdatabasename() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_Autonomousdatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabaseString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabaseString.java new file mode 100644 index 000000000000..6d51962e6e29 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getautonomousdatabase/SyncGetAutonomousDatabaseString.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_String_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetAutonomousDatabaseString { + + public static void main(String[] args) throws Exception { + syncGetAutonomousDatabaseString(); + } + + public static void syncGetAutonomousDatabaseString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/AsyncGetCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/AsyncGetCloudExadataInfrastructure.java new file mode 100644 index 000000000000..3466d90a1d06 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/AsyncGetCloudExadataInfrastructure.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + asyncGetCloudExadataInfrastructure(); + } + + public static void asyncGetCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetCloudExadataInfrastructureRequest request = + GetCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request); + // Do something. + CloudExadataInfrastructure response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java new file mode 100644 index 000000000000..87945005f666 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncGetCloudExadataInfrastructure(); + } + + public static void syncGetCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetCloudExadataInfrastructureRequest request = + GetCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .build(); + CloudExadataInfrastructure response = + oracleDatabaseClient.getCloudExadataInfrastructure(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructureCloudexadatainfrastructurename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructureCloudexadatainfrastructurename.java new file mode 100644 index 000000000000..8e59e8115d42 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructureCloudexadatainfrastructurename.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_Cloudexadatainfrastructurename_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetCloudExadataInfrastructureCloudexadatainfrastructurename { + + public static void main(String[] args) throws Exception { + syncGetCloudExadataInfrastructureCloudexadatainfrastructurename(); + } + + public static void syncGetCloudExadataInfrastructureCloudexadatainfrastructurename() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + CloudExadataInfrastructure response = + oracleDatabaseClient.getCloudExadataInfrastructure(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_Cloudexadatainfrastructurename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructureString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructureString.java new file mode 100644 index 000000000000..ea7b85e52cba --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructureString.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_String_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetCloudExadataInfrastructureString { + + public static void main(String[] args) throws Exception { + syncGetCloudExadataInfrastructureString(); + } + + public static void syncGetCloudExadataInfrastructureString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString(); + CloudExadataInfrastructure response = + oracleDatabaseClient.getCloudExadataInfrastructure(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/AsyncGetCloudVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/AsyncGetCloudVmCluster.java new file mode 100644 index 000000000000..7026c7a68486 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/AsyncGetCloudVmCluster.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetCloudVmCluster { + + public static void main(String[] args) throws Exception { + asyncGetCloudVmCluster(); + } + + public static void asyncGetCloudVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetCloudVmClusterRequest request = + GetCloudVmClusterRequest.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request); + // Do something. + CloudVmCluster response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmCluster.java new file mode 100644 index 000000000000..ec3340961099 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmCluster.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetCloudVmCluster { + + public static void main(String[] args) throws Exception { + syncGetCloudVmCluster(); + } + + public static void syncGetCloudVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetCloudVmClusterRequest request = + GetCloudVmClusterRequest.newBuilder() + .setName( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .build(); + CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmClusterCloudvmclustername.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmClusterCloudvmclustername.java new file mode 100644 index 000000000000..d4809c660cc1 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmClusterCloudvmclustername.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_Cloudvmclustername_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetCloudVmClusterCloudvmclustername { + + public static void main(String[] args) throws Exception { + syncGetCloudVmClusterCloudvmclustername(); + } + + public static void syncGetCloudVmClusterCloudvmclustername() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudVmClusterName name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_Cloudvmclustername_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmClusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmClusterString.java new file mode 100644 index 000000000000..576e050a4685 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getcloudvmcluster/SyncGetCloudVmClusterString.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_String_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetCloudVmClusterString { + + public static void main(String[] args) throws Exception { + syncGetCloudVmClusterString(); + } + + public static void syncGetCloudVmClusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString(); + CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getlocation/AsyncGetLocation.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..be90a60689bd --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = oracleDatabaseClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetLocation_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getlocation/SyncGetLocation.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..6b855c1fcb44 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = oracleDatabaseClient.getLocation(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetLocation_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/AsyncListAutonomousDatabaseBackups.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/AsyncListAutonomousDatabaseBackups.java new file mode 100644 index 000000000000..ff2255efa8cc --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/AsyncListAutonomousDatabaseBackups.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListAutonomousDatabaseBackups { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDatabaseBackups(); + } + + public static void asyncListAutonomousDatabaseBackups() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request); + // Do something. + for (AutonomousDatabaseBackup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/AsyncListAutonomousDatabaseBackupsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/AsyncListAutonomousDatabaseBackupsPaged.java new file mode 100644 index 000000000000..2cfce5b01d5b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/AsyncListAutonomousDatabaseBackupsPaged.java @@ -0,0 +1,63 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_Paged_async] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListAutonomousDatabaseBackupsPaged { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDatabaseBackupsPaged(); + } + + public static void asyncListAutonomousDatabaseBackupsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAutonomousDatabaseBackupsResponse response = + oracleDatabaseClient.listAutonomousDatabaseBackupsCallable().call(request); + for (AutonomousDatabaseBackup element : response.getAutonomousDatabaseBackupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackups.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackups.java new file mode 100644 index 000000000000..ec1a22587527 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackups.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabaseBackups { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabaseBackups(); + } + + public static void syncListAutonomousDatabaseBackups() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AutonomousDatabaseBackup element : + oracleDatabaseClient.listAutonomousDatabaseBackups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackupsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackupsLocationname.java new file mode 100644 index 000000000000..8450386ebcf9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackupsLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_Locationname_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabaseBackupsLocationname { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabaseBackupsLocationname(); + } + + public static void syncListAutonomousDatabaseBackupsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AutonomousDatabaseBackup element : + oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackupsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackupsString.java new file mode 100644 index 000000000000..8cc5b3bd49ae --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasebackups/SyncListAutonomousDatabaseBackupsString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_String_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabaseBackupsString { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabaseBackupsString(); + } + + public static void syncListAutonomousDatabaseBackupsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AutonomousDatabaseBackup element : + oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/AsyncListAutonomousDatabaseCharacterSets.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/AsyncListAutonomousDatabaseCharacterSets.java new file mode 100644 index 000000000000..274ad22fd1c0 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/AsyncListAutonomousDatabaseCharacterSets.java @@ -0,0 +1,57 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListAutonomousDatabaseCharacterSets { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDatabaseCharacterSets(); + } + + public static void asyncListAutonomousDatabaseCharacterSets() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient + .listAutonomousDatabaseCharacterSetsPagedCallable() + .futureCall(request); + // Do something. + for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/AsyncListAutonomousDatabaseCharacterSetsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/AsyncListAutonomousDatabaseCharacterSetsPaged.java new file mode 100644 index 000000000000..914fc84ab6a4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/AsyncListAutonomousDatabaseCharacterSetsPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_Paged_async] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListAutonomousDatabaseCharacterSetsPaged { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDatabaseCharacterSetsPaged(); + } + + public static void asyncListAutonomousDatabaseCharacterSetsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListAutonomousDatabaseCharacterSetsResponse response = + oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request); + for (AutonomousDatabaseCharacterSet element : + response.getAutonomousDatabaseCharacterSetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSets.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSets.java new file mode 100644 index 000000000000..e17675de33d4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSets.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabaseCharacterSets { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabaseCharacterSets(); + } + + public static void syncListAutonomousDatabaseCharacterSets() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (AutonomousDatabaseCharacterSet element : + oracleDatabaseClient.listAutonomousDatabaseCharacterSets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSetsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSetsLocationname.java new file mode 100644 index 000000000000..6d6fcc4bb926 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSetsLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_Locationname_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabaseCharacterSetsLocationname { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabaseCharacterSetsLocationname(); + } + + public static void syncListAutonomousDatabaseCharacterSetsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AutonomousDatabaseCharacterSet element : + oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSetsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSetsString.java new file mode 100644 index 000000000000..6d73e49e7e15 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabasecharactersets/SyncListAutonomousDatabaseCharacterSetsString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_String_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabaseCharacterSetsString { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabaseCharacterSetsString(); + } + + public static void syncListAutonomousDatabaseCharacterSetsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AutonomousDatabaseCharacterSet element : + oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/AsyncListAutonomousDatabases.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/AsyncListAutonomousDatabases.java new file mode 100644 index 000000000000..d6bce630844c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/AsyncListAutonomousDatabases.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListAutonomousDatabases { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDatabases(); + } + + public static void asyncListAutonomousDatabases() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request); + // Do something. + for (AutonomousDatabase element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/AsyncListAutonomousDatabasesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/AsyncListAutonomousDatabasesPaged.java new file mode 100644 index 000000000000..26337a943ebd --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/AsyncListAutonomousDatabasesPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_Paged_async] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListAutonomousDatabasesPaged { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDatabasesPaged(); + } + + public static void asyncListAutonomousDatabasesPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAutonomousDatabasesResponse response = + oracleDatabaseClient.listAutonomousDatabasesCallable().call(request); + for (AutonomousDatabase element : response.getAutonomousDatabasesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabases.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabases.java new file mode 100644 index 000000000000..1548573a0c96 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabases.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabases { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabases(); + } + + public static void syncListAutonomousDatabases() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AutonomousDatabase element : + oracleDatabaseClient.listAutonomousDatabases(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabasesLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabasesLocationname.java new file mode 100644 index 000000000000..e1ed2a4a55d7 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabasesLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_Locationname_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabasesLocationname { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabasesLocationname(); + } + + public static void syncListAutonomousDatabasesLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AutonomousDatabase element : + oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabasesString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabasesString.java new file mode 100644 index 000000000000..23caff43c564 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdatabases/SyncListAutonomousDatabasesString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_String_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDatabasesString { + + public static void main(String[] args) throws Exception { + syncListAutonomousDatabasesString(); + } + + public static void syncListAutonomousDatabasesString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AutonomousDatabase element : + oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/AsyncListAutonomousDbVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/AsyncListAutonomousDbVersions.java new file mode 100644 index 000000000000..e5506c412232 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/AsyncListAutonomousDbVersions.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListAutonomousDbVersions { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDbVersions(); + } + + public static void asyncListAutonomousDbVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request); + // Do something. + for (AutonomousDbVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/AsyncListAutonomousDbVersionsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/AsyncListAutonomousDbVersionsPaged.java new file mode 100644 index 000000000000..9c82b3766ce2 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/AsyncListAutonomousDbVersionsPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_Paged_async] +import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListAutonomousDbVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListAutonomousDbVersionsPaged(); + } + + public static void asyncListAutonomousDbVersionsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAutonomousDbVersionsResponse response = + oracleDatabaseClient.listAutonomousDbVersionsCallable().call(request); + for (AutonomousDbVersion element : response.getAutonomousDbVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersions.java new file mode 100644 index 000000000000..7014c7c78d83 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersions.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; +import com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDbVersions { + + public static void main(String[] args) throws Exception { + syncListAutonomousDbVersions(); + } + + public static void syncListAutonomousDbVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AutonomousDbVersion element : + oracleDatabaseClient.listAutonomousDbVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersionsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersionsLocationname.java new file mode 100644 index 000000000000..bd8808ec6f13 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersionsLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_Locationname_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDbVersionsLocationname { + + public static void main(String[] args) throws Exception { + syncListAutonomousDbVersionsLocationname(); + } + + public static void syncListAutonomousDbVersionsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AutonomousDbVersion element : + oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersionsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersionsString.java new file mode 100644 index 000000000000..0df6cfb1645a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listautonomousdbversions/SyncListAutonomousDbVersionsString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_String_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListAutonomousDbVersionsString { + + public static void main(String[] args) throws Exception { + syncListAutonomousDbVersionsString(); + } + + public static void syncListAutonomousDbVersionsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AutonomousDbVersion element : + oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java new file mode 100644 index 000000000000..9aa4a271783a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListCloudExadataInfrastructures { + + public static void main(String[] args) throws Exception { + asyncListCloudExadataInfrastructures(); + } + + public static void asyncListCloudExadataInfrastructures() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request); + // Do something. + for (CloudExadataInfrastructure element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java new file mode 100644 index 000000000000..8804bf2e4c77 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_Paged_async] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListCloudExadataInfrastructuresPaged { + + public static void main(String[] args) throws Exception { + asyncListCloudExadataInfrastructuresPaged(); + } + + public static void asyncListCloudExadataInfrastructuresPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListCloudExadataInfrastructuresResponse response = + oracleDatabaseClient.listCloudExadataInfrastructuresCallable().call(request); + for (CloudExadataInfrastructure element : response.getCloudExadataInfrastructuresList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java new file mode 100644 index 000000000000..403ef40f9e68 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListCloudExadataInfrastructures { + + public static void main(String[] args) throws Exception { + syncListCloudExadataInfrastructures(); + } + + public static void syncListCloudExadataInfrastructures() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (CloudExadataInfrastructure element : + oracleDatabaseClient.listCloudExadataInfrastructures(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructuresLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructuresLocationname.java new file mode 100644 index 000000000000..a72fb0bbc3a3 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructuresLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_Locationname_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListCloudExadataInfrastructuresLocationname { + + public static void main(String[] args) throws Exception { + syncListCloudExadataInfrastructuresLocationname(); + } + + public static void syncListCloudExadataInfrastructuresLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CloudExadataInfrastructure element : + oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructuresString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructuresString.java new file mode 100644 index 000000000000..2f6b55f995b9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructuresString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_String_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListCloudExadataInfrastructuresString { + + public static void main(String[] args) throws Exception { + syncListCloudExadataInfrastructuresString(); + } + + public static void syncListCloudExadataInfrastructuresString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CloudExadataInfrastructure element : + oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/AsyncListCloudVmClusters.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/AsyncListCloudVmClusters.java new file mode 100644 index 000000000000..23496aa2edc2 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/AsyncListCloudVmClusters.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListCloudVmClusters { + + public static void main(String[] args) throws Exception { + asyncListCloudVmClusters(); + } + + public static void asyncListCloudVmClusters() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request); + // Do something. + for (CloudVmCluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/AsyncListCloudVmClustersPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/AsyncListCloudVmClustersPaged.java new file mode 100644 index 000000000000..529ab46f4e47 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/AsyncListCloudVmClustersPaged.java @@ -0,0 +1,63 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_Paged_async] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListCloudVmClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListCloudVmClustersPaged(); + } + + public static void asyncListCloudVmClustersPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListCloudVmClustersResponse response = + oracleDatabaseClient.listCloudVmClustersCallable().call(request); + for (CloudVmCluster element : response.getCloudVmClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClusters.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClusters.java new file mode 100644 index 000000000000..8591fde741e5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClusters.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListCloudVmClusters { + + public static void main(String[] args) throws Exception { + syncListCloudVmClusters(); + } + + public static void syncListCloudVmClusters() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (CloudVmCluster element : + oracleDatabaseClient.listCloudVmClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClustersLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClustersLocationname.java new file mode 100644 index 000000000000..ccaf37042486 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClustersLocationname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_Locationname_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListCloudVmClustersLocationname { + + public static void main(String[] args) throws Exception { + syncListCloudVmClustersLocationname(); + } + + public static void syncListCloudVmClustersLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClustersString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClustersString.java new file mode 100644 index 000000000000..fc477ee4c253 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudvmclusters/SyncListCloudVmClustersString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_String_sync] +import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListCloudVmClustersString { + + public static void main(String[] args) throws Exception { + syncListCloudVmClustersString(); + } + + public static void syncListCloudVmClustersString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/AsyncListDbNodes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/AsyncListDbNodes.java new file mode 100644 index 000000000000..1b228e4e65d8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/AsyncListDbNodes.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDbNodes { + + public static void main(String[] args) throws Exception { + asyncListDbNodes(); + } + + public static void asyncListDbNodes() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbNodesRequest request = + ListDbNodesRequest.newBuilder() + .setParent( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request); + // Do something. + for (DbNode element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/AsyncListDbNodesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/AsyncListDbNodesPaged.java new file mode 100644 index 000000000000..1b8c2d8c4aef --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/AsyncListDbNodesPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_Paged_async] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; +import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDbNodesPaged { + + public static void main(String[] args) throws Exception { + asyncListDbNodesPaged(); + } + + public static void asyncListDbNodesPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbNodesRequest request = + ListDbNodesRequest.newBuilder() + .setParent( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDbNodesResponse response = oracleDatabaseClient.listDbNodesCallable().call(request); + for (DbNode element : response.getDbNodesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodes.java new file mode 100644 index 000000000000..86039b5423d0 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodes.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbNodes { + + public static void main(String[] args) throws Exception { + syncListDbNodes(); + } + + public static void syncListDbNodes() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbNodesRequest request = + ListDbNodesRequest.newBuilder() + .setParent( + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DbNode element : oracleDatabaseClient.listDbNodes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesCloudvmclustername.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesCloudvmclustername.java new file mode 100644 index 000000000000..92f098b7599b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesCloudvmclustername.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_Cloudvmclustername_sync] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbNodesCloudvmclustername { + + public static void main(String[] args) throws Exception { + syncListDbNodesCloudvmclustername(); + } + + public static void syncListDbNodesCloudvmclustername() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudVmClusterName parent = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); + for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_Cloudvmclustername_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesString.java new file mode 100644 index 000000000000..47879a4d4a2a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_String_sync] +import com.google.cloud.oracledatabase.v1.CloudVmClusterName; +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbNodesString { + + public static void main(String[] args) throws Exception { + syncListDbNodesString(); + } + + public static void syncListDbNodesString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = + CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString(); + for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/AsyncListDbServers.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/AsyncListDbServers.java new file mode 100644 index 000000000000..04cd4e36cb1a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/AsyncListDbServers.java @@ -0,0 +1,57 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.ListDbServersRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDbServers { + + public static void main(String[] args) throws Exception { + asyncListDbServers(); + } + + public static void asyncListDbServers() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbServersRequest request = + ListDbServersRequest.newBuilder() + .setParent( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listDbServersPagedCallable().futureCall(request); + // Do something. + for (DbServer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/AsyncListDbServersPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/AsyncListDbServersPaged.java new file mode 100644 index 000000000000..44f9ddd69d6f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/AsyncListDbServersPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_Paged_async] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.ListDbServersRequest; +import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDbServersPaged { + + public static void main(String[] args) throws Exception { + asyncListDbServersPaged(); + } + + public static void asyncListDbServersPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbServersRequest request = + ListDbServersRequest.newBuilder() + .setParent( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDbServersResponse response = oracleDatabaseClient.listDbServersCallable().call(request); + for (DbServer element : response.getDbServersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServers.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServers.java new file mode 100644 index 000000000000..e9ae657b3efc --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServers.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.ListDbServersRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbServers { + + public static void main(String[] args) throws Exception { + syncListDbServers(); + } + + public static void syncListDbServers() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbServersRequest request = + ListDbServersRequest.newBuilder() + .setParent( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DbServer element : oracleDatabaseClient.listDbServers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServersCloudexadatainfrastructurename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServersCloudexadatainfrastructurename.java new file mode 100644 index 000000000000..8b80b6549723 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServersCloudexadatainfrastructurename.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_Cloudexadatainfrastructurename_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbServersCloudexadatainfrastructurename { + + public static void main(String[] args) throws Exception { + syncListDbServersCloudexadatainfrastructurename(); + } + + public static void syncListDbServersCloudexadatainfrastructurename() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudExadataInfrastructureName parent = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_Cloudexadatainfrastructurename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServersString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServersString.java new file mode 100644 index 000000000000..e7063135eb24 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbservers/SyncListDbServersString.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_String_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbServersString { + + public static void main(String[] args) throws Exception { + syncListDbServersString(); + } + + public static void syncListDbServersString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString(); + for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java new file mode 100644 index 000000000000..82227dd0bd47 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDbSystemShapes { + + public static void main(String[] args) throws Exception { + asyncListDbSystemShapes(); + } + + public static void asyncListDbSystemShapes() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request); + // Do something. + for (DbSystemShape element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java new file mode 100644 index 000000000000..ad28bf75c8fd --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_Paged_async] +import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDbSystemShapesPaged { + + public static void main(String[] args) throws Exception { + asyncListDbSystemShapesPaged(); + } + + public static void asyncListDbSystemShapesPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDbSystemShapesResponse response = + oracleDatabaseClient.listDbSystemShapesCallable().call(request); + for (DbSystemShape element : response.getDbSystemShapesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java new file mode 100644 index 000000000000..80bde5853332 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] +import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemShapes { + + public static void main(String[] args) throws Exception { + syncListDbSystemShapes(); + } + + public static void syncListDbSystemShapes() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapesLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapesLocationname.java new file mode 100644 index 000000000000..92ffccde1ff9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapesLocationname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_Locationname_sync] +import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemShapesLocationname { + + public static void main(String[] args) throws Exception { + syncListDbSystemShapesLocationname(); + } + + public static void syncListDbSystemShapesLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapesString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapesString.java new file mode 100644 index 000000000000..9d5fd9bdee04 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapesString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_String_sync] +import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemShapesString { + + public static void main(String[] args) throws Exception { + syncListDbSystemShapesString(); + } + + public static void syncListDbSystemShapesString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/AsyncListEntitlements.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/AsyncListEntitlements.java new file mode 100644 index 000000000000..86d1d861df32 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/AsyncListEntitlements.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListEntitlements { + + public static void main(String[] args) throws Exception { + asyncListEntitlements(); + } + + public static void asyncListEntitlements() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request); + // Do something. + for (Entitlement element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/AsyncListEntitlementsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/AsyncListEntitlementsPaged.java new file mode 100644 index 000000000000..23857345c6cc --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/AsyncListEntitlementsPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_Paged_async] +import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; +import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListEntitlementsPaged { + + public static void main(String[] args) throws Exception { + asyncListEntitlementsPaged(); + } + + public static void asyncListEntitlementsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEntitlementsResponse response = + oracleDatabaseClient.listEntitlementsCallable().call(request); + for (Entitlement element : response.getEntitlementsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlements.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlements.java new file mode 100644 index 000000000000..745b1f048646 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlements.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] +import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListEntitlements { + + public static void main(String[] args) throws Exception { + syncListEntitlements(); + } + + public static void syncListEntitlements() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Entitlement element : oracleDatabaseClient.listEntitlements(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlementsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlementsLocationname.java new file mode 100644 index 000000000000..cfc2eb802c7f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlementsLocationname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_Locationname_sync] +import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListEntitlementsLocationname { + + public static void main(String[] args) throws Exception { + syncListEntitlementsLocationname(); + } + + public static void syncListEntitlementsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlementsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlementsString.java new file mode 100644 index 000000000000..6586d28ebc60 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listentitlements/SyncListEntitlementsString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_String_sync] +import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListEntitlementsString { + + public static void main(String[] args) throws Exception { + syncListEntitlementsString(); + } + + public static void syncListEntitlementsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java new file mode 100644 index 000000000000..007c149bd545 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.GiVersion; +import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListGiVersions { + + public static void main(String[] args) throws Exception { + asyncListGiVersions(); + } + + public static void asyncListGiVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListGiVersionsRequest request = + ListGiVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request); + // Do something. + for (GiVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java new file mode 100644 index 000000000000..5f02290338c6 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_Paged_async] +import com.google.cloud.oracledatabase.v1.GiVersion; +import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListGiVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListGiVersionsPaged(); + } + + public static void asyncListGiVersionsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListGiVersionsRequest request = + ListGiVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListGiVersionsResponse response = + oracleDatabaseClient.listGiVersionsCallable().call(request); + for (GiVersion element : response.getGiVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java new file mode 100644 index 000000000000..e8b346683d5f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] +import com.google.cloud.oracledatabase.v1.GiVersion; +import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListGiVersions { + + public static void main(String[] args) throws Exception { + syncListGiVersions(); + } + + public static void syncListGiVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListGiVersionsRequest request = + ListGiVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (GiVersion element : oracleDatabaseClient.listGiVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersionsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersionsLocationname.java new file mode 100644 index 000000000000..fff03c58f6ee --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersionsLocationname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_Locationname_sync] +import com.google.cloud.oracledatabase.v1.GiVersion; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListGiVersionsLocationname { + + public static void main(String[] args) throws Exception { + syncListGiVersionsLocationname(); + } + + public static void syncListGiVersionsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersionsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersionsString.java new file mode 100644 index 000000000000..0319ef9f47f5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersionsString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_String_sync] +import com.google.cloud.oracledatabase.v1.GiVersion; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListGiVersionsString { + + public static void main(String[] args) throws Exception { + syncListGiVersionsString(); + } + + public static void syncListGiVersionsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/AsyncListLocations.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..c6def2f6b57e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListLocations_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/AsyncListLocationsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..457f09855df5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_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.oracledatabase.v1.OracleDatabaseClient; +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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = oracleDatabaseClient.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 oracledatabase_v1_generated_OracleDatabase_ListLocations_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/SyncListLocations.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..97cfead48d17 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListLocations_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/AsyncRestoreAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/AsyncRestoreAutonomousDatabase.java new file mode 100644 index 000000000000..f7b32de9a54e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/AsyncRestoreAutonomousDatabase.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Timestamp; + +public class AsyncRestoreAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncRestoreAutonomousDatabase(); + } + + public static void asyncRestoreAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setRestoreTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/AsyncRestoreAutonomousDatabaseLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/AsyncRestoreAutonomousDatabaseLRO.java new file mode 100644 index 000000000000..b252d09967ca --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/AsyncRestoreAutonomousDatabaseLRO.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; +import com.google.protobuf.Timestamp; + +public class AsyncRestoreAutonomousDatabaseLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreAutonomousDatabaseLRO(); + } + + public static void asyncRestoreAutonomousDatabaseLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setRestoreTime(Timestamp.newBuilder().build()) + .build(); + OperationFuture future = + oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request); + // Do something. + AutonomousDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabase.java new file mode 100644 index 000000000000..f998fa7fb192 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabase.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; +import com.google.protobuf.Timestamp; + +public class SyncRestoreAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncRestoreAutonomousDatabase(); + } + + public static void syncRestoreAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setRestoreTime(Timestamp.newBuilder().build()) + .build(); + AutonomousDatabase response = + oracleDatabaseClient.restoreAutonomousDatabaseAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabaseAutonomousdatabasenameTimestamp.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabaseAutonomousdatabasenameTimestamp.java new file mode 100644 index 000000000000..3c8a67574754 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabaseAutonomousdatabasenameTimestamp.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_AutonomousdatabasenameTimestamp_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Timestamp; + +public class SyncRestoreAutonomousDatabaseAutonomousdatabasenameTimestamp { + + public static void main(String[] args) throws Exception { + syncRestoreAutonomousDatabaseAutonomousdatabasenameTimestamp(); + } + + public static void syncRestoreAutonomousDatabaseAutonomousdatabasenameTimestamp() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + Timestamp restoreTime = Timestamp.newBuilder().build(); + AutonomousDatabase response = + oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_AutonomousdatabasenameTimestamp_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabaseStringTimestamp.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabaseStringTimestamp.java new file mode 100644 index 000000000000..57098bae9cd5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/restoreautonomousdatabase/SyncRestoreAutonomousDatabaseStringTimestamp.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_StringTimestamp_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Timestamp; + +public class SyncRestoreAutonomousDatabaseStringTimestamp { + + public static void main(String[] args) throws Exception { + syncRestoreAutonomousDatabaseStringTimestamp(); + } + + public static void syncRestoreAutonomousDatabaseStringTimestamp() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + Timestamp restoreTime = Timestamp.newBuilder().build(); + AutonomousDatabase response = + oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_StringTimestamp_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabasesettings/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabasesettings/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java new file mode 100644 index 000000000000..3516fc422ab1 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabasesettings/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabaseSettings_CreateCloudExadataInfrastructure_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.oracledatabase.v1.OracleDatabaseSettings; +import java.time.Duration; + +public class SyncCreateCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncCreateCloudExadataInfrastructure(); + } + + public static void syncCreateCloudExadataInfrastructure() 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 + OracleDatabaseSettings.Builder oracleDatabaseSettingsBuilder = + OracleDatabaseSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + oracleDatabaseSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END oracledatabase_v1_generated_OracleDatabaseSettings_CreateCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabasesettings/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabasesettings/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java new file mode 100644 index 000000000000..82b808cdc654 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabasesettings/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabaseSettings_GetCloudExadataInfrastructure_sync] +import com.google.cloud.oracledatabase.v1.OracleDatabaseSettings; +import java.time.Duration; + +public class SyncGetCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncGetCloudExadataInfrastructure(); + } + + public static void syncGetCloudExadataInfrastructure() 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 + OracleDatabaseSettings.Builder oracleDatabaseSettingsBuilder = + OracleDatabaseSettings.newBuilder(); + oracleDatabaseSettingsBuilder + .getCloudExadataInfrastructureSettings() + .setRetrySettings( + oracleDatabaseSettingsBuilder + .getCloudExadataInfrastructureSettings() + .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()); + OracleDatabaseSettings oracleDatabaseSettings = oracleDatabaseSettingsBuilder.build(); + } +} +// [END oracledatabase_v1_generated_OracleDatabaseSettings_GetCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/stub/oracledatabasestubsettings/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/stub/oracledatabasestubsettings/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java new file mode 100644 index 000000000000..3e55d7798aef --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/stub/oracledatabasestubsettings/createcloudexadatainfrastructure/SyncCreateCloudExadataInfrastructure.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.stub.samples; + +// [START oracledatabase_v1_generated_OracleDatabaseStubSettings_CreateCloudExadataInfrastructure_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.oracledatabase.v1.stub.OracleDatabaseStubSettings; +import java.time.Duration; + +public class SyncCreateCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncCreateCloudExadataInfrastructure(); + } + + public static void syncCreateCloudExadataInfrastructure() 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 + OracleDatabaseStubSettings.Builder oracleDatabaseSettingsBuilder = + OracleDatabaseStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + oracleDatabaseSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END oracledatabase_v1_generated_OracleDatabaseStubSettings_CreateCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/stub/oracledatabasestubsettings/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/stub/oracledatabasestubsettings/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java new file mode 100644 index 000000000000..d099748cae40 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/stub/oracledatabasestubsettings/getcloudexadatainfrastructure/SyncGetCloudExadataInfrastructure.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.oracledatabase.v1.stub.samples; + +// [START oracledatabase_v1_generated_OracleDatabaseStubSettings_GetCloudExadataInfrastructure_sync] +import com.google.cloud.oracledatabase.v1.stub.OracleDatabaseStubSettings; +import java.time.Duration; + +public class SyncGetCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncGetCloudExadataInfrastructure(); + } + + public static void syncGetCloudExadataInfrastructure() 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 + OracleDatabaseStubSettings.Builder oracleDatabaseSettingsBuilder = + OracleDatabaseStubSettings.newBuilder(); + oracleDatabaseSettingsBuilder + .getCloudExadataInfrastructureSettings() + .setRetrySettings( + oracleDatabaseSettingsBuilder + .getCloudExadataInfrastructureSettings() + .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()); + OracleDatabaseStubSettings oracleDatabaseSettings = oracleDatabaseSettingsBuilder.build(); + } +} +// [END oracledatabase_v1_generated_OracleDatabaseStubSettings_GetCloudExadataInfrastructure_sync] diff --git a/pom.xml b/pom.xml index 202c40da2a95..6f04a3efb397 100644 --- a/pom.xml +++ b/pom.xml @@ -141,6 +141,7 @@ java-notebooks java-notification java-optimization + java-oracledatabase java-orchestration-airflow java-orgpolicy java-os-config diff --git a/versions.txt b/versions.txt index 66bf26246bfe..19a9cad1fe55 100644 --- a/versions.txt +++ b/versions.txt @@ -810,3 +810,5 @@ grpc-google-cloud-connectgateway-v1:0.3.0:0.4.0-SNAPSHOT google-maps-area-insights:0.2.0:0.3.0-SNAPSHOT proto-google-maps-area-insights-v1:0.2.0:0.3.0-SNAPSHOT grpc-google-maps-area-insights-v1:0.2.0:0.3.0-SNAPSHOT +google-cloud-oracledatabase:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-oracledatabase-v1:0.0.0:0.0.1-SNAPSHOT