diff --git a/generation_config.yaml b/generation_config.yaml index 42fbb66285e0..50c02deb072b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -188,7 +188,7 @@ libraries: product_documentation: https://docs.cloud.google.com/app-optimize/overview api_description: The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of - their cloud applications. + their cloud applications. client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview release_level: preview @@ -1299,6 +1299,15 @@ libraries: - proto_path: google/cloud/hypercomputecluster/v1beta - proto_path: google/cloud/hypercomputecluster/v1 requires_billing: true +- api_shortname: iam-admin + name_pretty: IAM Admin API + product_documentation: https://cloud.google.com/iam/docs/apis + api_description: you to manage your Service Accounts and IAM bindings. + release_level: stable + distribution_name: com.google.cloud:google-iam-admin + api_id: iam.googleapis.com + GAPICs: + - proto_path: google/iam/admin/v1 - api_shortname: iam-policy name_pretty: IAM product_documentation: n/a @@ -1316,15 +1325,6 @@ libraries: - proto_path: google/iam/v2beta - proto_path: google/iam/v3 - proto_path: google/iam/v3beta -- api_shortname: iam-admin - name_pretty: IAM Admin API - product_documentation: https://cloud.google.com/iam/docs/apis - api_description: you to manage your Service Accounts and IAM bindings. - release_level: stable - distribution_name: com.google.cloud:google-iam-admin - api_id: iam.googleapis.com - GAPICs: - - proto_path: google/iam/admin/v1 - api_shortname: iamcredentials name_pretty: IAM Service Account Credentials API product_documentation: https://cloud.google.com/iam/credentials/reference/rest/ @@ -1654,6 +1654,25 @@ libraries: - proto_path: google/maps/geocode/v4 library_name: maps-geocode requires_billing: true +- api_shortname: mapmanagement + name_pretty: Map Management API + product_documentation: https://developers.google.com/maps/documentation/mapmanagement/overview + api_description: The Map Management API is a RESTful service that accepts HTTP requests + for map styling data through a variety of methods. It returns formatted configuration + data about map styling resources so that you can programmatically manage your + Cloud-based map styles. + client_documentation: + https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview + release_level: preview + distribution_name: com.google.maps:google-maps-mapmanagement + api_id: mapmanagement.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.maps + cloud_api: false + GAPICs: + - proto_path: google/maps/mapmanagement/v2beta + library_name: maps-mapmanagement + requires_billing: true - api_shortname: maps-mapsplatformdatasets name_pretty: Maps Platform Datasets API product_documentation: https://developers.google.com/maps/documentation @@ -2923,12 +2942,12 @@ libraries: product_documentation: https://cloud.google.com/web-risk/docs/ api_description: is a Google Cloud service that lets client applications check URLs against Google's constantly updated lists of unsafe web resources. Unsafe web - resources include social engineering sites - such as phishing and deceptive sites - and - sites that host malware or unwanted software. With the Web Risk API, you can quickly - identify known bad sites, warn users before they click infected links, and prevent - users from posting links to known infected pages from your site. The Web Risk - API includes data on more than a million unsafe URLs and stays up to date by examining - billions of URLs each day. + resources include social engineering sites - such as phishing and deceptive sites + - and sites that host malware or unwanted software. With the Web Risk API, you + can quickly identify known bad sites, warn users before they click infected links, + and prevent users from posting links to known infected pages from your site. The + Web Risk API includes data on more than a million unsafe URLs and stays up to + date by examining billions of URLs each day. release_level: stable requires_billing: false issue_tracker: '' diff --git a/java-maps-mapmanagement/.OwlBot-hermetic.yaml b/java-maps-mapmanagement/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..9cd55603c491 --- /dev/null +++ b/java-maps-mapmanagement/.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-maps-mapmanagement/grpc-google-.*/src" +- "/java-maps-mapmanagement/proto-google-.*/src" +- "/java-maps-mapmanagement/google-.*/src" +- "/java-maps-mapmanagement/samples/snippets/generated" + +deep-preserve-regex: +- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/maps/mapmanagement/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-maps-mapmanagement/$1/proto-google-maps-mapmanagement-$1/src" +- source: "/google/maps/mapmanagement/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-maps-mapmanagement/$1/grpc-google-maps-mapmanagement-$1/src" +- source: "/google/maps/mapmanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-mapmanagement/$1/google-maps-mapmanagement/src" +- source: "/google/maps/mapmanagement/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-maps-mapmanagement/$1/samples/snippets/generated" + +api-name: mapmanagement \ No newline at end of file diff --git a/java-maps-mapmanagement/.repo-metadata.json b/java-maps-mapmanagement/.repo-metadata.json new file mode 100644 index 000000000000..0a27da7a4906 --- /dev/null +++ b/java-maps-mapmanagement/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "mapmanagement", + "name_pretty": "Map Management API", + "product_documentation": "https://developers.google.com/maps/documentation/mapmanagement/overview", + "api_description": "The Map Management API is a RESTful service that accepts HTTP requests for map styling data through a variety of methods. It returns formatted configuration data about map styling resources so that you can programmatically manage your Cloud-based map styles.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-maps-mapmanagement", + "distribution_name": "com.google.maps:google-maps-mapmanagement", + "api_id": "mapmanagement.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-maps-mapmanagement/README.md b/java-maps-mapmanagement/README.md new file mode 100644 index 000000000000..b662439099d1 --- /dev/null +++ b/java-maps-mapmanagement/README.md @@ -0,0 +1,182 @@ +# Google Map Management API Client for Java + +Java idiomatic client for [Map Management 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, add this to your pom.xml file: + + +```xml + + com.google.maps + google-maps-mapmanagement + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.maps:google-maps-mapmanagement:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "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 Map Management API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Map Management API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Map Management API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Map Management 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-maps-mapmanagement` library. See the [Quickstart](#quickstart) section +to add `google-maps-mapmanagement` as a dependency in your code. + +## About Map Management API + + +[Map Management API][product-docs] The Map Management API is a RESTful service that accepts HTTP requests for map styling data through a variety of methods. It returns formatted configuration data about map styling resources so that you can programmatically manage your Cloud-based map styles. + +See the [Map Management API client library docs][javadocs] to learn how to +use this Map Management API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Map Management API uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://developers.google.com/maps/documentation/mapmanagement/overview +[javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapmanagement.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/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=mapmanagement.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-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml b/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml new file mode 100644 index 000000000000..ee5a696206b0 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + com.google.maps + google-maps-mapmanagement-bom + 0.0.1-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.85.0 + ../../google-cloud-pom-parent/pom.xml + + + Google Map Management API BOM + + BOM for Map Management API + + + + true + + + + + + com.google.maps + google-maps-mapmanagement + 0.0.1-SNAPSHOT + + + com.google.maps.api.grpc + grpc-google-maps-mapmanagement-v2beta + 0.0.1-SNAPSHOT + + + com.google.maps.api.grpc + proto-google-maps-mapmanagement-v2beta + 0.0.1-SNAPSHOT + + + + diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml b/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml new file mode 100644 index 000000000000..06f01f5dd77f --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml @@ -0,0 +1,115 @@ + + + 4.0.0 + com.google.maps + google-maps-mapmanagement + 0.0.1-SNAPSHOT + jar + Google Map Management API + Map Management API The Map Management API is a RESTful service that accepts HTTP requests for map styling data through a variety of methods. It returns formatted configuration data about map styling resources so that you can programmatically manage your Cloud-based map styles. + + com.google.maps + google-maps-mapmanagement-parent + 0.0.1-SNAPSHOT + + + google-maps-mapmanagement + + + + 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.maps.api.grpc + proto-google-maps-mapmanagement-v2beta + + + 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.maps.api.grpc + grpc-google-maps-mapmanagement-v2beta + 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-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java new file mode 100644 index 000000000000..f4a7eb46bb02 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java @@ -0,0 +1,2616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.maps.mapmanagement.v2beta.stub.MapManagementStub; +import com.google.maps.mapmanagement.v2beta.stub.MapManagementStubSettings; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The Map Management API uses your inputs to create and manage Google Cloud + * based styling resources for Google Maps. + * + *

Using this API, you can can create and manage MapConfigs (Map IDs), StyleConfigs (JSON-based + * styling), and MapContextConfigs (associations between styles, datasets, and map variants). + * + *

This API offers features through three channels: + * + *

+ * + *

Capabilities described here are generally available across both the v2alpha and v2beta + * endpoints. + * + *

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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   MapConfig mapConfig = MapConfig.newBuilder().build();
+ *   MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig);
+ * }
+ * }
+ * + *

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

CreateMapConfig

Creates a MapConfig in a project.

+ *

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

+ *
    + *
  • createMapConfig(CreateMapConfigRequest request) + *

+ *

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

+ *
    + *
  • createMapConfig(ProjectName parent, MapConfig mapConfig) + *

  • createMapConfig(String parent, MapConfig mapConfig) + *

+ *

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

+ *
    + *
  • createMapConfigCallable() + *

+ *

GetMapConfig

Gets a MapConfig.

+ *

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

+ *
    + *
  • getMapConfig(GetMapConfigRequest request) + *

+ *

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

+ *
    + *
  • getMapConfig(MapConfigName name) + *

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

+ *
    + *
  • getMapConfigCallable() + *

+ *

ListMapConfigs

Lists MapConfigs for a project.

+ *

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

+ *
    + *
  • listMapConfigs(ListMapConfigsRequest request) + *

+ *

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

+ *
    + *
  • listMapConfigs(ProjectName parent) + *

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

+ *
    + *
  • listMapConfigsPagedCallable() + *

  • listMapConfigsCallable() + *

+ *

UpdateMapConfig

Updates a MapConfig.

+ *

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

+ *
    + *
  • updateMapConfig(UpdateMapConfigRequest request) + *

+ *

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

+ *
    + *
  • updateMapConfig(MapConfig mapConfig, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateMapConfigCallable() + *

+ *

DeleteMapConfig

Deletes a MapConfig.

+ *

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

+ *
    + *
  • deleteMapConfig(DeleteMapConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteMapConfig(MapConfigName name, boolean force) + *

  • deleteMapConfig(String name, boolean force) + *

+ *

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

+ *
    + *
  • deleteMapConfigCallable() + *

+ *

CreateStyleConfig

Creates a StyleConfig.

+ *

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

+ *
    + *
  • createStyleConfig(CreateStyleConfigRequest request) + *

+ *

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

+ *
    + *
  • createStyleConfig(ProjectName parent, StyleConfig styleConfig) + *

  • createStyleConfig(String parent, StyleConfig styleConfig) + *

+ *

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

+ *
    + *
  • createStyleConfigCallable() + *

+ *

GetStyleConfig

Gets a StyleConfig.

+ *

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

+ *
    + *
  • getStyleConfig(GetStyleConfigRequest request) + *

+ *

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

+ *
    + *
  • getStyleConfig(StyleConfigName name) + *

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

+ *
    + *
  • getStyleConfigCallable() + *

+ *

ListStyleConfigs

Lists StyleConfigs.

+ *

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

+ *
    + *
  • listStyleConfigs(ListStyleConfigsRequest request) + *

+ *

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

+ *
    + *
  • listStyleConfigs(ProjectName parent) + *

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

+ *
    + *
  • listStyleConfigsPagedCallable() + *

  • listStyleConfigsCallable() + *

+ *

UpdateStyleConfig

Updates a StyleConfig.

+ *

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

+ *
    + *
  • updateStyleConfig(UpdateStyleConfigRequest request) + *

+ *

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

+ *
    + *
  • updateStyleConfig(StyleConfig styleConfig, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateStyleConfigCallable() + *

+ *

DeleteStyleConfig

Deletes a StyleConfig.

+ *

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

+ *
    + *
  • deleteStyleConfig(DeleteStyleConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteStyleConfig(StyleConfigName name) + *

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

+ *
    + *
  • deleteStyleConfigCallable() + *

+ *

CreateMapContextConfig

Creates a MapContextConfig.

+ *

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

+ *
    + *
  • createMapContextConfig(CreateMapContextConfigRequest request) + *

+ *

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

+ *
    + *
  • createMapContextConfig(MapConfigName parent, MapContextConfig mapContextConfig) + *

  • createMapContextConfig(String parent, MapContextConfig mapContextConfig) + *

+ *

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

+ *
    + *
  • createMapContextConfigCallable() + *

+ *

GetMapContextConfig

Gets a MapContextConfig.

+ *

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

+ *
    + *
  • getMapContextConfig(GetMapContextConfigRequest request) + *

+ *

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

+ *
    + *
  • getMapContextConfig(MapContextConfigName name) + *

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

+ *
    + *
  • getMapContextConfigCallable() + *

+ *

ListMapContextConfigs

Lists MapContextConfigs.

+ *

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

+ *
    + *
  • listMapContextConfigs(ListMapContextConfigsRequest request) + *

+ *

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

+ *
    + *
  • listMapContextConfigs(MapConfigName parent) + *

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

+ *
    + *
  • listMapContextConfigsPagedCallable() + *

  • listMapContextConfigsCallable() + *

+ *

UpdateMapContextConfig

Updates a MapContextConfig.

+ *

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

+ *
    + *
  • updateMapContextConfig(UpdateMapContextConfigRequest request) + *

+ *

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

+ *
    + *
  • updateMapContextConfig(MapContextConfig mapContextConfig, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateMapContextConfigCallable() + *

+ *

DeleteMapContextConfig

Deletes a MapContextConfig.

+ *

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

+ *
    + *
  • deleteMapContextConfig(DeleteMapContextConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteMapContextConfig(MapContextConfigName name) + *

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

+ *
    + *
  • deleteMapContextConfigCallable() + *

+ *
+ * + *

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 MapManagementSettings 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
+ * MapManagementSettings mapManagementSettings =
+ *     MapManagementSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MapManagementClient mapManagementClient = MapManagementClient.create(mapManagementSettings);
+ * }
+ * + *

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
+ * MapManagementSettings mapManagementSettings =
+ *     MapManagementSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MapManagementClient mapManagementClient = MapManagementClient.create(mapManagementSettings);
+ * }
+ * + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class MapManagementClient implements BackgroundResource { + private final MapManagementSettings settings; + private final MapManagementStub stub; + + /** Constructs an instance of MapManagementClient with default settings. */ + public static final MapManagementClient create() throws IOException { + return create(MapManagementSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MapManagementClient, 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 MapManagementClient create(MapManagementSettings settings) + throws IOException { + return new MapManagementClient(settings); + } + + /** + * Constructs an instance of MapManagementClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(MapManagementSettings). + */ + public static final MapManagementClient create(MapManagementStub stub) { + return new MapManagementClient(stub); + } + + /** + * Constructs an instance of MapManagementClient, 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 MapManagementClient(MapManagementSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MapManagementStubSettings) settings.getStubSettings()).createStub(); + } + + protected MapManagementClient(MapManagementStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MapManagementSettings getSettings() { + return settings; + } + + public MapManagementStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapConfig in a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   MapConfig mapConfig = MapConfig.newBuilder().build();
+   *   MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig);
+   * }
+   * }
+ * + * @param parent Required. Parent project that will own the MapConfig. Format: + * `projects/{$my-project-id}` + * @param mapConfig Required. The MapConfig to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapConfig createMapConfig(ProjectName parent, MapConfig mapConfig) { + CreateMapConfigRequest request = + CreateMapConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMapConfig(mapConfig) + .build(); + return createMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapConfig in a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   MapConfig mapConfig = MapConfig.newBuilder().build();
+   *   MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig);
+   * }
+   * }
+ * + * @param parent Required. Parent project that will own the MapConfig. Format: + * `projects/{$my-project-id}` + * @param mapConfig Required. The MapConfig to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapConfig createMapConfig(String parent, MapConfig mapConfig) { + CreateMapConfigRequest request = + CreateMapConfigRequest.newBuilder().setParent(parent).setMapConfig(mapConfig).build(); + return createMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapConfig in a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   CreateMapConfigRequest request =
+   *       CreateMapConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setMapConfig(MapConfig.newBuilder().build())
+   *           .build();
+   *   MapConfig response = mapManagementClient.createMapConfig(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 MapConfig createMapConfig(CreateMapConfigRequest request) { + return createMapConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapConfig in a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   CreateMapConfigRequest request =
+   *       CreateMapConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setMapConfig(MapConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.createMapConfigCallable().futureCall(request);
+   *   // Do something.
+   *   MapConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createMapConfigCallable() { + return stub.createMapConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]");
+   *   MapConfig response = mapManagementClient.getMapConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapConfig. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapConfig getMapConfig(MapConfigName name) { + GetMapConfigRequest request = + GetMapConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString();
+   *   MapConfig response = mapManagementClient.getMapConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapConfig. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapConfig getMapConfig(String name) { + GetMapConfigRequest request = GetMapConfigRequest.newBuilder().setName(name).build(); + return getMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a MapConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   GetMapConfigRequest request =
+   *       GetMapConfigRequest.newBuilder()
+   *           .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future = mapManagementClient.getMapConfigCallable().futureCall(request);
+   *   // Do something.
+   *   MapConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMapConfigCallable() { + return stub.getMapConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapConfigs for a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (MapConfig element : mapManagementClient.listMapConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent project that owns the MapConfigs. Format: `projects/{project}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMapConfigsPagedResponse listMapConfigs(ProjectName parent) { + ListMapConfigsRequest request = + ListMapConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMapConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapConfigs for a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (MapConfig element : mapManagementClient.listMapConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent project that owns the MapConfigs. Format: `projects/{project}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMapConfigsPagedResponse listMapConfigs(String parent) { + ListMapConfigsRequest request = ListMapConfigsRequest.newBuilder().setParent(parent).build(); + return listMapConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapConfigs for a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListMapConfigsRequest request =
+   *       ListMapConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (MapConfig element : mapManagementClient.listMapConfigs(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 ListMapConfigsPagedResponse listMapConfigs(ListMapConfigsRequest request) { + return listMapConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapConfigs for a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListMapConfigsRequest request =
+   *       ListMapConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.listMapConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MapConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMapConfigsPagedCallable() { + return stub.listMapConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapConfigs for a 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 (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListMapConfigsRequest request =
+   *       ListMapConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListMapConfigsResponse response =
+   *         mapManagementClient.listMapConfigsCallable().call(request);
+   *     for (MapConfig element : response.getMapConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMapConfigsCallable() { + return stub.listMapConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapConfig mapConfig = MapConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   MapConfig response = mapManagementClient.updateMapConfig(mapConfig, updateMask);
+   * }
+   * }
+ * + * @param mapConfig Required. The MapConfig to update. + *

The MapConfig's `name` field is used to identify the MapConfig to update. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @param updateMask Optional. The specific field to update for the MapConfig. If not specified, + * the MapConfig will be updated in its entirety. Valid fields are: + *

    + *
  • `display_name` + *
  • `description` + *
  • `map_features` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapConfig updateMapConfig(MapConfig mapConfig, FieldMask updateMask) { + UpdateMapConfigRequest request = + UpdateMapConfigRequest.newBuilder() + .setMapConfig(mapConfig) + .setUpdateMask(updateMask) + .build(); + return updateMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   UpdateMapConfigRequest request =
+   *       UpdateMapConfigRequest.newBuilder()
+   *           .setMapConfig(MapConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   MapConfig response = mapManagementClient.updateMapConfig(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 MapConfig updateMapConfig(UpdateMapConfigRequest request) { + return updateMapConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   UpdateMapConfigRequest request =
+   *       UpdateMapConfigRequest.newBuilder()
+   *           .setMapConfig(MapConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.updateMapConfigCallable().futureCall(request);
+   *   // Do something.
+   *   MapConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateMapConfigCallable() { + return stub.updateMapConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]");
+   *   boolean force = true;
+   *   mapManagementClient.deleteMapConfig(name, force);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapConfig to delete. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @param force Optional. If set to true, any MapContextConfigs from this MapConfig will also be + * deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMapConfig(MapConfigName name, boolean force) { + DeleteMapConfigRequest request = + DeleteMapConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + deleteMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString();
+   *   boolean force = true;
+   *   mapManagementClient.deleteMapConfig(name, force);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapConfig to delete. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @param force Optional. If set to true, any MapContextConfigs from this MapConfig will also be + * deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMapConfig(String name, boolean force) { + DeleteMapConfigRequest request = + DeleteMapConfigRequest.newBuilder().setName(name).setForce(force).build(); + deleteMapConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   DeleteMapConfigRequest request =
+   *       DeleteMapConfigRequest.newBuilder()
+   *           .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   mapManagementClient.deleteMapConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMapConfig(DeleteMapConfigRequest request) { + deleteMapConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   StyleConfig styleConfig = StyleConfig.newBuilder().build();
+   *   StyleConfig response = mapManagementClient.createStyleConfig(parent, styleConfig);
+   * }
+   * }
+ * + * @param parent Required. Parent project that will own the StyleConfig. Format: + * `projects/{project}` + * @param styleConfig Required. The StyleConfig to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StyleConfig createStyleConfig(ProjectName parent, StyleConfig styleConfig) { + CreateStyleConfigRequest request = + CreateStyleConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setStyleConfig(styleConfig) + .build(); + return createStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   StyleConfig styleConfig = StyleConfig.newBuilder().build();
+   *   StyleConfig response = mapManagementClient.createStyleConfig(parent, styleConfig);
+   * }
+   * }
+ * + * @param parent Required. Parent project that will own the StyleConfig. Format: + * `projects/{project}` + * @param styleConfig Required. The StyleConfig to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StyleConfig createStyleConfig(String parent, StyleConfig styleConfig) { + CreateStyleConfigRequest request = + CreateStyleConfigRequest.newBuilder().setParent(parent).setStyleConfig(styleConfig).build(); + return createStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   CreateStyleConfigRequest request =
+   *       CreateStyleConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setStyleConfig(StyleConfig.newBuilder().build())
+   *           .build();
+   *   StyleConfig response = mapManagementClient.createStyleConfig(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 StyleConfig createStyleConfig(CreateStyleConfigRequest request) { + return createStyleConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   CreateStyleConfigRequest request =
+   *       CreateStyleConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setStyleConfig(StyleConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.createStyleConfigCallable().futureCall(request);
+   *   // Do something.
+   *   StyleConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createStyleConfigCallable() { + return stub.createStyleConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]");
+   *   StyleConfig response = mapManagementClient.getStyleConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the StyleConfig. Format: + * `projects/{project}/styleConfigs/{style_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StyleConfig getStyleConfig(StyleConfigName name) { + GetStyleConfigRequest request = + GetStyleConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString();
+   *   StyleConfig response = mapManagementClient.getStyleConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the StyleConfig. Format: + * `projects/{project}/styleConfigs/{style_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StyleConfig getStyleConfig(String name) { + GetStyleConfigRequest request = GetStyleConfigRequest.newBuilder().setName(name).build(); + return getStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a StyleConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (StyleConfig element : mapManagementClient.listStyleConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent project that owns the StyleConfigs. Format: `projects/{project}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStyleConfigsPagedResponse listStyleConfigs(ProjectName parent) { + ListStyleConfigsRequest request = + ListStyleConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStyleConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists StyleConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (StyleConfig element : mapManagementClient.listStyleConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent project that owns the StyleConfigs. Format: `projects/{project}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStyleConfigsPagedResponse listStyleConfigs(String parent) { + ListStyleConfigsRequest request = + ListStyleConfigsRequest.newBuilder().setParent(parent).build(); + return listStyleConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists StyleConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListStyleConfigsRequest request =
+   *       ListStyleConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setView(StyleConfigView.forNumber(0))
+   *           .build();
+   *   for (StyleConfig element : mapManagementClient.listStyleConfigs(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 ListStyleConfigsPagedResponse listStyleConfigs(ListStyleConfigsRequest request) { + return listStyleConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists StyleConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListStyleConfigsRequest request =
+   *       ListStyleConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setView(StyleConfigView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.listStyleConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (StyleConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listStyleConfigsPagedCallable() { + return stub.listStyleConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists StyleConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListStyleConfigsRequest request =
+   *       ListStyleConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setView(StyleConfigView.forNumber(0))
+   *           .build();
+   *   while (true) {
+   *     ListStyleConfigsResponse response =
+   *         mapManagementClient.listStyleConfigsCallable().call(request);
+   *     for (StyleConfig element : response.getStyleConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listStyleConfigsCallable() { + return stub.listStyleConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   StyleConfig styleConfig = StyleConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   StyleConfig response = mapManagementClient.updateStyleConfig(styleConfig, updateMask);
+   * }
+   * }
+ * + * @param styleConfig Required. The StyleConfig to update. + *

The StyleConfig's `name` field is used to identify the StyleConfig to update. Format: + * `projects/{project}/styleConfigs/{style_config}` + * @param updateMask Optional. The list of fields to update. If not specified, the StyleConfig + * will be updated in its entirety. Valid fields are: + *

    + *
  • `display_name` + *
  • `description` + *
  • `json_style_sheet` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StyleConfig updateStyleConfig(StyleConfig styleConfig, FieldMask updateMask) { + UpdateStyleConfigRequest request = + UpdateStyleConfigRequest.newBuilder() + .setStyleConfig(styleConfig) + .setUpdateMask(updateMask) + .build(); + return updateStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   UpdateStyleConfigRequest request =
+   *       UpdateStyleConfigRequest.newBuilder()
+   *           .setStyleConfig(StyleConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   StyleConfig response = mapManagementClient.updateStyleConfig(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 StyleConfig updateStyleConfig(UpdateStyleConfigRequest request) { + return updateStyleConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   UpdateStyleConfigRequest request =
+   *       UpdateStyleConfigRequest.newBuilder()
+   *           .setStyleConfig(StyleConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.updateStyleConfigCallable().futureCall(request);
+   *   // Do something.
+   *   StyleConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateStyleConfigCallable() { + return stub.updateStyleConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]");
+   *   mapManagementClient.deleteStyleConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the StyleConfig to delete. Format: + * `projects/{project}/styleConfigs/{style_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteStyleConfig(StyleConfigName name) { + DeleteStyleConfigRequest request = + DeleteStyleConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString();
+   *   mapManagementClient.deleteStyleConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the StyleConfig to delete. Format: + * `projects/{project}/styleConfigs/{style_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteStyleConfig(String name) { + DeleteStyleConfigRequest request = DeleteStyleConfigRequest.newBuilder().setName(name).build(); + deleteStyleConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a StyleConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   DeleteStyleConfigRequest request =
+   *       DeleteStyleConfigRequest.newBuilder()
+   *           .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString())
+   *           .build();
+   *   mapManagementClient.deleteStyleConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteStyleConfig(DeleteStyleConfigRequest request) { + deleteStyleConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a StyleConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]");
+   *   MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build();
+   *   MapContextConfig response =
+   *       mapManagementClient.createMapContextConfig(parent, mapContextConfig);
+   * }
+   * }
+ * + * @param parent Required. Parent MapConfig that will own the MapContextConfig. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @param mapContextConfig Required. The MapContextConfig to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapContextConfig createMapContextConfig( + MapConfigName parent, MapContextConfig mapContextConfig) { + CreateMapContextConfigRequest request = + CreateMapContextConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMapContextConfig(mapContextConfig) + .build(); + return createMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString();
+   *   MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build();
+   *   MapContextConfig response =
+   *       mapManagementClient.createMapContextConfig(parent, mapContextConfig);
+   * }
+   * }
+ * + * @param parent Required. Parent MapConfig that will own the MapContextConfig. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @param mapContextConfig Required. The MapContextConfig to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapContextConfig createMapContextConfig( + String parent, MapContextConfig mapContextConfig) { + CreateMapContextConfigRequest request = + CreateMapContextConfigRequest.newBuilder() + .setParent(parent) + .setMapContextConfig(mapContextConfig) + .build(); + return createMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   CreateMapContextConfigRequest request =
+   *       CreateMapContextConfigRequest.newBuilder()
+   *           .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString())
+   *           .setMapContextConfig(MapContextConfig.newBuilder().build())
+   *           .build();
+   *   MapContextConfig response = mapManagementClient.createMapContextConfig(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 MapContextConfig createMapContextConfig(CreateMapContextConfigRequest request) { + return createMapContextConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MapContextConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapContextConfigName name =
+   *       MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
+   *   MapContextConfig response = mapManagementClient.getMapContextConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapContextConfig. Format: + * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapContextConfig getMapContextConfig(MapContextConfigName name) { + GetMapContextConfigRequest request = + GetMapContextConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String name =
+   *       MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]").toString();
+   *   MapContextConfig response = mapManagementClient.getMapContextConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapContextConfig. Format: + * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapContextConfig getMapContextConfig(String name) { + GetMapContextConfigRequest request = + GetMapContextConfigRequest.newBuilder().setName(name).build(); + return getMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   GetMapContextConfigRequest request =
+   *       GetMapContextConfigRequest.newBuilder()
+   *           .setName(
+   *               MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   MapContextConfig response = mapManagementClient.getMapContextConfig(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 MapContextConfig getMapContextConfig(GetMapContextConfigRequest request) { + return getMapContextConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a MapContextConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]");
+   *   for (MapContextConfig element :
+   *       mapManagementClient.listMapContextConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent MapConfig that owns the MapContextConfigs. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMapContextConfigsPagedResponse listMapContextConfigs(MapConfigName parent) { + ListMapContextConfigsRequest request = + ListMapContextConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMapContextConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapContextConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString();
+   *   for (MapContextConfig element :
+   *       mapManagementClient.listMapContextConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent MapConfig that owns the MapContextConfigs. Format: + * `projects/{project}/mapConfigs/{map_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMapContextConfigsPagedResponse listMapContextConfigs(String parent) { + ListMapContextConfigsRequest request = + ListMapContextConfigsRequest.newBuilder().setParent(parent).build(); + return listMapContextConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapContextConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListMapContextConfigsRequest request =
+   *       ListMapContextConfigsRequest.newBuilder()
+   *           .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (MapContextConfig element :
+   *       mapManagementClient.listMapContextConfigs(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 ListMapContextConfigsPagedResponse listMapContextConfigs( + ListMapContextConfigsRequest request) { + return listMapContextConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapContextConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListMapContextConfigsRequest request =
+   *       ListMapContextConfigsRequest.newBuilder()
+   *           .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.listMapContextConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MapContextConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMapContextConfigsPagedCallable() { + return stub.listMapContextConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MapContextConfigs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   ListMapContextConfigsRequest request =
+   *       ListMapContextConfigsRequest.newBuilder()
+   *           .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListMapContextConfigsResponse response =
+   *         mapManagementClient.listMapContextConfigsCallable().call(request);
+   *     for (MapContextConfig element : response.getMapContextConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMapContextConfigsCallable() { + return stub.listMapContextConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   MapContextConfig response =
+   *       mapManagementClient.updateMapContextConfig(mapContextConfig, updateMask);
+   * }
+   * }
+ * + * @param mapContextConfig Required. The MapContextConfig to update. + *

The MapContextConfig's `name` field is used to identify the MapContextConfig to update. + * Format: `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + * @param updateMask Optional. The list of fields to update. If not specified, the + * MapContextConfig will be updated in its entirety. Valid fields are: + *

    + *
  • `display_name` + *
  • `alias` + *
  • `map_variants` + *
  • `style_config` + *
  • `dataset` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MapContextConfig updateMapContextConfig( + MapContextConfig mapContextConfig, FieldMask updateMask) { + UpdateMapContextConfigRequest request = + UpdateMapContextConfigRequest.newBuilder() + .setMapContextConfig(mapContextConfig) + .setUpdateMask(updateMask) + .build(); + return updateMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   UpdateMapContextConfigRequest request =
+   *       UpdateMapContextConfigRequest.newBuilder()
+   *           .setMapContextConfig(MapContextConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   MapContextConfig response = mapManagementClient.updateMapContextConfig(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 MapContextConfig updateMapContextConfig(UpdateMapContextConfigRequest request) { + return updateMapContextConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   UpdateMapContextConfigRequest request =
+   *       UpdateMapContextConfigRequest.newBuilder()
+   *           .setMapContextConfig(MapContextConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.updateMapContextConfigCallable().futureCall(request);
+   *   // Do something.
+   *   MapContextConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateMapContextConfigCallable() { + return stub.updateMapContextConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   MapContextConfigName name =
+   *       MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
+   *   mapManagementClient.deleteMapContextConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapContextConfig to delete. Format: + * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMapContextConfig(MapContextConfigName name) { + DeleteMapContextConfigRequest request = + DeleteMapContextConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   String name =
+   *       MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]").toString();
+   *   mapManagementClient.deleteMapContextConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the MapContextConfig to delete. Format: + * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMapContextConfig(String name) { + DeleteMapContextConfigRequest request = + DeleteMapContextConfigRequest.newBuilder().setName(name).build(); + deleteMapContextConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   DeleteMapContextConfigRequest request =
+   *       DeleteMapContextConfigRequest.newBuilder()
+   *           .setName(
+   *               MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   mapManagementClient.deleteMapContextConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMapContextConfig(DeleteMapContextConfigRequest request) { + deleteMapContextConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MapContextConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+   *   DeleteMapContextConfigRequest request =
+   *       DeleteMapContextConfigRequest.newBuilder()
+   *           .setName(
+   *               MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       mapManagementClient.deleteMapContextConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteMapContextConfigCallable() { + return stub.deleteMapContextConfigCallable(); + } + + @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 ListMapConfigsPagedResponse + extends AbstractPagedListResponse< + ListMapConfigsRequest, + ListMapConfigsResponse, + MapConfig, + ListMapConfigsPage, + ListMapConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMapConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMapConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMapConfigsPagedResponse(ListMapConfigsPage page) { + super(page, ListMapConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMapConfigsPage + extends AbstractPage< + ListMapConfigsRequest, ListMapConfigsResponse, MapConfig, ListMapConfigsPage> { + + private ListMapConfigsPage( + PageContext context, + ListMapConfigsResponse response) { + super(context, response); + } + + private static ListMapConfigsPage createEmptyPage() { + return new ListMapConfigsPage(null, null); + } + + @Override + protected ListMapConfigsPage createPage( + PageContext context, + ListMapConfigsResponse response) { + return new ListMapConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMapConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMapConfigsRequest, + ListMapConfigsResponse, + MapConfig, + ListMapConfigsPage, + ListMapConfigsFixedSizeCollection> { + + private ListMapConfigsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMapConfigsFixedSizeCollection createEmptyCollection() { + return new ListMapConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListMapConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMapConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListStyleConfigsPagedResponse + extends AbstractPagedListResponse< + ListStyleConfigsRequest, + ListStyleConfigsResponse, + StyleConfig, + ListStyleConfigsPage, + ListStyleConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListStyleConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListStyleConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListStyleConfigsPagedResponse(ListStyleConfigsPage page) { + super(page, ListStyleConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListStyleConfigsPage + extends AbstractPage< + ListStyleConfigsRequest, ListStyleConfigsResponse, StyleConfig, ListStyleConfigsPage> { + + private ListStyleConfigsPage( + PageContext context, + ListStyleConfigsResponse response) { + super(context, response); + } + + private static ListStyleConfigsPage createEmptyPage() { + return new ListStyleConfigsPage(null, null); + } + + @Override + protected ListStyleConfigsPage createPage( + PageContext context, + ListStyleConfigsResponse response) { + return new ListStyleConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListStyleConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListStyleConfigsRequest, + ListStyleConfigsResponse, + StyleConfig, + ListStyleConfigsPage, + ListStyleConfigsFixedSizeCollection> { + + private ListStyleConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListStyleConfigsFixedSizeCollection createEmptyCollection() { + return new ListStyleConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListStyleConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListStyleConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMapContextConfigsPagedResponse + extends AbstractPagedListResponse< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + MapContextConfig, + ListMapContextConfigsPage, + ListMapContextConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMapContextConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMapContextConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMapContextConfigsPagedResponse(ListMapContextConfigsPage page) { + super(page, ListMapContextConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMapContextConfigsPage + extends AbstractPage< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + MapContextConfig, + ListMapContextConfigsPage> { + + private ListMapContextConfigsPage( + PageContext + context, + ListMapContextConfigsResponse response) { + super(context, response); + } + + private static ListMapContextConfigsPage createEmptyPage() { + return new ListMapContextConfigsPage(null, null); + } + + @Override + protected ListMapContextConfigsPage createPage( + PageContext + context, + ListMapContextConfigsResponse response) { + return new ListMapContextConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMapContextConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + MapContextConfig, + ListMapContextConfigsPage, + ListMapContextConfigsFixedSizeCollection> { + + private ListMapContextConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMapContextConfigsFixedSizeCollection createEmptyCollection() { + return new ListMapContextConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListMapContextConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMapContextConfigsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java new file mode 100644 index 000000000000..e44911cbffad --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java @@ -0,0 +1,386 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.maps.mapmanagement.v2beta.stub.MapManagementStubSettings; +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 MapManagementClient}. + * + *

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MapManagementSettings.Builder mapManagementSettingsBuilder = MapManagementSettings.newBuilder();
+ * mapManagementSettingsBuilder
+ *     .createMapConfigSettings()
+ *     .setRetrySettings(
+ *         mapManagementSettingsBuilder
+ *             .createMapConfigSettings()
+ *             .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());
+ * MapManagementSettings mapManagementSettings = mapManagementSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class MapManagementSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createMapConfig. */ + public UnaryCallSettings createMapConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).createMapConfigSettings(); + } + + /** Returns the object with the settings used for calls to getMapConfig. */ + public UnaryCallSettings getMapConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).getMapConfigSettings(); + } + + /** Returns the object with the settings used for calls to listMapConfigs. */ + public PagedCallSettings< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + listMapConfigsSettings() { + return ((MapManagementStubSettings) getStubSettings()).listMapConfigsSettings(); + } + + /** Returns the object with the settings used for calls to updateMapConfig. */ + public UnaryCallSettings updateMapConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).updateMapConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteMapConfig. */ + public UnaryCallSettings deleteMapConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).deleteMapConfigSettings(); + } + + /** Returns the object with the settings used for calls to createStyleConfig. */ + public UnaryCallSettings createStyleConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).createStyleConfigSettings(); + } + + /** Returns the object with the settings used for calls to getStyleConfig. */ + public UnaryCallSettings getStyleConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).getStyleConfigSettings(); + } + + /** Returns the object with the settings used for calls to listStyleConfigs. */ + public PagedCallSettings< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + listStyleConfigsSettings() { + return ((MapManagementStubSettings) getStubSettings()).listStyleConfigsSettings(); + } + + /** Returns the object with the settings used for calls to updateStyleConfig. */ + public UnaryCallSettings updateStyleConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).updateStyleConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteStyleConfig. */ + public UnaryCallSettings deleteStyleConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).deleteStyleConfigSettings(); + } + + /** Returns the object with the settings used for calls to createMapContextConfig. */ + public UnaryCallSettings + createMapContextConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).createMapContextConfigSettings(); + } + + /** Returns the object with the settings used for calls to getMapContextConfig. */ + public UnaryCallSettings + getMapContextConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).getMapContextConfigSettings(); + } + + /** Returns the object with the settings used for calls to listMapContextConfigs. */ + public PagedCallSettings< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + listMapContextConfigsSettings() { + return ((MapManagementStubSettings) getStubSettings()).listMapContextConfigsSettings(); + } + + /** Returns the object with the settings used for calls to updateMapContextConfig. */ + public UnaryCallSettings + updateMapContextConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).updateMapContextConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteMapContextConfig. */ + public UnaryCallSettings deleteMapContextConfigSettings() { + return ((MapManagementStubSettings) getStubSettings()).deleteMapContextConfigSettings(); + } + + public static final MapManagementSettings create(MapManagementStubSettings stub) + throws IOException { + return new MapManagementSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MapManagementStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MapManagementStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MapManagementStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MapManagementStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MapManagementStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return MapManagementStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MapManagementStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MapManagementStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MapManagementSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MapManagementSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MapManagementStubSettings.newBuilder(clientContext)); + } + + protected Builder(MapManagementSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MapManagementStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MapManagementStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(MapManagementStubSettings.newHttpJsonBuilder()); + } + + public MapManagementStubSettings.Builder getStubSettingsBuilder() { + return ((MapManagementStubSettings.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 createMapConfig. */ + public UnaryCallSettings.Builder createMapConfigSettings() { + return getStubSettingsBuilder().createMapConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getMapConfig. */ + public UnaryCallSettings.Builder getMapConfigSettings() { + return getStubSettingsBuilder().getMapConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listMapConfigs. */ + public PagedCallSettings.Builder< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + listMapConfigsSettings() { + return getStubSettingsBuilder().listMapConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to updateMapConfig. */ + public UnaryCallSettings.Builder updateMapConfigSettings() { + return getStubSettingsBuilder().updateMapConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMapConfig. */ + public UnaryCallSettings.Builder deleteMapConfigSettings() { + return getStubSettingsBuilder().deleteMapConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createStyleConfig. */ + public UnaryCallSettings.Builder + createStyleConfigSettings() { + return getStubSettingsBuilder().createStyleConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getStyleConfig. */ + public UnaryCallSettings.Builder getStyleConfigSettings() { + return getStubSettingsBuilder().getStyleConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listStyleConfigs. */ + public PagedCallSettings.Builder< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + listStyleConfigsSettings() { + return getStubSettingsBuilder().listStyleConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to updateStyleConfig. */ + public UnaryCallSettings.Builder + updateStyleConfigSettings() { + return getStubSettingsBuilder().updateStyleConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteStyleConfig. */ + public UnaryCallSettings.Builder deleteStyleConfigSettings() { + return getStubSettingsBuilder().deleteStyleConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createMapContextConfig. */ + public UnaryCallSettings.Builder + createMapContextConfigSettings() { + return getStubSettingsBuilder().createMapContextConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getMapContextConfig. */ + public UnaryCallSettings.Builder + getMapContextConfigSettings() { + return getStubSettingsBuilder().getMapContextConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listMapContextConfigs. */ + public PagedCallSettings.Builder< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + listMapContextConfigsSettings() { + return getStubSettingsBuilder().listMapContextConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to updateMapContextConfig. */ + public UnaryCallSettings.Builder + updateMapContextConfigSettings() { + return getStubSettingsBuilder().updateMapContextConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMapContextConfig. */ + public UnaryCallSettings.Builder + deleteMapContextConfigSettings() { + return getStubSettingsBuilder().deleteMapContextConfigSettings(); + } + + @Override + public MapManagementSettings build() throws IOException { + return new MapManagementSettings(this); + } + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/gapic_metadata.json b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/gapic_metadata.json new file mode 100644 index 000000000000..dcde6408039a --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/gapic_metadata.json @@ -0,0 +1,63 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.maps.mapmanagement.v2beta", + "libraryPackage": "com.google.maps.mapmanagement.v2beta", + "services": { + "MapManagement": { + "clients": { + "grpc": { + "libraryClient": "MapManagementClient", + "rpcs": { + "CreateMapConfig": { + "methods": ["createMapConfig", "createMapConfig", "createMapConfig", "createMapConfigCallable"] + }, + "CreateMapContextConfig": { + "methods": ["createMapContextConfig", "createMapContextConfig", "createMapContextConfig", "createMapContextConfigCallable"] + }, + "CreateStyleConfig": { + "methods": ["createStyleConfig", "createStyleConfig", "createStyleConfig", "createStyleConfigCallable"] + }, + "DeleteMapConfig": { + "methods": ["deleteMapConfig", "deleteMapConfig", "deleteMapConfig", "deleteMapConfigCallable"] + }, + "DeleteMapContextConfig": { + "methods": ["deleteMapContextConfig", "deleteMapContextConfig", "deleteMapContextConfig", "deleteMapContextConfigCallable"] + }, + "DeleteStyleConfig": { + "methods": ["deleteStyleConfig", "deleteStyleConfig", "deleteStyleConfig", "deleteStyleConfigCallable"] + }, + "GetMapConfig": { + "methods": ["getMapConfig", "getMapConfig", "getMapConfig", "getMapConfigCallable"] + }, + "GetMapContextConfig": { + "methods": ["getMapContextConfig", "getMapContextConfig", "getMapContextConfig", "getMapContextConfigCallable"] + }, + "GetStyleConfig": { + "methods": ["getStyleConfig", "getStyleConfig", "getStyleConfig", "getStyleConfigCallable"] + }, + "ListMapConfigs": { + "methods": ["listMapConfigs", "listMapConfigs", "listMapConfigs", "listMapConfigsPagedCallable", "listMapConfigsCallable"] + }, + "ListMapContextConfigs": { + "methods": ["listMapContextConfigs", "listMapContextConfigs", "listMapContextConfigs", "listMapContextConfigsPagedCallable", "listMapContextConfigsCallable"] + }, + "ListStyleConfigs": { + "methods": ["listStyleConfigs", "listStyleConfigs", "listStyleConfigs", "listStyleConfigsPagedCallable", "listStyleConfigsCallable"] + }, + "UpdateMapConfig": { + "methods": ["updateMapConfig", "updateMapConfig", "updateMapConfigCallable"] + }, + "UpdateMapContextConfig": { + "methods": ["updateMapContextConfig", "updateMapContextConfig", "updateMapContextConfigCallable"] + }, + "UpdateStyleConfig": { + "methods": ["updateStyleConfig", "updateStyleConfig", "updateStyleConfigCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/package-info.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/package-info.java new file mode 100644 index 000000000000..5971a1e87799 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/package-info.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 Map Management API + * + *

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

======================= MapManagementClient ======================= + * + *

Service Description: The Map Management API uses your inputs to create and manage Google Cloud + * based styling resources for Google Maps. + * + *

Using this API, you can can create and manage MapConfigs (Map IDs), StyleConfigs (JSON-based + * styling), and MapContextConfigs (associations between styles, datasets, and map variants). + * + *

This API offers features through three channels: + * + *

    + *
  • `v2alpha`: Experimental features. + *
  • `v2beta`: Preview features, recommended for early adoption. + *
  • `v2`: General Availability (GA) features. + *
+ * + *

Capabilities described here are generally available across both the v2alpha and v2beta + * endpoints. + * + *

Sample for MapManagementClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   MapConfig mapConfig = MapConfig.newBuilder().build();
+ *   MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.maps.mapmanagement.v2beta; + +import javax.annotation.Generated; diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/GrpcMapManagementCallableFactory.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/GrpcMapManagementCallableFactory.java new file mode 100644 index 000000000000..f21e27527ba3 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/GrpcMapManagementCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the MapManagement service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcMapManagementCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/GrpcMapManagementStub.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/GrpcMapManagementStub.java new file mode 100644 index 000000000000..71e0f4b6c77c --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/GrpcMapManagementStub.java @@ -0,0 +1,696 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the MapManagement service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcMapManagementStub extends MapManagementStub { + private static final MethodDescriptor + createMapConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/CreateMapConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMapConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MapConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMapConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/GetMapConfig") + .setRequestMarshaller(ProtoUtils.marshaller(GetMapConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MapConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listMapConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/ListMapConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMapConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMapConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMapConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/UpdateMapConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMapConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MapConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMapConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/DeleteMapConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMapConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createStyleConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/CreateStyleConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateStyleConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(StyleConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getStyleConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/GetStyleConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetStyleConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(StyleConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listStyleConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/ListStyleConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListStyleConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListStyleConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateStyleConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/UpdateStyleConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateStyleConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(StyleConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteStyleConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/DeleteStyleConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteStyleConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMapContextConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/CreateMapContextConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMapContextConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MapContextConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMapContextConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/GetMapContextConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMapContextConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MapContextConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listMapContextConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/ListMapContextConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMapContextConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMapContextConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMapContextConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/UpdateMapContextConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMapContextConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MapContextConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMapContextConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/DeleteMapContextConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMapContextConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable createMapConfigCallable; + private final UnaryCallable getMapConfigCallable; + private final UnaryCallable listMapConfigsCallable; + private final UnaryCallable + listMapConfigsPagedCallable; + private final UnaryCallable updateMapConfigCallable; + private final UnaryCallable deleteMapConfigCallable; + private final UnaryCallable createStyleConfigCallable; + private final UnaryCallable getStyleConfigCallable; + private final UnaryCallable + listStyleConfigsCallable; + private final UnaryCallable + listStyleConfigsPagedCallable; + private final UnaryCallable updateStyleConfigCallable; + private final UnaryCallable deleteStyleConfigCallable; + private final UnaryCallable + createMapContextConfigCallable; + private final UnaryCallable + getMapContextConfigCallable; + private final UnaryCallable + listMapContextConfigsCallable; + private final UnaryCallable + listMapContextConfigsPagedCallable; + private final UnaryCallable + updateMapContextConfigCallable; + private final UnaryCallable deleteMapContextConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMapManagementStub create(MapManagementStubSettings settings) + throws IOException { + return new GrpcMapManagementStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMapManagementStub create(ClientContext clientContext) throws IOException { + return new GrpcMapManagementStub(MapManagementStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMapManagementStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMapManagementStub( + MapManagementStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcMapManagementStub, 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 GrpcMapManagementStub(MapManagementStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcMapManagementCallableFactory()); + } + + /** + * Constructs an instance of GrpcMapManagementStub, 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 GrpcMapManagementStub( + MapManagementStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createMapConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMapConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getMapConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMapConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listMapConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listMapConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateMapConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMapConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("map_config.name", String.valueOf(request.getMapConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteMapConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMapConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createStyleConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createStyleConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getStyleConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getStyleConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listStyleConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listStyleConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateStyleConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateStyleConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "style_config.name", String.valueOf(request.getStyleConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteStyleConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteStyleConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createMapContextConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMapContextConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getMapContextConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMapContextConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listMapContextConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listMapContextConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateMapContextConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMapContextConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "map_context_config.name", + String.valueOf(request.getMapContextConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteMapContextConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMapContextConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createMapConfigCallable = + callableFactory.createUnaryCallable( + createMapConfigTransportSettings, settings.createMapConfigSettings(), clientContext); + this.getMapConfigCallable = + callableFactory.createUnaryCallable( + getMapConfigTransportSettings, settings.getMapConfigSettings(), clientContext); + this.listMapConfigsCallable = + callableFactory.createUnaryCallable( + listMapConfigsTransportSettings, settings.listMapConfigsSettings(), clientContext); + this.listMapConfigsPagedCallable = + callableFactory.createPagedCallable( + listMapConfigsTransportSettings, settings.listMapConfigsSettings(), clientContext); + this.updateMapConfigCallable = + callableFactory.createUnaryCallable( + updateMapConfigTransportSettings, settings.updateMapConfigSettings(), clientContext); + this.deleteMapConfigCallable = + callableFactory.createUnaryCallable( + deleteMapConfigTransportSettings, settings.deleteMapConfigSettings(), clientContext); + this.createStyleConfigCallable = + callableFactory.createUnaryCallable( + createStyleConfigTransportSettings, + settings.createStyleConfigSettings(), + clientContext); + this.getStyleConfigCallable = + callableFactory.createUnaryCallable( + getStyleConfigTransportSettings, settings.getStyleConfigSettings(), clientContext); + this.listStyleConfigsCallable = + callableFactory.createUnaryCallable( + listStyleConfigsTransportSettings, settings.listStyleConfigsSettings(), clientContext); + this.listStyleConfigsPagedCallable = + callableFactory.createPagedCallable( + listStyleConfigsTransportSettings, settings.listStyleConfigsSettings(), clientContext); + this.updateStyleConfigCallable = + callableFactory.createUnaryCallable( + updateStyleConfigTransportSettings, + settings.updateStyleConfigSettings(), + clientContext); + this.deleteStyleConfigCallable = + callableFactory.createUnaryCallable( + deleteStyleConfigTransportSettings, + settings.deleteStyleConfigSettings(), + clientContext); + this.createMapContextConfigCallable = + callableFactory.createUnaryCallable( + createMapContextConfigTransportSettings, + settings.createMapContextConfigSettings(), + clientContext); + this.getMapContextConfigCallable = + callableFactory.createUnaryCallable( + getMapContextConfigTransportSettings, + settings.getMapContextConfigSettings(), + clientContext); + this.listMapContextConfigsCallable = + callableFactory.createUnaryCallable( + listMapContextConfigsTransportSettings, + settings.listMapContextConfigsSettings(), + clientContext); + this.listMapContextConfigsPagedCallable = + callableFactory.createPagedCallable( + listMapContextConfigsTransportSettings, + settings.listMapContextConfigsSettings(), + clientContext); + this.updateMapContextConfigCallable = + callableFactory.createUnaryCallable( + updateMapContextConfigTransportSettings, + settings.updateMapContextConfigSettings(), + clientContext); + this.deleteMapContextConfigCallable = + callableFactory.createUnaryCallable( + deleteMapContextConfigTransportSettings, + settings.deleteMapContextConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createMapConfigCallable() { + return createMapConfigCallable; + } + + @Override + public UnaryCallable getMapConfigCallable() { + return getMapConfigCallable; + } + + @Override + public UnaryCallable listMapConfigsCallable() { + return listMapConfigsCallable; + } + + @Override + public UnaryCallable + listMapConfigsPagedCallable() { + return listMapConfigsPagedCallable; + } + + @Override + public UnaryCallable updateMapConfigCallable() { + return updateMapConfigCallable; + } + + @Override + public UnaryCallable deleteMapConfigCallable() { + return deleteMapConfigCallable; + } + + @Override + public UnaryCallable createStyleConfigCallable() { + return createStyleConfigCallable; + } + + @Override + public UnaryCallable getStyleConfigCallable() { + return getStyleConfigCallable; + } + + @Override + public UnaryCallable + listStyleConfigsCallable() { + return listStyleConfigsCallable; + } + + @Override + public UnaryCallable + listStyleConfigsPagedCallable() { + return listStyleConfigsPagedCallable; + } + + @Override + public UnaryCallable updateStyleConfigCallable() { + return updateStyleConfigCallable; + } + + @Override + public UnaryCallable deleteStyleConfigCallable() { + return deleteStyleConfigCallable; + } + + @Override + public UnaryCallable + createMapContextConfigCallable() { + return createMapContextConfigCallable; + } + + @Override + public UnaryCallable getMapContextConfigCallable() { + return getMapContextConfigCallable; + } + + @Override + public UnaryCallable + listMapContextConfigsCallable() { + return listMapContextConfigsCallable; + } + + @Override + public UnaryCallable + listMapContextConfigsPagedCallable() { + return listMapContextConfigsPagedCallable; + } + + @Override + public UnaryCallable + updateMapContextConfigCallable() { + return updateMapContextConfigCallable; + } + + @Override + public UnaryCallable deleteMapContextConfigCallable() { + return deleteMapContextConfigCallable; + } + + @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-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/HttpJsonMapManagementCallableFactory.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/HttpJsonMapManagementCallableFactory.java new file mode 100644 index 000000000000..af2b164248e1 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/HttpJsonMapManagementCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the MapManagement service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonMapManagementCallableFactory + 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-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/HttpJsonMapManagementStub.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/HttpJsonMapManagementStub.java new file mode 100644 index 000000000000..76463797d358 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/HttpJsonMapManagementStub.java @@ -0,0 +1,1118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest; +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 MapManagement service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonMapManagementStub extends MapManagementStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createMapConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/CreateMapConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*}/mapConfigs", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("mapConfig", request.getMapConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MapConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMapConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/GetMapConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=projects/*/mapConfigs/*}", + 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(MapConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMapConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/ListMapConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*}/mapConfigs", + 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(ListMapConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateMapConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/UpdateMapConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{mapConfig.name=projects/*/mapConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "mapConfig.name", request.getMapConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("mapConfig", request.getMapConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MapConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteMapConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/DeleteMapConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=projects/*/mapConfigs/*}", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createStyleConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/CreateStyleConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*}/styleConfigs", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("styleConfig", request.getStyleConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(StyleConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getStyleConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/GetStyleConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=projects/*/styleConfigs/*}", + 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(StyleConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listStyleConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/ListStyleConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*}/styleConfigs", + 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, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListStyleConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateStyleConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/UpdateStyleConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{styleConfig.name=projects/*/styleConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "styleConfig.name", request.getStyleConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("styleConfig", request.getStyleConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(StyleConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteStyleConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.maps.mapmanagement.v2beta.MapManagement/DeleteStyleConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=projects/*/styleConfigs/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createMapContextConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/CreateMapContextConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*/mapConfigs/*}/mapContextConfigs", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("mapContextConfig", request.getMapContextConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MapContextConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMapContextConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/GetMapContextConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=projects/*/mapConfigs/*/mapContextConfigs/*}", + 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(MapContextConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListMapContextConfigsRequest, ListMapContextConfigsResponse> + listMapContextConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/ListMapContextConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*/mapConfigs/*}/mapContextConfigs", + 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(ListMapContextConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateMapContextConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/UpdateMapContextConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{mapContextConfig.name=projects/*/mapConfigs/*/mapContextConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "mapContextConfig.name", + request.getMapContextConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("mapContextConfig", request.getMapContextConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MapContextConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteMapContextConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.maps.mapmanagement.v2beta.MapManagement/DeleteMapContextConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=projects/*/mapConfigs/*/mapContextConfigs/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createMapConfigCallable; + private final UnaryCallable getMapConfigCallable; + private final UnaryCallable listMapConfigsCallable; + private final UnaryCallable + listMapConfigsPagedCallable; + private final UnaryCallable updateMapConfigCallable; + private final UnaryCallable deleteMapConfigCallable; + private final UnaryCallable createStyleConfigCallable; + private final UnaryCallable getStyleConfigCallable; + private final UnaryCallable + listStyleConfigsCallable; + private final UnaryCallable + listStyleConfigsPagedCallable; + private final UnaryCallable updateStyleConfigCallable; + private final UnaryCallable deleteStyleConfigCallable; + private final UnaryCallable + createMapContextConfigCallable; + private final UnaryCallable + getMapContextConfigCallable; + private final UnaryCallable + listMapContextConfigsCallable; + private final UnaryCallable + listMapContextConfigsPagedCallable; + private final UnaryCallable + updateMapContextConfigCallable; + private final UnaryCallable deleteMapContextConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonMapManagementStub create(MapManagementStubSettings settings) + throws IOException { + return new HttpJsonMapManagementStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonMapManagementStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonMapManagementStub( + MapManagementStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonMapManagementStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonMapManagementStub( + MapManagementStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonMapManagementStub, 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 HttpJsonMapManagementStub( + MapManagementStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonMapManagementCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonMapManagementStub, 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 HttpJsonMapManagementStub( + MapManagementStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createMapConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMapConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getMapConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMapConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listMapConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMapConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateMapConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMapConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("map_config.name", String.valueOf(request.getMapConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteMapConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMapConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createStyleConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createStyleConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getStyleConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getStyleConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listStyleConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listStyleConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateStyleConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateStyleConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "style_config.name", String.valueOf(request.getStyleConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteStyleConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteStyleConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createMapContextConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMapContextConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getMapContextConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMapContextConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listMapContextConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMapContextConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateMapContextConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMapContextConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "map_context_config.name", + String.valueOf(request.getMapContextConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteMapContextConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMapContextConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createMapConfigCallable = + callableFactory.createUnaryCallable( + createMapConfigTransportSettings, settings.createMapConfigSettings(), clientContext); + this.getMapConfigCallable = + callableFactory.createUnaryCallable( + getMapConfigTransportSettings, settings.getMapConfigSettings(), clientContext); + this.listMapConfigsCallable = + callableFactory.createUnaryCallable( + listMapConfigsTransportSettings, settings.listMapConfigsSettings(), clientContext); + this.listMapConfigsPagedCallable = + callableFactory.createPagedCallable( + listMapConfigsTransportSettings, settings.listMapConfigsSettings(), clientContext); + this.updateMapConfigCallable = + callableFactory.createUnaryCallable( + updateMapConfigTransportSettings, settings.updateMapConfigSettings(), clientContext); + this.deleteMapConfigCallable = + callableFactory.createUnaryCallable( + deleteMapConfigTransportSettings, settings.deleteMapConfigSettings(), clientContext); + this.createStyleConfigCallable = + callableFactory.createUnaryCallable( + createStyleConfigTransportSettings, + settings.createStyleConfigSettings(), + clientContext); + this.getStyleConfigCallable = + callableFactory.createUnaryCallable( + getStyleConfigTransportSettings, settings.getStyleConfigSettings(), clientContext); + this.listStyleConfigsCallable = + callableFactory.createUnaryCallable( + listStyleConfigsTransportSettings, settings.listStyleConfigsSettings(), clientContext); + this.listStyleConfigsPagedCallable = + callableFactory.createPagedCallable( + listStyleConfigsTransportSettings, settings.listStyleConfigsSettings(), clientContext); + this.updateStyleConfigCallable = + callableFactory.createUnaryCallable( + updateStyleConfigTransportSettings, + settings.updateStyleConfigSettings(), + clientContext); + this.deleteStyleConfigCallable = + callableFactory.createUnaryCallable( + deleteStyleConfigTransportSettings, + settings.deleteStyleConfigSettings(), + clientContext); + this.createMapContextConfigCallable = + callableFactory.createUnaryCallable( + createMapContextConfigTransportSettings, + settings.createMapContextConfigSettings(), + clientContext); + this.getMapContextConfigCallable = + callableFactory.createUnaryCallable( + getMapContextConfigTransportSettings, + settings.getMapContextConfigSettings(), + clientContext); + this.listMapContextConfigsCallable = + callableFactory.createUnaryCallable( + listMapContextConfigsTransportSettings, + settings.listMapContextConfigsSettings(), + clientContext); + this.listMapContextConfigsPagedCallable = + callableFactory.createPagedCallable( + listMapContextConfigsTransportSettings, + settings.listMapContextConfigsSettings(), + clientContext); + this.updateMapContextConfigCallable = + callableFactory.createUnaryCallable( + updateMapContextConfigTransportSettings, + settings.updateMapContextConfigSettings(), + clientContext); + this.deleteMapContextConfigCallable = + callableFactory.createUnaryCallable( + deleteMapContextConfigTransportSettings, + settings.deleteMapContextConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createMapConfigMethodDescriptor); + methodDescriptors.add(getMapConfigMethodDescriptor); + methodDescriptors.add(listMapConfigsMethodDescriptor); + methodDescriptors.add(updateMapConfigMethodDescriptor); + methodDescriptors.add(deleteMapConfigMethodDescriptor); + methodDescriptors.add(createStyleConfigMethodDescriptor); + methodDescriptors.add(getStyleConfigMethodDescriptor); + methodDescriptors.add(listStyleConfigsMethodDescriptor); + methodDescriptors.add(updateStyleConfigMethodDescriptor); + methodDescriptors.add(deleteStyleConfigMethodDescriptor); + methodDescriptors.add(createMapContextConfigMethodDescriptor); + methodDescriptors.add(getMapContextConfigMethodDescriptor); + methodDescriptors.add(listMapContextConfigsMethodDescriptor); + methodDescriptors.add(updateMapContextConfigMethodDescriptor); + methodDescriptors.add(deleteMapContextConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createMapConfigCallable() { + return createMapConfigCallable; + } + + @Override + public UnaryCallable getMapConfigCallable() { + return getMapConfigCallable; + } + + @Override + public UnaryCallable listMapConfigsCallable() { + return listMapConfigsCallable; + } + + @Override + public UnaryCallable + listMapConfigsPagedCallable() { + return listMapConfigsPagedCallable; + } + + @Override + public UnaryCallable updateMapConfigCallable() { + return updateMapConfigCallable; + } + + @Override + public UnaryCallable deleteMapConfigCallable() { + return deleteMapConfigCallable; + } + + @Override + public UnaryCallable createStyleConfigCallable() { + return createStyleConfigCallable; + } + + @Override + public UnaryCallable getStyleConfigCallable() { + return getStyleConfigCallable; + } + + @Override + public UnaryCallable + listStyleConfigsCallable() { + return listStyleConfigsCallable; + } + + @Override + public UnaryCallable + listStyleConfigsPagedCallable() { + return listStyleConfigsPagedCallable; + } + + @Override + public UnaryCallable updateStyleConfigCallable() { + return updateStyleConfigCallable; + } + + @Override + public UnaryCallable deleteStyleConfigCallable() { + return deleteStyleConfigCallable; + } + + @Override + public UnaryCallable + createMapContextConfigCallable() { + return createMapContextConfigCallable; + } + + @Override + public UnaryCallable getMapContextConfigCallable() { + return getMapContextConfigCallable; + } + + @Override + public UnaryCallable + listMapContextConfigsCallable() { + return listMapContextConfigsCallable; + } + + @Override + public UnaryCallable + listMapContextConfigsPagedCallable() { + return listMapContextConfigsPagedCallable; + } + + @Override + public UnaryCallable + updateMapContextConfigCallable() { + return updateMapContextConfigCallable; + } + + @Override + public UnaryCallable deleteMapContextConfigCallable() { + return deleteMapContextConfigCallable; + } + + @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-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStub.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStub.java new file mode 100644 index 000000000000..c2b328a2e974 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStub.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MapManagement service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class MapManagementStub implements BackgroundResource { + + public UnaryCallable createMapConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createMapConfigCallable()"); + } + + public UnaryCallable getMapConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getMapConfigCallable()"); + } + + public UnaryCallable + listMapConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMapConfigsPagedCallable()"); + } + + public UnaryCallable listMapConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listMapConfigsCallable()"); + } + + public UnaryCallable updateMapConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateMapConfigCallable()"); + } + + public UnaryCallable deleteMapConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMapConfigCallable()"); + } + + public UnaryCallable createStyleConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createStyleConfigCallable()"); + } + + public UnaryCallable getStyleConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getStyleConfigCallable()"); + } + + public UnaryCallable + listStyleConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listStyleConfigsPagedCallable()"); + } + + public UnaryCallable + listStyleConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listStyleConfigsCallable()"); + } + + public UnaryCallable updateStyleConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateStyleConfigCallable()"); + } + + public UnaryCallable deleteStyleConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteStyleConfigCallable()"); + } + + public UnaryCallable + createMapContextConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createMapContextConfigCallable()"); + } + + public UnaryCallable getMapContextConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getMapContextConfigCallable()"); + } + + public UnaryCallable + listMapContextConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMapContextConfigsPagedCallable()"); + } + + public UnaryCallable + listMapContextConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listMapContextConfigsCallable()"); + } + + public UnaryCallable + updateMapContextConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateMapContextConfigCallable()"); + } + + public UnaryCallable deleteMapContextConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMapContextConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java new file mode 100644 index 000000000000..0ce607cd2e35 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java @@ -0,0 +1,911 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +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.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest; +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 MapManagementStub}. + * + *

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MapManagementStubSettings.Builder mapManagementSettingsBuilder =
+ *     MapManagementStubSettings.newBuilder();
+ * mapManagementSettingsBuilder
+ *     .createMapConfigSettings()
+ *     .setRetrySettings(
+ *         mapManagementSettingsBuilder
+ *             .createMapConfigSettings()
+ *             .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());
+ * MapManagementStubSettings mapManagementSettings = mapManagementSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class MapManagementStubSettings 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 UnaryCallSettings createMapConfigSettings; + private final UnaryCallSettings getMapConfigSettings; + private final PagedCallSettings< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + listMapConfigsSettings; + private final UnaryCallSettings updateMapConfigSettings; + private final UnaryCallSettings deleteMapConfigSettings; + private final UnaryCallSettings createStyleConfigSettings; + private final UnaryCallSettings getStyleConfigSettings; + private final PagedCallSettings< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + listStyleConfigsSettings; + private final UnaryCallSettings updateStyleConfigSettings; + private final UnaryCallSettings deleteStyleConfigSettings; + private final UnaryCallSettings + createMapContextConfigSettings; + private final UnaryCallSettings + getMapContextConfigSettings; + private final PagedCallSettings< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + listMapContextConfigsSettings; + private final UnaryCallSettings + updateMapContextConfigSettings; + private final UnaryCallSettings + deleteMapContextConfigSettings; + + private static final PagedListDescriptor + LIST_MAP_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMapConfigsRequest injectToken(ListMapConfigsRequest payload, String token) { + return ListMapConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMapConfigsRequest injectPageSize( + ListMapConfigsRequest payload, int pageSize) { + return ListMapConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMapConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMapConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMapConfigsResponse payload) { + return payload.getMapConfigsList(); + } + }; + + private static final PagedListDescriptor< + ListStyleConfigsRequest, ListStyleConfigsResponse, StyleConfig> + LIST_STYLE_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListStyleConfigsRequest, ListStyleConfigsResponse, StyleConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListStyleConfigsRequest injectToken( + ListStyleConfigsRequest payload, String token) { + return ListStyleConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListStyleConfigsRequest injectPageSize( + ListStyleConfigsRequest payload, int pageSize) { + return ListStyleConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListStyleConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListStyleConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListStyleConfigsResponse payload) { + return payload.getStyleConfigsList(); + } + }; + + private static final PagedListDescriptor< + ListMapContextConfigsRequest, ListMapContextConfigsResponse, MapContextConfig> + LIST_MAP_CONTEXT_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMapContextConfigsRequest, ListMapContextConfigsResponse, MapContextConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMapContextConfigsRequest injectToken( + ListMapContextConfigsRequest payload, String token) { + return ListMapContextConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMapContextConfigsRequest injectPageSize( + ListMapContextConfigsRequest payload, int pageSize) { + return ListMapContextConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMapContextConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMapContextConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMapContextConfigsResponse payload) { + return payload.getMapContextConfigsList(); + } + }; + + private static final PagedListResponseFactory< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + LIST_MAP_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMapConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_MAP_CONFIGS_PAGE_STR_DESC, request, context); + return ListMapConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + LIST_STYLE_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListStyleConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_STYLE_CONFIGS_PAGE_STR_DESC, request, context); + return ListStyleConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + LIST_MAP_CONTEXT_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMapContextConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMapContextConfigsRequest, ListMapContextConfigsResponse, MapContextConfig> + pageContext = + PageContext.create( + callable, LIST_MAP_CONTEXT_CONFIGS_PAGE_STR_DESC, request, context); + return ListMapContextConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createMapConfig. */ + public UnaryCallSettings createMapConfigSettings() { + return createMapConfigSettings; + } + + /** Returns the object with the settings used for calls to getMapConfig. */ + public UnaryCallSettings getMapConfigSettings() { + return getMapConfigSettings; + } + + /** Returns the object with the settings used for calls to listMapConfigs. */ + public PagedCallSettings< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + listMapConfigsSettings() { + return listMapConfigsSettings; + } + + /** Returns the object with the settings used for calls to updateMapConfig. */ + public UnaryCallSettings updateMapConfigSettings() { + return updateMapConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteMapConfig. */ + public UnaryCallSettings deleteMapConfigSettings() { + return deleteMapConfigSettings; + } + + /** Returns the object with the settings used for calls to createStyleConfig. */ + public UnaryCallSettings createStyleConfigSettings() { + return createStyleConfigSettings; + } + + /** Returns the object with the settings used for calls to getStyleConfig. */ + public UnaryCallSettings getStyleConfigSettings() { + return getStyleConfigSettings; + } + + /** Returns the object with the settings used for calls to listStyleConfigs. */ + public PagedCallSettings< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + listStyleConfigsSettings() { + return listStyleConfigsSettings; + } + + /** Returns the object with the settings used for calls to updateStyleConfig. */ + public UnaryCallSettings updateStyleConfigSettings() { + return updateStyleConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteStyleConfig. */ + public UnaryCallSettings deleteStyleConfigSettings() { + return deleteStyleConfigSettings; + } + + /** Returns the object with the settings used for calls to createMapContextConfig. */ + public UnaryCallSettings + createMapContextConfigSettings() { + return createMapContextConfigSettings; + } + + /** Returns the object with the settings used for calls to getMapContextConfig. */ + public UnaryCallSettings + getMapContextConfigSettings() { + return getMapContextConfigSettings; + } + + /** Returns the object with the settings used for calls to listMapContextConfigs. */ + public PagedCallSettings< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + listMapContextConfigsSettings() { + return listMapContextConfigsSettings; + } + + /** Returns the object with the settings used for calls to updateMapContextConfig. */ + public UnaryCallSettings + updateMapContextConfigSettings() { + return updateMapContextConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteMapContextConfig. */ + public UnaryCallSettings deleteMapContextConfigSettings() { + return deleteMapContextConfigSettings; + } + + public MapManagementStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMapManagementStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonMapManagementStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "mapmanagement"; + } + + /** 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 "mapmanagement.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "mapmanagement.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MapManagementStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MapManagementStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MapManagementStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MapManagementStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createMapConfigSettings = settingsBuilder.createMapConfigSettings().build(); + getMapConfigSettings = settingsBuilder.getMapConfigSettings().build(); + listMapConfigsSettings = settingsBuilder.listMapConfigsSettings().build(); + updateMapConfigSettings = settingsBuilder.updateMapConfigSettings().build(); + deleteMapConfigSettings = settingsBuilder.deleteMapConfigSettings().build(); + createStyleConfigSettings = settingsBuilder.createStyleConfigSettings().build(); + getStyleConfigSettings = settingsBuilder.getStyleConfigSettings().build(); + listStyleConfigsSettings = settingsBuilder.listStyleConfigsSettings().build(); + updateStyleConfigSettings = settingsBuilder.updateStyleConfigSettings().build(); + deleteStyleConfigSettings = settingsBuilder.deleteStyleConfigSettings().build(); + createMapContextConfigSettings = settingsBuilder.createMapContextConfigSettings().build(); + getMapContextConfigSettings = settingsBuilder.getMapContextConfigSettings().build(); + listMapContextConfigsSettings = settingsBuilder.listMapContextConfigsSettings().build(); + updateMapContextConfigSettings = settingsBuilder.updateMapContextConfigSettings().build(); + deleteMapContextConfigSettings = settingsBuilder.deleteMapContextConfigSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.maps:google-maps-mapmanagement") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for MapManagementStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createMapConfigSettings; + private final UnaryCallSettings.Builder getMapConfigSettings; + private final PagedCallSettings.Builder< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + listMapConfigsSettings; + private final UnaryCallSettings.Builder + updateMapConfigSettings; + private final UnaryCallSettings.Builder deleteMapConfigSettings; + private final UnaryCallSettings.Builder + createStyleConfigSettings; + private final UnaryCallSettings.Builder + getStyleConfigSettings; + private final PagedCallSettings.Builder< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + listStyleConfigsSettings; + private final UnaryCallSettings.Builder + updateStyleConfigSettings; + private final UnaryCallSettings.Builder + deleteStyleConfigSettings; + private final UnaryCallSettings.Builder + createMapContextConfigSettings; + private final UnaryCallSettings.Builder + getMapContextConfigSettings; + private final PagedCallSettings.Builder< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + listMapContextConfigsSettings; + private final UnaryCallSettings.Builder + updateMapContextConfigSettings; + private final UnaryCallSettings.Builder + deleteMapContextConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createMapConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getMapConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMapConfigsSettings = PagedCallSettings.newBuilder(LIST_MAP_CONFIGS_PAGE_STR_FACT); + updateMapConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMapConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createStyleConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getStyleConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listStyleConfigsSettings = PagedCallSettings.newBuilder(LIST_STYLE_CONFIGS_PAGE_STR_FACT); + updateStyleConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteStyleConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMapContextConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getMapContextConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMapContextConfigsSettings = + PagedCallSettings.newBuilder(LIST_MAP_CONTEXT_CONFIGS_PAGE_STR_FACT); + updateMapContextConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMapContextConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createMapConfigSettings, + getMapConfigSettings, + listMapConfigsSettings, + updateMapConfigSettings, + deleteMapConfigSettings, + createStyleConfigSettings, + getStyleConfigSettings, + listStyleConfigsSettings, + updateStyleConfigSettings, + deleteStyleConfigSettings, + createMapContextConfigSettings, + getMapContextConfigSettings, + listMapContextConfigsSettings, + updateMapContextConfigSettings, + deleteMapContextConfigSettings); + initDefaults(this); + } + + protected Builder(MapManagementStubSettings settings) { + super(settings); + + createMapConfigSettings = settings.createMapConfigSettings.toBuilder(); + getMapConfigSettings = settings.getMapConfigSettings.toBuilder(); + listMapConfigsSettings = settings.listMapConfigsSettings.toBuilder(); + updateMapConfigSettings = settings.updateMapConfigSettings.toBuilder(); + deleteMapConfigSettings = settings.deleteMapConfigSettings.toBuilder(); + createStyleConfigSettings = settings.createStyleConfigSettings.toBuilder(); + getStyleConfigSettings = settings.getStyleConfigSettings.toBuilder(); + listStyleConfigsSettings = settings.listStyleConfigsSettings.toBuilder(); + updateStyleConfigSettings = settings.updateStyleConfigSettings.toBuilder(); + deleteStyleConfigSettings = settings.deleteStyleConfigSettings.toBuilder(); + createMapContextConfigSettings = settings.createMapContextConfigSettings.toBuilder(); + getMapContextConfigSettings = settings.getMapContextConfigSettings.toBuilder(); + listMapContextConfigsSettings = settings.listMapContextConfigsSettings.toBuilder(); + updateMapContextConfigSettings = settings.updateMapContextConfigSettings.toBuilder(); + deleteMapContextConfigSettings = settings.deleteMapContextConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createMapConfigSettings, + getMapConfigSettings, + listMapConfigsSettings, + updateMapConfigSettings, + deleteMapConfigSettings, + createStyleConfigSettings, + getStyleConfigSettings, + listStyleConfigsSettings, + updateStyleConfigSettings, + deleteStyleConfigSettings, + createMapContextConfigSettings, + getMapContextConfigSettings, + listMapContextConfigsSettings, + updateMapContextConfigSettings, + deleteMapContextConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createMapConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMapConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMapConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMapConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMapConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createStyleConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getStyleConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listStyleConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateStyleConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteStyleConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMapContextConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMapContextConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMapContextConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMapContextConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMapContextConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createMapConfig. */ + public UnaryCallSettings.Builder createMapConfigSettings() { + return createMapConfigSettings; + } + + /** Returns the builder for the settings used for calls to getMapConfig. */ + public UnaryCallSettings.Builder getMapConfigSettings() { + return getMapConfigSettings; + } + + /** Returns the builder for the settings used for calls to listMapConfigs. */ + public PagedCallSettings.Builder< + ListMapConfigsRequest, ListMapConfigsResponse, ListMapConfigsPagedResponse> + listMapConfigsSettings() { + return listMapConfigsSettings; + } + + /** Returns the builder for the settings used for calls to updateMapConfig. */ + public UnaryCallSettings.Builder updateMapConfigSettings() { + return updateMapConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteMapConfig. */ + public UnaryCallSettings.Builder deleteMapConfigSettings() { + return deleteMapConfigSettings; + } + + /** Returns the builder for the settings used for calls to createStyleConfig. */ + public UnaryCallSettings.Builder + createStyleConfigSettings() { + return createStyleConfigSettings; + } + + /** Returns the builder for the settings used for calls to getStyleConfig. */ + public UnaryCallSettings.Builder getStyleConfigSettings() { + return getStyleConfigSettings; + } + + /** Returns the builder for the settings used for calls to listStyleConfigs. */ + public PagedCallSettings.Builder< + ListStyleConfigsRequest, ListStyleConfigsResponse, ListStyleConfigsPagedResponse> + listStyleConfigsSettings() { + return listStyleConfigsSettings; + } + + /** Returns the builder for the settings used for calls to updateStyleConfig. */ + public UnaryCallSettings.Builder + updateStyleConfigSettings() { + return updateStyleConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteStyleConfig. */ + public UnaryCallSettings.Builder deleteStyleConfigSettings() { + return deleteStyleConfigSettings; + } + + /** Returns the builder for the settings used for calls to createMapContextConfig. */ + public UnaryCallSettings.Builder + createMapContextConfigSettings() { + return createMapContextConfigSettings; + } + + /** Returns the builder for the settings used for calls to getMapContextConfig. */ + public UnaryCallSettings.Builder + getMapContextConfigSettings() { + return getMapContextConfigSettings; + } + + /** Returns the builder for the settings used for calls to listMapContextConfigs. */ + public PagedCallSettings.Builder< + ListMapContextConfigsRequest, + ListMapContextConfigsResponse, + ListMapContextConfigsPagedResponse> + listMapContextConfigsSettings() { + return listMapContextConfigsSettings; + } + + /** Returns the builder for the settings used for calls to updateMapContextConfig. */ + public UnaryCallSettings.Builder + updateMapContextConfigSettings() { + return updateMapContextConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteMapContextConfig. */ + public UnaryCallSettings.Builder + deleteMapContextConfigSettings() { + return deleteMapContextConfigSettings; + } + + @Override + public MapManagementStubSettings build() throws IOException { + return new MapManagementStubSettings(this); + } + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java new file mode 100644 index 000000000000..a30619283945 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-maps-mapmanagement:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/resources/META-INF/native-image/com.google.maps.mapmanagement.v2beta/reflect-config.json b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/resources/META-INF/native-image/com.google.maps.mapmanagement.v2beta/reflect-config.json new file mode 100644 index 000000000000..99ffe7be9dc7 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/resources/META-INF/native-image/com.google.maps.mapmanagement.v2beta/reflect-config.json @@ -0,0 +1,1775 @@ +[ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "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.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.GetMapConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.GetMapConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapContextConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapContextConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapContextConfig$MapVariant", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapFeatures$SimpleFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.MapRenderingType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.StyleConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.StyleConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.StyleConfigView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest$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$EnforceNamingStyle", + "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$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "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$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$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$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MapManagementClientHttpJsonTest.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MapManagementClientHttpJsonTest.java new file mode 100644 index 000000000000..918b24732b18 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MapManagementClientHttpJsonTest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +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.common.collect.Lists; +import com.google.maps.mapmanagement.v2beta.stub.HttpJsonMapManagementStub; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MapManagementClientHttpJsonTest { + private static MockHttpService mockService; + private static MapManagementClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonMapManagementStub.getMethodDescriptors(), + MapManagementSettings.getDefaultEndpoint()); + MapManagementSettings settings = + MapManagementSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + MapManagementSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MapManagementClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createMapConfigTest() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + MapConfig mapConfig = MapConfig.newBuilder().build(); + + MapConfig actualResponse = client.createMapConfig(parent, mapConfig); + 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 createMapConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + MapConfig mapConfig = MapConfig.newBuilder().build(); + client.createMapConfig(parent, mapConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMapConfigTest2() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + MapConfig mapConfig = MapConfig.newBuilder().build(); + + MapConfig actualResponse = client.createMapConfig(parent, mapConfig); + 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 createMapConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + MapConfig mapConfig = MapConfig.newBuilder().build(); + client.createMapConfig(parent, mapConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapConfigTest() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + + MapConfig actualResponse = client.getMapConfig(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 getMapConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + client.getMapConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapConfigTest2() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7231/mapConfigs/mapConfig-7231"; + + MapConfig actualResponse = client.getMapConfig(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 getMapConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7231/mapConfigs/mapConfig-7231"; + client.getMapConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapConfigsTest() throws Exception { + MapConfig responsesElement = MapConfig.newBuilder().build(); + ListMapConfigsResponse expectedResponse = + ListMapConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListMapConfigsPagedResponse pagedListResponse = client.listMapConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapConfigsList().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 listMapConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listMapConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapConfigsTest2() throws Exception { + MapConfig responsesElement = MapConfig.newBuilder().build(); + ListMapConfigsResponse expectedResponse = + ListMapConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListMapConfigsPagedResponse pagedListResponse = client.listMapConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapConfigsList().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 listMapConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listMapConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMapConfigTest() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + MapConfig mapConfig = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MapConfig actualResponse = client.updateMapConfig(mapConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateMapConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapConfig mapConfig = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMapConfig(mapConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + boolean force = true; + + client.deleteMapConfig(name, force); + + 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 deleteMapConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + boolean force = true; + client.deleteMapConfig(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7231/mapConfigs/mapConfig-7231"; + boolean force = true; + + client.deleteMapConfig(name, force); + + 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 deleteMapConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7231/mapConfigs/mapConfig-7231"; + boolean force = true; + client.deleteMapConfig(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createStyleConfigTest() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + + StyleConfig actualResponse = client.createStyleConfig(parent, styleConfig); + 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 createStyleConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + client.createStyleConfig(parent, styleConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createStyleConfigTest2() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + + StyleConfig actualResponse = client.createStyleConfig(parent, styleConfig); + 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 createStyleConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + client.createStyleConfig(parent, styleConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStyleConfigTest() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + + StyleConfig actualResponse = client.getStyleConfig(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 getStyleConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + client.getStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStyleConfigTest2() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1754/styleConfigs/styleConfig-1754"; + + StyleConfig actualResponse = client.getStyleConfig(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 getStyleConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1754/styleConfigs/styleConfig-1754"; + client.getStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStyleConfigsTest() throws Exception { + StyleConfig responsesElement = StyleConfig.newBuilder().build(); + ListStyleConfigsResponse expectedResponse = + ListStyleConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllStyleConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListStyleConfigsPagedResponse pagedListResponse = client.listStyleConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStyleConfigsList().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 listStyleConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listStyleConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStyleConfigsTest2() throws Exception { + StyleConfig responsesElement = StyleConfig.newBuilder().build(); + ListStyleConfigsResponse expectedResponse = + ListStyleConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllStyleConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListStyleConfigsPagedResponse pagedListResponse = client.listStyleConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStyleConfigsList().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 listStyleConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listStyleConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateStyleConfigTest() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + StyleConfig styleConfig = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + StyleConfig actualResponse = client.updateStyleConfig(styleConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateStyleConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StyleConfig styleConfig = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateStyleConfig(styleConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteStyleConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + + client.deleteStyleConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteStyleConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + client.deleteStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteStyleConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1754/styleConfigs/styleConfig-1754"; + + client.deleteStyleConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteStyleConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1754/styleConfigs/styleConfig-1754"; + client.deleteStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMapContextConfigTest() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + + MapContextConfig actualResponse = client.createMapContextConfig(parent, mapContextConfig); + 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 createMapContextConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + client.createMapContextConfig(parent, mapContextConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMapContextConfigTest2() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7760/mapConfigs/mapConfig-7760"; + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + + MapContextConfig actualResponse = client.createMapContextConfig(parent, mapContextConfig); + 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 createMapContextConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7760/mapConfigs/mapConfig-7760"; + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + client.createMapContextConfig(parent, mapContextConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapContextConfigTest() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + + MapContextConfig actualResponse = client.getMapContextConfig(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 getMapContextConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + client.getMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapContextConfigTest2() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4231/mapConfigs/mapConfig-4231/mapContextConfigs/mapContextConfig-4231"; + + MapContextConfig actualResponse = client.getMapContextConfig(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 getMapContextConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4231/mapConfigs/mapConfig-4231/mapContextConfigs/mapContextConfig-4231"; + client.getMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapContextConfigsTest() throws Exception { + MapContextConfig responsesElement = MapContextConfig.newBuilder().build(); + ListMapContextConfigsResponse expectedResponse = + ListMapContextConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapContextConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + + ListMapContextConfigsPagedResponse pagedListResponse = client.listMapContextConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapContextConfigsList().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 listMapContextConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + client.listMapContextConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapContextConfigsTest2() throws Exception { + MapContextConfig responsesElement = MapContextConfig.newBuilder().build(); + ListMapContextConfigsResponse expectedResponse = + ListMapContextConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapContextConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7760/mapConfigs/mapConfig-7760"; + + ListMapContextConfigsPagedResponse pagedListResponse = client.listMapContextConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapContextConfigsList().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 listMapContextConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7760/mapConfigs/mapConfig-7760"; + client.listMapContextConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMapContextConfigTest() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + MapContextConfig mapContextConfig = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MapContextConfig actualResponse = client.updateMapContextConfig(mapContextConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateMapContextConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapContextConfig mapContextConfig = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMapContextConfig(mapContextConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapContextConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + + client.deleteMapContextConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteMapContextConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + client.deleteMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapContextConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4231/mapConfigs/mapConfig-4231/mapContextConfigs/mapContextConfig-4231"; + + client.deleteMapContextConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteMapContextConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4231/mapConfigs/mapConfig-4231/mapContextConfigs/mapContextConfig-4231"; + client.deleteMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MapManagementClientTest.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MapManagementClientTest.java new file mode 100644 index 000000000000..c4998f041e03 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MapManagementClientTest.java @@ -0,0 +1,1278 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListMapContextConfigsPagedResponse; +import static com.google.maps.mapmanagement.v2beta.MapManagementClient.ListStyleConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MapManagementClientTest { + private static MockMapManagement mockMapManagement; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private MapManagementClient client; + + @BeforeClass + public static void startStaticServer() { + mockMapManagement = new MockMapManagement(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockMapManagement)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + MapManagementSettings settings = + MapManagementSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MapManagementClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createMapConfigTest() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + MapConfig mapConfig = MapConfig.newBuilder().build(); + + MapConfig actualResponse = client.createMapConfig(parent, mapConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMapConfigRequest actualRequest = ((CreateMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(mapConfig, actualRequest.getMapConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMapConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + MapConfig mapConfig = MapConfig.newBuilder().build(); + client.createMapConfig(parent, mapConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMapConfigTest2() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + MapConfig mapConfig = MapConfig.newBuilder().build(); + + MapConfig actualResponse = client.createMapConfig(parent, mapConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMapConfigRequest actualRequest = ((CreateMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(mapConfig, actualRequest.getMapConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMapConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String parent = "parent-995424086"; + MapConfig mapConfig = MapConfig.newBuilder().build(); + client.createMapConfig(parent, mapConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapConfigTest() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + + MapConfig actualResponse = client.getMapConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMapConfigRequest actualRequest = ((GetMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMapConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + client.getMapConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapConfigTest2() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + MapConfig actualResponse = client.getMapConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMapConfigRequest actualRequest = ((GetMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMapConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String name = "name3373707"; + client.getMapConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapConfigsTest() throws Exception { + MapConfig responsesElement = MapConfig.newBuilder().build(); + ListMapConfigsResponse expectedResponse = + ListMapConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapConfigs(Arrays.asList(responsesElement)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListMapConfigsPagedResponse pagedListResponse = client.listMapConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapConfigsList().get(0), resources.get(0)); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMapConfigsRequest actualRequest = ((ListMapConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMapConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listMapConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapConfigsTest2() throws Exception { + MapConfig responsesElement = MapConfig.newBuilder().build(); + ListMapConfigsResponse expectedResponse = + ListMapConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapConfigs(Arrays.asList(responsesElement)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMapConfigsPagedResponse pagedListResponse = client.listMapConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapConfigsList().get(0), resources.get(0)); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMapConfigsRequest actualRequest = ((ListMapConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMapConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMapConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMapConfigTest() throws Exception { + MapConfig expectedResponse = + MapConfig.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMapId("mapId103663511") + .setMapFeatures(MapFeatures.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMapType(MapRenderingType.forNumber(0)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + MapConfig mapConfig = MapConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MapConfig actualResponse = client.updateMapConfig(mapConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMapConfigRequest actualRequest = ((UpdateMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(mapConfig, actualRequest.getMapConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMapConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapConfig mapConfig = MapConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMapConfig(mapConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMapManagement.addResponse(expectedResponse); + + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + boolean force = true; + + client.deleteMapConfig(name, force); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMapConfigRequest actualRequest = ((DeleteMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMapConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + boolean force = true; + client.deleteMapConfig(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMapManagement.addResponse(expectedResponse); + + String name = "name3373707"; + boolean force = true; + + client.deleteMapConfig(name, force); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMapConfigRequest actualRequest = ((DeleteMapConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMapConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String name = "name3373707"; + boolean force = true; + client.deleteMapConfig(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createStyleConfigTest() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + + StyleConfig actualResponse = client.createStyleConfig(parent, styleConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStyleConfigRequest actualRequest = ((CreateStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(styleConfig, actualRequest.getStyleConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStyleConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + client.createStyleConfig(parent, styleConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createStyleConfigTest2() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + + StyleConfig actualResponse = client.createStyleConfig(parent, styleConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStyleConfigRequest actualRequest = ((CreateStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(styleConfig, actualRequest.getStyleConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStyleConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String parent = "parent-995424086"; + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + client.createStyleConfig(parent, styleConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStyleConfigTest() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + + StyleConfig actualResponse = client.getStyleConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStyleConfigRequest actualRequest = ((GetStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStyleConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + client.getStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStyleConfigTest2() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + StyleConfig actualResponse = client.getStyleConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStyleConfigRequest actualRequest = ((GetStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStyleConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String name = "name3373707"; + client.getStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStyleConfigsTest() throws Exception { + StyleConfig responsesElement = StyleConfig.newBuilder().build(); + ListStyleConfigsResponse expectedResponse = + ListStyleConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllStyleConfigs(Arrays.asList(responsesElement)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListStyleConfigsPagedResponse pagedListResponse = client.listStyleConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStyleConfigsList().get(0), resources.get(0)); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStyleConfigsRequest actualRequest = ((ListStyleConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStyleConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listStyleConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStyleConfigsTest2() throws Exception { + StyleConfig responsesElement = StyleConfig.newBuilder().build(); + ListStyleConfigsResponse expectedResponse = + ListStyleConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllStyleConfigs(Arrays.asList(responsesElement)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListStyleConfigsPagedResponse pagedListResponse = client.listStyleConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStyleConfigsList().get(0), resources.get(0)); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStyleConfigsRequest actualRequest = ((ListStyleConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStyleConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listStyleConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateStyleConfigTest() throws Exception { + StyleConfig expectedResponse = + StyleConfig.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setStyleId("styleId-1875214676") + .setJsonStyleSheet("jsonStyleSheet2038037814") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + StyleConfig actualResponse = client.updateStyleConfig(styleConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateStyleConfigRequest actualRequest = ((UpdateStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(styleConfig, actualRequest.getStyleConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateStyleConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateStyleConfig(styleConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteStyleConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMapManagement.addResponse(expectedResponse); + + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + + client.deleteStyleConfig(name); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteStyleConfigRequest actualRequest = ((DeleteStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteStyleConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + client.deleteStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteStyleConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMapManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteStyleConfig(name); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteStyleConfigRequest actualRequest = ((DeleteStyleConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteStyleConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteStyleConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMapContextConfigTest() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + + MapContextConfig actualResponse = client.createMapContextConfig(parent, mapContextConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMapContextConfigRequest actualRequest = + ((CreateMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(mapContextConfig, actualRequest.getMapContextConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMapContextConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + client.createMapContextConfig(parent, mapContextConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMapContextConfigTest2() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + + MapContextConfig actualResponse = client.createMapContextConfig(parent, mapContextConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMapContextConfigRequest actualRequest = + ((CreateMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(mapContextConfig, actualRequest.getMapContextConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMapContextConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String parent = "parent-995424086"; + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + client.createMapContextConfig(parent, mapContextConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapContextConfigTest() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + + MapContextConfig actualResponse = client.getMapContextConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMapContextConfigRequest actualRequest = ((GetMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMapContextConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + client.getMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMapContextConfigTest2() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + MapContextConfig actualResponse = client.getMapContextConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMapContextConfigRequest actualRequest = ((GetMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMapContextConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String name = "name3373707"; + client.getMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapContextConfigsTest() throws Exception { + MapContextConfig responsesElement = MapContextConfig.newBuilder().build(); + ListMapContextConfigsResponse expectedResponse = + ListMapContextConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapContextConfigs(Arrays.asList(responsesElement)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + + ListMapContextConfigsPagedResponse pagedListResponse = client.listMapContextConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapContextConfigsList().get(0), resources.get(0)); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMapContextConfigsRequest actualRequest = + ((ListMapContextConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMapContextConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + client.listMapContextConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMapContextConfigsTest2() throws Exception { + MapContextConfig responsesElement = MapContextConfig.newBuilder().build(); + ListMapContextConfigsResponse expectedResponse = + ListMapContextConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMapContextConfigs(Arrays.asList(responsesElement)) + .build(); + mockMapManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMapContextConfigsPagedResponse pagedListResponse = client.listMapContextConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMapContextConfigsList().get(0), resources.get(0)); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMapContextConfigsRequest actualRequest = + ((ListMapContextConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMapContextConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMapContextConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMapContextConfigTest() throws Exception { + MapContextConfig expectedResponse = + MapContextConfig.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .setMapConfig(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setStyleConfig(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .addAllDataset(new ArrayList()) + .setAlias("alias92902992") + .addAllMapVariants(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMapManagement.addResponse(expectedResponse); + + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MapContextConfig actualResponse = client.updateMapContextConfig(mapContextConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMapContextConfigRequest actualRequest = + ((UpdateMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(mapContextConfig, actualRequest.getMapContextConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMapContextConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMapContextConfig(mapContextConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapContextConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMapManagement.addResponse(expectedResponse); + + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + + client.deleteMapContextConfig(name); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMapContextConfigRequest actualRequest = + ((DeleteMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMapContextConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + client.deleteMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMapContextConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMapManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteMapContextConfig(name); + + List actualRequests = mockMapManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMapContextConfigRequest actualRequest = + ((DeleteMapContextConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMapContextConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteMapContextConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MockMapManagement.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MockMapManagement.java new file mode 100644 index 000000000000..db7155a08ac3 --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MockMapManagement.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMapManagement implements MockGrpcService { + private final MockMapManagementImpl serviceImpl; + + public MockMapManagement() { + serviceImpl = new MockMapManagementImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MockMapManagementImpl.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MockMapManagementImpl.java new file mode 100644 index 000000000000..f69f48abeb3d --- /dev/null +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/test/java/com/google/maps/mapmanagement/v2beta/MockMapManagementImpl.java @@ -0,0 +1,381 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +import com.google.api.core.BetaApi; +import com.google.maps.mapmanagement.v2beta.MapManagementGrpc.MapManagementImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMapManagementImpl extends MapManagementImplBase { + private List requests; + private Queue responses; + + public MockMapManagementImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createMapConfig( + CreateMapConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MapConfig) { + requests.add(request); + responseObserver.onNext(((MapConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMapConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MapConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMapConfig( + GetMapConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MapConfig) { + requests.add(request); + responseObserver.onNext(((MapConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMapConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MapConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMapConfigs( + ListMapConfigsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMapConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListMapConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMapConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMapConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMapConfig( + UpdateMapConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MapConfig) { + requests.add(request); + responseObserver.onNext(((MapConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMapConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MapConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMapConfig( + DeleteMapConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMapConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createStyleConfig( + CreateStyleConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StyleConfig) { + requests.add(request); + responseObserver.onNext(((StyleConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateStyleConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StyleConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getStyleConfig( + GetStyleConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StyleConfig) { + requests.add(request); + responseObserver.onNext(((StyleConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetStyleConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StyleConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listStyleConfigs( + ListStyleConfigsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListStyleConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListStyleConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListStyleConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListStyleConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateStyleConfig( + UpdateStyleConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StyleConfig) { + requests.add(request); + responseObserver.onNext(((StyleConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateStyleConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StyleConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteStyleConfig( + DeleteStyleConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteStyleConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMapContextConfig( + CreateMapContextConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MapContextConfig) { + requests.add(request); + responseObserver.onNext(((MapContextConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMapContextConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + MapContextConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMapContextConfig( + GetMapContextConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MapContextConfig) { + requests.add(request); + responseObserver.onNext(((MapContextConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMapContextConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MapContextConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMapContextConfigs( + ListMapContextConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMapContextConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListMapContextConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMapContextConfigs, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListMapContextConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMapContextConfig( + UpdateMapContextConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MapContextConfig) { + requests.add(request); + responseObserver.onNext(((MapContextConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMapContextConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + MapContextConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMapContextConfig( + DeleteMapContextConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMapContextConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml b/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml new file mode 100644 index 000000000000..b73b71bb1de5 --- /dev/null +++ b/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.maps.api.grpc + grpc-google-maps-mapmanagement-v2beta + 0.0.1-SNAPSHOT + grpc-google-maps-mapmanagement-v2beta + GRPC library for google-maps-mapmanagement + + com.google.maps + google-maps-mapmanagement-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.maps.api.grpc + proto-google-maps-mapmanagement-v2beta + + + com.google.guava + guava + + + diff --git a/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementGrpc.java b/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementGrpc.java new file mode 100644 index 000000000000..45d6b0785072 --- /dev/null +++ b/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementGrpc.java @@ -0,0 +1,2381 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.maps.mapmanagement.v2beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The Map Management API uses your inputs to create and manage
+ * Google Cloud based styling resources for Google Maps.
+ * Using this API, you can can create and manage MapConfigs (Map IDs),
+ * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+ * between styles, datasets, and map variants).
+ * This API offers features through three channels:
+ * * `v2alpha`: Experimental features.
+ * * `v2beta`: Preview features, recommended for early adoption.
+ * * `v2`: General Availability (GA) features.
+ * Capabilities described here are generally available across both the v2alpha
+ * and v2beta endpoints.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class MapManagementGrpc { + + private MapManagementGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.maps.mapmanagement.v2beta.MapManagement"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getCreateMapConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMapConfig", + requestType = com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.MapConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getCreateMapConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getCreateMapConfigMethod; + if ((getCreateMapConfigMethod = MapManagementGrpc.getCreateMapConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getCreateMapConfigMethod = MapManagementGrpc.getCreateMapConfigMethod) == null) { + MapManagementGrpc.getCreateMapConfigMethod = + getCreateMapConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMapConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("CreateMapConfig")) + .build(); + } + } + } + return getCreateMapConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getGetMapConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMapConfig", + requestType = com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.MapConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getGetMapConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getGetMapConfigMethod; + if ((getGetMapConfigMethod = MapManagementGrpc.getGetMapConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getGetMapConfigMethod = MapManagementGrpc.getGetMapConfigMethod) == null) { + MapManagementGrpc.getGetMapConfigMethod = + getGetMapConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMapConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("GetMapConfig")) + .build(); + } + } + } + return getGetMapConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse> + getListMapConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMapConfigs", + requestType = com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse> + getListMapConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse> + getListMapConfigsMethod; + if ((getListMapConfigsMethod = MapManagementGrpc.getListMapConfigsMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getListMapConfigsMethod = MapManagementGrpc.getListMapConfigsMethod) == null) { + MapManagementGrpc.getListMapConfigsMethod = + getListMapConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMapConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("ListMapConfigs")) + .build(); + } + } + } + return getListMapConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getUpdateMapConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMapConfig", + requestType = com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.MapConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getUpdateMapConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig> + getUpdateMapConfigMethod; + if ((getUpdateMapConfigMethod = MapManagementGrpc.getUpdateMapConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getUpdateMapConfigMethod = MapManagementGrpc.getUpdateMapConfigMethod) == null) { + MapManagementGrpc.getUpdateMapConfigMethod = + getUpdateMapConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMapConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("UpdateMapConfig")) + .build(); + } + } + } + return getUpdateMapConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest, com.google.protobuf.Empty> + getDeleteMapConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMapConfig", + requestType = com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest, com.google.protobuf.Empty> + getDeleteMapConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest, com.google.protobuf.Empty> + getDeleteMapConfigMethod; + if ((getDeleteMapConfigMethod = MapManagementGrpc.getDeleteMapConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getDeleteMapConfigMethod = MapManagementGrpc.getDeleteMapConfigMethod) == null) { + MapManagementGrpc.getDeleteMapConfigMethod = + getDeleteMapConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMapConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("DeleteMapConfig")) + .build(); + } + } + } + return getDeleteMapConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getCreateStyleConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStyleConfig", + requestType = com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.StyleConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getCreateStyleConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getCreateStyleConfigMethod; + if ((getCreateStyleConfigMethod = MapManagementGrpc.getCreateStyleConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getCreateStyleConfigMethod = MapManagementGrpc.getCreateStyleConfigMethod) == null) { + MapManagementGrpc.getCreateStyleConfigMethod = + getCreateStyleConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStyleConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.StyleConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("CreateStyleConfig")) + .build(); + } + } + } + return getCreateStyleConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getGetStyleConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStyleConfig", + requestType = com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.StyleConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getGetStyleConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getGetStyleConfigMethod; + if ((getGetStyleConfigMethod = MapManagementGrpc.getGetStyleConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getGetStyleConfigMethod = MapManagementGrpc.getGetStyleConfigMethod) == null) { + MapManagementGrpc.getGetStyleConfigMethod = + getGetStyleConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStyleConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.StyleConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("GetStyleConfig")) + .build(); + } + } + } + return getGetStyleConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse> + getListStyleConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStyleConfigs", + requestType = com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse> + getListStyleConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse> + getListStyleConfigsMethod; + if ((getListStyleConfigsMethod = MapManagementGrpc.getListStyleConfigsMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getListStyleConfigsMethod = MapManagementGrpc.getListStyleConfigsMethod) == null) { + MapManagementGrpc.getListStyleConfigsMethod = + getListStyleConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStyleConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("ListStyleConfigs")) + .build(); + } + } + } + return getListStyleConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getUpdateStyleConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateStyleConfig", + requestType = com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.StyleConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getUpdateStyleConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig> + getUpdateStyleConfigMethod; + if ((getUpdateStyleConfigMethod = MapManagementGrpc.getUpdateStyleConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getUpdateStyleConfigMethod = MapManagementGrpc.getUpdateStyleConfigMethod) == null) { + MapManagementGrpc.getUpdateStyleConfigMethod = + getUpdateStyleConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStyleConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.StyleConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("UpdateStyleConfig")) + .build(); + } + } + } + return getUpdateStyleConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest, com.google.protobuf.Empty> + getDeleteStyleConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteStyleConfig", + requestType = com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest, com.google.protobuf.Empty> + getDeleteStyleConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest, + com.google.protobuf.Empty> + getDeleteStyleConfigMethod; + if ((getDeleteStyleConfigMethod = MapManagementGrpc.getDeleteStyleConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getDeleteStyleConfigMethod = MapManagementGrpc.getDeleteStyleConfigMethod) == null) { + MapManagementGrpc.getDeleteStyleConfigMethod = + getDeleteStyleConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStyleConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("DeleteStyleConfig")) + .build(); + } + } + } + return getDeleteStyleConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getCreateMapContextConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMapContextConfig", + requestType = com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.MapContextConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getCreateMapContextConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getCreateMapContextConfigMethod; + if ((getCreateMapContextConfigMethod = MapManagementGrpc.getCreateMapContextConfigMethod) + == null) { + synchronized (MapManagementGrpc.class) { + if ((getCreateMapContextConfigMethod = MapManagementGrpc.getCreateMapContextConfigMethod) + == null) { + MapManagementGrpc.getCreateMapContextConfigMethod = + getCreateMapContextConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMapContextConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.MapContextConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("CreateMapContextConfig")) + .build(); + } + } + } + return getCreateMapContextConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getGetMapContextConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMapContextConfig", + requestType = com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.MapContextConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getGetMapContextConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getGetMapContextConfigMethod; + if ((getGetMapContextConfigMethod = MapManagementGrpc.getGetMapContextConfigMethod) == null) { + synchronized (MapManagementGrpc.class) { + if ((getGetMapContextConfigMethod = MapManagementGrpc.getGetMapContextConfigMethod) + == null) { + MapManagementGrpc.getGetMapContextConfigMethod = + getGetMapContextConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMapContextConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.MapContextConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("GetMapContextConfig")) + .build(); + } + } + } + return getGetMapContextConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse> + getListMapContextConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMapContextConfigs", + requestType = com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse> + getListMapContextConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse> + getListMapContextConfigsMethod; + if ((getListMapContextConfigsMethod = MapManagementGrpc.getListMapContextConfigsMethod) + == null) { + synchronized (MapManagementGrpc.class) { + if ((getListMapContextConfigsMethod = MapManagementGrpc.getListMapContextConfigsMethod) + == null) { + MapManagementGrpc.getListMapContextConfigsMethod = + getListMapContextConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMapContextConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("ListMapContextConfigs")) + .build(); + } + } + } + return getListMapContextConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getUpdateMapContextConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMapContextConfig", + requestType = com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest.class, + responseType = com.google.maps.mapmanagement.v2beta.MapContextConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getUpdateMapContextConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getUpdateMapContextConfigMethod; + if ((getUpdateMapContextConfigMethod = MapManagementGrpc.getUpdateMapContextConfigMethod) + == null) { + synchronized (MapManagementGrpc.class) { + if ((getUpdateMapContextConfigMethod = MapManagementGrpc.getUpdateMapContextConfigMethod) + == null) { + MapManagementGrpc.getUpdateMapContextConfigMethod = + getUpdateMapContextConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMapContextConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.MapContextConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("UpdateMapContextConfig")) + .build(); + } + } + } + return getUpdateMapContextConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest, + com.google.protobuf.Empty> + getDeleteMapContextConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMapContextConfig", + requestType = com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest, + com.google.protobuf.Empty> + getDeleteMapContextConfigMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest, + com.google.protobuf.Empty> + getDeleteMapContextConfigMethod; + if ((getDeleteMapContextConfigMethod = MapManagementGrpc.getDeleteMapContextConfigMethod) + == null) { + synchronized (MapManagementGrpc.class) { + if ((getDeleteMapContextConfigMethod = MapManagementGrpc.getDeleteMapContextConfigMethod) + == null) { + MapManagementGrpc.getDeleteMapContextConfigMethod = + getDeleteMapContextConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMapContextConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MapManagementMethodDescriptorSupplier("DeleteMapContextConfig")) + .build(); + } + } + } + return getDeleteMapContextConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MapManagementStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MapManagementStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementStub(channel, callOptions); + } + }; + return MapManagementStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static MapManagementBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MapManagementBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementBlockingV2Stub(channel, callOptions); + } + }; + return MapManagementBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MapManagementBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MapManagementBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementBlockingStub(channel, callOptions); + } + }; + return MapManagementBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MapManagementFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MapManagementFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementFutureStub(channel, callOptions); + } + }; + return MapManagementFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The Map Management API uses your inputs to create and manage
+   * Google Cloud based styling resources for Google Maps.
+   * Using this API, you can can create and manage MapConfigs (Map IDs),
+   * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+   * between styles, datasets, and map variants).
+   * This API offers features through three channels:
+   * * `v2alpha`: Experimental features.
+   * * `v2beta`: Preview features, recommended for early adoption.
+   * * `v2`: General Availability (GA) features.
+   * Capabilities described here are generally available across both the v2alpha
+   * and v2beta endpoints.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a MapConfig in a project.
+     * 
+ */ + default void createMapConfig( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMapConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a MapConfig.
+     * 
+ */ + default void getMapConfig( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMapConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists MapConfigs for a project.
+     * 
+ */ + default void listMapConfigs( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMapConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a MapConfig.
+     * 
+ */ + default void updateMapConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMapConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a MapConfig.
+     * 
+ */ + default void deleteMapConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMapConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a StyleConfig.
+     * 
+ */ + default void createStyleConfig( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateStyleConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a StyleConfig.
+     * 
+ */ + default void getStyleConfig( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetStyleConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists StyleConfigs.
+     * 
+ */ + default void listStyleConfigs( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListStyleConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a StyleConfig.
+     * 
+ */ + default void updateStyleConfig( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateStyleConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a StyleConfig.
+     * 
+ */ + default void deleteStyleConfig( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteStyleConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a MapContextConfig.
+     * 
+ */ + default void createMapContextConfig( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMapContextConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a MapContextConfig.
+     * 
+ */ + default void getMapContextConfig( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMapContextConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists MapContextConfigs.
+     * 
+ */ + default void listMapContextConfigs( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMapContextConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a MapContextConfig.
+     * 
+ */ + default void updateMapContextConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMapContextConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a MapContextConfig.
+     * 
+ */ + default void deleteMapContextConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMapContextConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service MapManagement. + * + *
+   * The Map Management API uses your inputs to create and manage
+   * Google Cloud based styling resources for Google Maps.
+   * Using this API, you can can create and manage MapConfigs (Map IDs),
+   * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+   * between styles, datasets, and map variants).
+   * This API offers features through three channels:
+   * * `v2alpha`: Experimental features.
+   * * `v2beta`: Preview features, recommended for early adoption.
+   * * `v2`: General Availability (GA) features.
+   * Capabilities described here are generally available across both the v2alpha
+   * and v2beta endpoints.
+   * 
+ */ + public abstract static class MapManagementImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MapManagementGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service MapManagement. + * + *
+   * The Map Management API uses your inputs to create and manage
+   * Google Cloud based styling resources for Google Maps.
+   * Using this API, you can can create and manage MapConfigs (Map IDs),
+   * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+   * between styles, datasets, and map variants).
+   * This API offers features through three channels:
+   * * `v2alpha`: Experimental features.
+   * * `v2beta`: Preview features, recommended for early adoption.
+   * * `v2`: General Availability (GA) features.
+   * Capabilities described here are generally available across both the v2alpha
+   * and v2beta endpoints.
+   * 
+ */ + public static final class MapManagementStub + extends io.grpc.stub.AbstractAsyncStub { + private MapManagementStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MapManagementStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a MapConfig in a project.
+     * 
+ */ + public void createMapConfig( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMapConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a MapConfig.
+     * 
+ */ + public void getMapConfig( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMapConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists MapConfigs for a project.
+     * 
+ */ + public void listMapConfigs( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMapConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a MapConfig.
+     * 
+ */ + public void updateMapConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMapConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a MapConfig.
+     * 
+ */ + public void deleteMapConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMapConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a StyleConfig.
+     * 
+ */ + public void createStyleConfig( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStyleConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a StyleConfig.
+     * 
+ */ + public void getStyleConfig( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStyleConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists StyleConfigs.
+     * 
+ */ + public void listStyleConfigs( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStyleConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a StyleConfig.
+     * 
+ */ + public void updateStyleConfig( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateStyleConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a StyleConfig.
+     * 
+ */ + public void deleteStyleConfig( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteStyleConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a MapContextConfig.
+     * 
+ */ + public void createMapContextConfig( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMapContextConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a MapContextConfig.
+     * 
+ */ + public void getMapContextConfig( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMapContextConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists MapContextConfigs.
+     * 
+ */ + public void listMapContextConfigs( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMapContextConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a MapContextConfig.
+     * 
+ */ + public void updateMapContextConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMapContextConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a MapContextConfig.
+     * 
+ */ + public void deleteMapContextConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMapContextConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service MapManagement. + * + *
+   * The Map Management API uses your inputs to create and manage
+   * Google Cloud based styling resources for Google Maps.
+   * Using this API, you can can create and manage MapConfigs (Map IDs),
+   * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+   * between styles, datasets, and map variants).
+   * This API offers features through three channels:
+   * * `v2alpha`: Experimental features.
+   * * `v2beta`: Preview features, recommended for early adoption.
+   * * `v2`: General Availability (GA) features.
+   * Capabilities described here are generally available across both the v2alpha
+   * and v2beta endpoints.
+   * 
+ */ + public static final class MapManagementBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private MapManagementBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MapManagementBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a MapConfig in a project.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapConfig createMapConfig( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a MapConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists MapConfigs for a project.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse listMapConfigs( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMapConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a MapConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapConfig updateMapConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a MapConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteMapConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a StyleConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.StyleConfig createStyleConfig( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a StyleConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists StyleConfigs.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse listStyleConfigs( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListStyleConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a StyleConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.StyleConfig updateStyleConfig( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a StyleConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteStyleConfig( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a MapContextConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig createMapContextConfig( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMapContextConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a MapContextConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMapContextConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists MapContextConfigs.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse listMapContextConfigs( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMapContextConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a MapContextConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig updateMapContextConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMapContextConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a MapContextConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteMapContextConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMapContextConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service MapManagement. + * + *
+   * The Map Management API uses your inputs to create and manage
+   * Google Cloud based styling resources for Google Maps.
+   * Using this API, you can can create and manage MapConfigs (Map IDs),
+   * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+   * between styles, datasets, and map variants).
+   * This API offers features through three channels:
+   * * `v2alpha`: Experimental features.
+   * * `v2beta`: Preview features, recommended for early adoption.
+   * * `v2`: General Availability (GA) features.
+   * Capabilities described here are generally available across both the v2alpha
+   * and v2beta endpoints.
+   * 
+ */ + public static final class MapManagementBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MapManagementBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MapManagementBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a MapConfig in a project.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapConfig createMapConfig( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a MapConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists MapConfigs for a project.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse listMapConfigs( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMapConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a MapConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapConfig updateMapConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a MapConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteMapConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMapConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a StyleConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.StyleConfig createStyleConfig( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a StyleConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists StyleConfigs.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse listStyleConfigs( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStyleConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a StyleConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.StyleConfig updateStyleConfig( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a StyleConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteStyleConfig( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteStyleConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a MapContextConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig createMapContextConfig( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMapContextConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a MapContextConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMapContextConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists MapContextConfigs.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse listMapContextConfigs( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMapContextConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a MapContextConfig.
+     * 
+ */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig updateMapContextConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMapContextConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a MapContextConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteMapContextConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMapContextConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service MapManagement. + * + *
+   * The Map Management API uses your inputs to create and manage
+   * Google Cloud based styling resources for Google Maps.
+   * Using this API, you can can create and manage MapConfigs (Map IDs),
+   * StyleConfigs (JSON-based styling), and MapContextConfigs (associations
+   * between styles, datasets, and map variants).
+   * This API offers features through three channels:
+   * * `v2alpha`: Experimental features.
+   * * `v2beta`: Preview features, recommended for early adoption.
+   * * `v2`: General Availability (GA) features.
+   * Capabilities described here are generally available across both the v2alpha
+   * and v2beta endpoints.
+   * 
+ */ + public static final class MapManagementFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MapManagementFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MapManagementFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MapManagementFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a MapConfig in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.MapConfig> + createMapConfig(com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMapConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a MapConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.MapConfig> + getMapConfig(com.google.maps.mapmanagement.v2beta.GetMapConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMapConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists MapConfigs for a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse> + listMapConfigs(com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMapConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a MapConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.MapConfig> + updateMapConfig(com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMapConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a MapConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMapConfig(com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMapConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a StyleConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.StyleConfig> + createStyleConfig(com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStyleConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a StyleConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.StyleConfig> + getStyleConfig(com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStyleConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists StyleConfigs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse> + listStyleConfigs(com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStyleConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a StyleConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.StyleConfig> + updateStyleConfig(com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateStyleConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a StyleConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteStyleConfig(com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteStyleConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a MapContextConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.MapContextConfig> + createMapContextConfig( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMapContextConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a MapContextConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.MapContextConfig> + getMapContextConfig( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMapContextConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists MapContextConfigs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse> + listMapContextConfigs( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMapContextConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a MapContextConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapmanagement.v2beta.MapContextConfig> + updateMapContextConfig( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMapContextConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a MapContextConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMapContextConfig( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMapContextConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_MAP_CONFIG = 0; + private static final int METHODID_GET_MAP_CONFIG = 1; + private static final int METHODID_LIST_MAP_CONFIGS = 2; + private static final int METHODID_UPDATE_MAP_CONFIG = 3; + private static final int METHODID_DELETE_MAP_CONFIG = 4; + private static final int METHODID_CREATE_STYLE_CONFIG = 5; + private static final int METHODID_GET_STYLE_CONFIG = 6; + private static final int METHODID_LIST_STYLE_CONFIGS = 7; + private static final int METHODID_UPDATE_STYLE_CONFIG = 8; + private static final int METHODID_DELETE_STYLE_CONFIG = 9; + private static final int METHODID_CREATE_MAP_CONTEXT_CONFIG = 10; + private static final int METHODID_GET_MAP_CONTEXT_CONFIG = 11; + private static final int METHODID_LIST_MAP_CONTEXT_CONFIGS = 12; + private static final int METHODID_UPDATE_MAP_CONTEXT_CONFIG = 13; + private static final int METHODID_DELETE_MAP_CONTEXT_CONFIG = 14; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_MAP_CONFIG: + serviceImpl.createMapConfig( + (com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MAP_CONFIG: + serviceImpl.getMapConfig( + (com.google.maps.mapmanagement.v2beta.GetMapConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MAP_CONFIGS: + serviceImpl.listMapConfigs( + (com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse>) + responseObserver); + break; + case METHODID_UPDATE_MAP_CONFIG: + serviceImpl.updateMapConfig( + (com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MAP_CONFIG: + serviceImpl.deleteMapConfig( + (com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_STYLE_CONFIG: + serviceImpl.createStyleConfig( + (com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_STYLE_CONFIG: + serviceImpl.getStyleConfig( + (com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_STYLE_CONFIGS: + serviceImpl.listStyleConfigs( + (com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse>) + responseObserver); + break; + case METHODID_UPDATE_STYLE_CONFIG: + serviceImpl.updateStyleConfig( + (com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_STYLE_CONFIG: + serviceImpl.deleteStyleConfig( + (com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MAP_CONTEXT_CONFIG: + serviceImpl.createMapContextConfig( + (com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MAP_CONTEXT_CONFIG: + serviceImpl.getMapContextConfig( + (com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MAP_CONTEXT_CONFIGS: + serviceImpl.listMapContextConfigs( + (com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse>) + responseObserver); + break; + case METHODID_UPDATE_MAP_CONTEXT_CONFIG: + serviceImpl.updateMapContextConfig( + (com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MAP_CONTEXT_CONFIG: + serviceImpl.deleteMapContextConfig( + (com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateMapConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig>( + service, METHODID_CREATE_MAP_CONFIG))) + .addMethod( + getGetMapConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig>( + service, METHODID_GET_MAP_CONFIG))) + .addMethod( + getListMapConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse>( + service, METHODID_LIST_MAP_CONFIGS))) + .addMethod( + getUpdateMapConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest, + com.google.maps.mapmanagement.v2beta.MapConfig>( + service, METHODID_UPDATE_MAP_CONFIG))) + .addMethod( + getDeleteMapConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_MAP_CONFIG))) + .addMethod( + getCreateStyleConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig>( + service, METHODID_CREATE_STYLE_CONFIG))) + .addMethod( + getGetStyleConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig>( + service, METHODID_GET_STYLE_CONFIG))) + .addMethod( + getListStyleConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse>( + service, METHODID_LIST_STYLE_CONFIGS))) + .addMethod( + getUpdateStyleConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest, + com.google.maps.mapmanagement.v2beta.StyleConfig>( + service, METHODID_UPDATE_STYLE_CONFIG))) + .addMethod( + getDeleteStyleConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_STYLE_CONFIG))) + .addMethod( + getCreateMapContextConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig>( + service, METHODID_CREATE_MAP_CONTEXT_CONFIG))) + .addMethod( + getGetMapContextConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig>( + service, METHODID_GET_MAP_CONTEXT_CONFIG))) + .addMethod( + getListMapContextConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse>( + service, METHODID_LIST_MAP_CONTEXT_CONFIGS))) + .addMethod( + getUpdateMapContextConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest, + com.google.maps.mapmanagement.v2beta.MapContextConfig>( + service, METHODID_UPDATE_MAP_CONTEXT_CONFIG))) + .addMethod( + getDeleteMapContextConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_MAP_CONTEXT_CONFIG))) + .build(); + } + + private abstract static class MapManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MapManagementBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MapManagement"); + } + } + + private static final class MapManagementFileDescriptorSupplier + extends MapManagementBaseDescriptorSupplier { + MapManagementFileDescriptorSupplier() {} + } + + private static final class MapManagementMethodDescriptorSupplier + extends MapManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MapManagementMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MapManagementGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MapManagementFileDescriptorSupplier()) + .addMethod(getCreateMapConfigMethod()) + .addMethod(getGetMapConfigMethod()) + .addMethod(getListMapConfigsMethod()) + .addMethod(getUpdateMapConfigMethod()) + .addMethod(getDeleteMapConfigMethod()) + .addMethod(getCreateStyleConfigMethod()) + .addMethod(getGetStyleConfigMethod()) + .addMethod(getListStyleConfigsMethod()) + .addMethod(getUpdateStyleConfigMethod()) + .addMethod(getDeleteStyleConfigMethod()) + .addMethod(getCreateMapContextConfigMethod()) + .addMethod(getGetMapContextConfigMethod()) + .addMethod(getListMapContextConfigsMethod()) + .addMethod(getUpdateMapContextConfigMethod()) + .addMethod(getDeleteMapContextConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-maps-mapmanagement/owlbot.py b/java-maps-mapmanagement/owlbot.py new file mode 100644 index 000000000000..6da47954339a --- /dev/null +++ b/java-maps-mapmanagement/owlbot.py @@ -0,0 +1,38 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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-maps-mapmanagement/pom.xml b/java-maps-mapmanagement/pom.xml new file mode 100644 index 000000000000..d029a1d4be43 --- /dev/null +++ b/java-maps-mapmanagement/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.maps + google-maps-mapmanagement-parent + pom + 0.0.1-SNAPSHOT + Google Map Management API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.85.0 + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-maps-mapmanagement-parent + + + + + + com.google.maps + google-maps-mapmanagement + 0.0.1-SNAPSHOT + + + com.google.maps.api.grpc + grpc-google-maps-mapmanagement-v2beta + 0.0.1-SNAPSHOT + + + com.google.maps.api.grpc + proto-google-maps-mapmanagement-v2beta + 0.0.1-SNAPSHOT + + + + + + + google-maps-mapmanagement + grpc-google-maps-mapmanagement-v2beta + proto-google-maps-mapmanagement-v2beta + google-maps-mapmanagement-bom + + + diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/clirr-ignored-differences.xml b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/clirr-ignored-differences.xml new file mode 100644 index 000000000000..2ed57530b038 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/maps/mapmanagement/v2beta/*OrBuilder + * get*(*) + + + 7012 + com/google/maps/mapmanagement/v2beta/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/maps/mapmanagement/v2beta/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * addRepeatedField(*) + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * clear() + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * clearField(*) + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * clearOneof(*) + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * clone() + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * setField(*) + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * setRepeatedField(*) + ** + + + 7006 + com/google/maps/mapmanagement/v2beta/** + * setUnknownFields(*) + ** + + diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml new file mode 100644 index 000000000000..6c80e1d32e20 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.maps.api.grpc + proto-google-maps-mapmanagement-v2beta + 0.0.1-SNAPSHOT + proto-google-maps-mapmanagement-v2beta + Proto library for google-maps-mapmanagement + + com.google.maps + google-maps-mapmanagement-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-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapConfigRequest.java new file mode 100644 index 000000000000..92968cdae039 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapConfigRequest.java @@ -0,0 +1,935 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to create a MapConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.CreateMapConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateMapConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.CreateMapConfigRequest) + CreateMapConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMapConfigRequest"); + } + + // Use CreateMapConfigRequest.newBuilder() to construct. + private CreateMapConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMapConfigRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent project that will own the MapConfig.
+   * Format: `projects/{$my-project-id}`
+   * 
+ * + * + * 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. Parent project that will own the MapConfig.
+   * Format: `projects/{$my-project-id}`
+   * 
+ * + * + * 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 MAP_CONFIG_FIELD_NUMBER = 2; + private com.google.maps.mapmanagement.v2beta.MapConfig mapConfig_; + + /** + * + * + *
+   * Required. The MapConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapConfig field is set. + */ + @java.lang.Override + public boolean hasMapConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The MapConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapConfig. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig() { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } + + /** + * + * + *
+   * Required. The MapConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigOrBuilder() { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMapConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMapConfig()); + } + 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.maps.mapmanagement.v2beta.CreateMapConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest other = + (com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMapConfig() != other.hasMapConfig()) return false; + if (hasMapConfig()) { + if (!getMapConfig().equals(other.getMapConfig())) 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(); + if (hasMapConfig()) { + hash = (37 * hash) + MAP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMapConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest 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.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.CreateMapConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to create a MapConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.CreateMapConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.CreateMapConfigRequest) + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMapConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mapConfig_ = null; + if (mapConfigBuilder_ != null) { + mapConfigBuilder_.dispose(); + mapConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest build() { + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest result = + new com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mapConfig_ = mapConfigBuilder_ == null ? mapConfig_ : mapConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest other) { + if (other == com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMapConfig()) { + mergeMapConfig(other.getMapConfig()); + } + 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: + { + input.readMessage( + internalGetMapConfigFieldBuilder().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 parent_ = ""; + + /** + * + * + *
+     * Required. Parent project that will own the MapConfig.
+     * Format: `projects/{$my-project-id}`
+     * 
+ * + * + * 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. Parent project that will own the MapConfig.
+     * Format: `projects/{$my-project-id}`
+     * 
+ * + * + * 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. Parent project that will own the MapConfig.
+     * Format: `projects/{$my-project-id}`
+     * 
+ * + * + * 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. Parent project that will own the MapConfig.
+     * Format: `projects/{$my-project-id}`
+     * 
+ * + * + * 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. Parent project that will own the MapConfig.
+     * Format: `projects/{$my-project-id}`
+     * 
+ * + * + * 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 com.google.maps.mapmanagement.v2beta.MapConfig mapConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder> + mapConfigBuilder_; + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapConfig field is set. + */ + public boolean hasMapConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapConfig. + */ + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig() { + if (mapConfigBuilder_ == null) { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } else { + return mapConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapConfig(com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mapConfig_ = value; + } else { + mapConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapConfig( + com.google.maps.mapmanagement.v2beta.MapConfig.Builder builderForValue) { + if (mapConfigBuilder_ == null) { + mapConfig_ = builderForValue.build(); + } else { + mapConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMapConfig(com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && mapConfig_ != null + && mapConfig_ != com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance()) { + getMapConfigBuilder().mergeFrom(value); + } else { + mapConfig_ = value; + } + } else { + mapConfigBuilder_.mergeFrom(value); + } + if (mapConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMapConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + mapConfig_ = null; + if (mapConfigBuilder_ != null) { + mapConfigBuilder_.dispose(); + mapConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapConfig.Builder getMapConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMapConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigOrBuilder() { + if (mapConfigBuilder_ != null) { + return mapConfigBuilder_.getMessageOrBuilder(); + } else { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } + } + + /** + * + * + *
+     * Required. The MapConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder> + internalGetMapConfigFieldBuilder() { + if (mapConfigBuilder_ == null) { + mapConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder>( + getMapConfig(), getParentForChildren(), isClean()); + mapConfig_ = null; + } + return mapConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.CreateMapConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.CreateMapConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMapConfigRequest 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.maps.mapmanagement.v2beta.CreateMapConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapConfigRequestOrBuilder.java new file mode 100644 index 000000000000..32cbd8248afc --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapConfigRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface CreateMapConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.CreateMapConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent project that will own the MapConfig.
+   * Format: `projects/{$my-project-id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent project that will own the MapConfig.
+   * Format: `projects/{$my-project-id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The MapConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapConfig field is set. + */ + boolean hasMapConfig(); + + /** + * + * + *
+   * Required. The MapConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapConfig. + */ + com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig(); + + /** + * + * + *
+   * Required. The MapConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapContextConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapContextConfigRequest.java new file mode 100644 index 000000000000..3e6c21e4f8e0 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapContextConfigRequest.java @@ -0,0 +1,953 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to create a MapContextConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateMapContextConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) + CreateMapContextConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMapContextConfigRequest"); + } + + // Use CreateMapContextConfigRequest.newBuilder() to construct. + private CreateMapContextConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMapContextConfigRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent MapConfig that will own the MapContextConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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. Parent MapConfig that will own the MapContextConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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 MAP_CONTEXT_CONFIG_FIELD_NUMBER = 2; + private com.google.maps.mapmanagement.v2beta.MapContextConfig mapContextConfig_; + + /** + * + * + *
+   * Required. The MapContextConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapContextConfig field is set. + */ + @java.lang.Override + public boolean hasMapContextConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The MapContextConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapContextConfig. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig() { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } + + /** + * + * + *
+   * Required. The MapContextConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder + getMapContextConfigOrBuilder() { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMapContextConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMapContextConfig()); + } + 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.maps.mapmanagement.v2beta.CreateMapContextConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest other = + (com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMapContextConfig() != other.hasMapContextConfig()) return false; + if (hasMapContextConfig()) { + if (!getMapContextConfig().equals(other.getMapContextConfig())) 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(); + if (hasMapContextConfig()) { + hash = (37 * hash) + MAP_CONTEXT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMapContextConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest 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.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.CreateMapContextConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to create a MapContextConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest.Builder.class); + } + + // Construct using + // com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMapContextConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mapContextConfig_ = null; + if (mapContextConfigBuilder_ != null) { + mapContextConfigBuilder_.dispose(); + mapContextConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest build() { + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest result = + new com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mapContextConfig_ = + mapContextConfigBuilder_ == null ? mapContextConfig_ : mapContextConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) { + return mergeFrom( + (com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMapContextConfig()) { + mergeMapContextConfig(other.getMapContextConfig()); + } + 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: + { + input.readMessage( + internalGetMapContextConfigFieldBuilder().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 parent_ = ""; + + /** + * + * + *
+     * Required. Parent MapConfig that will own the MapContextConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that will own the MapContextConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that will own the MapContextConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that will own the MapContextConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that will own the MapContextConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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 com.google.maps.mapmanagement.v2beta.MapContextConfig mapContextConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder> + mapContextConfigBuilder_; + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapContextConfig field is set. + */ + public boolean hasMapContextConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapContextConfig. + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig() { + if (mapContextConfigBuilder_ == null) { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } else { + return mapContextConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapContextConfig( + com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mapContextConfig_ = value; + } else { + mapContextConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapContextConfig( + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder builderForValue) { + if (mapContextConfigBuilder_ == null) { + mapContextConfig_ = builderForValue.build(); + } else { + mapContextConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMapContextConfig( + com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && mapContextConfig_ != null + && mapContextConfig_ + != com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance()) { + getMapContextConfigBuilder().mergeFrom(value); + } else { + mapContextConfig_ = value; + } + } else { + mapContextConfigBuilder_.mergeFrom(value); + } + if (mapContextConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMapContextConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + mapContextConfig_ = null; + if (mapContextConfigBuilder_ != null) { + mapContextConfigBuilder_.dispose(); + mapContextConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder + getMapContextConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMapContextConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder + getMapContextConfigOrBuilder() { + if (mapContextConfigBuilder_ != null) { + return mapContextConfigBuilder_.getMessageOrBuilder(); + } else { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } + } + + /** + * + * + *
+     * Required. The MapContextConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder> + internalGetMapContextConfigFieldBuilder() { + if (mapContextConfigBuilder_ == null) { + mapContextConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder>( + getMapContextConfig(), getParentForChildren(), isClean()); + mapContextConfig_ = null; + } + return mapContextConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMapContextConfigRequest 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.maps.mapmanagement.v2beta.CreateMapContextConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapContextConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapContextConfigRequestOrBuilder.java new file mode 100644 index 000000000000..9f208538fcaa --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateMapContextConfigRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface CreateMapContextConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent MapConfig that will own the MapContextConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent MapConfig that will own the MapContextConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The MapContextConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapContextConfig field is set. + */ + boolean hasMapContextConfig(); + + /** + * + * + *
+   * Required. The MapContextConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapContextConfig. + */ + com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig(); + + /** + * + * + *
+   * Required. The MapContextConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder getMapContextConfigOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateStyleConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateStyleConfigRequest.java new file mode 100644 index 000000000000..383ee904be50 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateStyleConfigRequest.java @@ -0,0 +1,941 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to create a StyleConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.CreateStyleConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateStyleConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) + CreateStyleConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateStyleConfigRequest"); + } + + // Use CreateStyleConfigRequest.newBuilder() to construct. + private CreateStyleConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateStyleConfigRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent project that will own the StyleConfig.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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. Parent project that will own the StyleConfig.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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 STYLE_CONFIG_FIELD_NUMBER = 2; + private com.google.maps.mapmanagement.v2beta.StyleConfig styleConfig_; + + /** + * + * + *
+   * Required. The StyleConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the styleConfig field is set. + */ + @java.lang.Override + public boolean hasStyleConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The StyleConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The styleConfig. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig() { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } + + /** + * + * + *
+   * Required. The StyleConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigOrBuilder() { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStyleConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStyleConfig()); + } + 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.maps.mapmanagement.v2beta.CreateStyleConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest other = + (com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasStyleConfig() != other.hasStyleConfig()) return false; + if (hasStyleConfig()) { + if (!getStyleConfig().equals(other.getStyleConfig())) 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(); + if (hasStyleConfig()) { + hash = (37 * hash) + STYLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStyleConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest 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.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.CreateStyleConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to create a StyleConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.CreateStyleConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStyleConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + styleConfig_ = null; + if (styleConfigBuilder_ != null) { + styleConfigBuilder_.dispose(); + styleConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest build() { + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest result = + new com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.styleConfig_ = + styleConfigBuilder_ == null ? styleConfig_ : styleConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStyleConfig()) { + mergeStyleConfig(other.getStyleConfig()); + } + 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: + { + input.readMessage( + internalGetStyleConfigFieldBuilder().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 parent_ = ""; + + /** + * + * + *
+     * Required. Parent project that will own the StyleConfig.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that will own the StyleConfig.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that will own the StyleConfig.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that will own the StyleConfig.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that will own the StyleConfig.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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 com.google.maps.mapmanagement.v2beta.StyleConfig styleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder> + styleConfigBuilder_; + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the styleConfig field is set. + */ + public boolean hasStyleConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The styleConfig. + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig() { + if (styleConfigBuilder_ == null) { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } else { + return styleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStyleConfig(com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + styleConfig_ = value; + } else { + styleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStyleConfig( + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder builderForValue) { + if (styleConfigBuilder_ == null) { + styleConfig_ = builderForValue.build(); + } else { + styleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStyleConfig(com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && styleConfig_ != null + && styleConfig_ + != com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance()) { + getStyleConfigBuilder().mergeFrom(value); + } else { + styleConfig_ = value; + } + } else { + styleConfigBuilder_.mergeFrom(value); + } + if (styleConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStyleConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + styleConfig_ = null; + if (styleConfigBuilder_ != null) { + styleConfigBuilder_.dispose(); + styleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig.Builder getStyleConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetStyleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigOrBuilder() { + if (styleConfigBuilder_ != null) { + return styleConfigBuilder_.getMessageOrBuilder(); + } else { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } + } + + /** + * + * + *
+     * Required. The StyleConfig to create.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder> + internalGetStyleConfigFieldBuilder() { + if (styleConfigBuilder_ == null) { + styleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder>( + getStyleConfig(), getParentForChildren(), isClean()); + styleConfig_ = null; + } + return styleConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStyleConfigRequest 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.maps.mapmanagement.v2beta.CreateStyleConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateStyleConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateStyleConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b66e65343116 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/CreateStyleConfigRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface CreateStyleConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.CreateStyleConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent project that will own the StyleConfig.
+   * Format: `projects/{project}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent project that will own the StyleConfig.
+   * Format: `projects/{project}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The StyleConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the styleConfig field is set. + */ + boolean hasStyleConfig(); + + /** + * + * + *
+   * Required. The StyleConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The styleConfig. + */ + com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig(); + + /** + * + * + *
+   * Required. The StyleConfig to create.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapConfigRequest.java new file mode 100644 index 000000000000..ee7221360463 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapConfigRequest.java @@ -0,0 +1,725 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to delete a MapConfig. If the MapConfig has any child
+ * MapContextConfigs, those will be deleted as well.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.DeleteMapConfigRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMapConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) + DeleteMapConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMapConfigRequest"); + } + + // Use DeleteMapConfigRequest.newBuilder() to construct. + private DeleteMapConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMapConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the MapConfig to delete.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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. Resource name of the MapConfig to delete.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, any MapContextConfigs from this MapConfig will
+   * also be deleted. (Otherwise, the request will only work if the MapConfig
+   * has no MapContextConfigs.)
+   * 
+ * + * bool force = 2 [(.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, 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.maps.mapmanagement.v2beta.DeleteMapConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest other = + (com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) obj; + + if (!getName().equals(other.getName())) 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) + 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.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest 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.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.DeleteMapConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to delete a MapConfig. If the MapConfig has any child
+   * MapContextConfigs, those will be deleted as well.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.DeleteMapConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest build() { + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest result = + new com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest other) { + if (other == com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of the MapConfig to delete.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig to delete.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig to delete.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig to delete.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig to delete.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, any MapContextConfigs from this MapConfig will
+     * also be deleted. (Otherwise, the request will only work if the MapConfig
+     * has no MapContextConfigs.)
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, any MapContextConfigs from this MapConfig will
+     * also be deleted. (Otherwise, the request will only work if the MapConfig
+     * has no MapContextConfigs.)
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, any MapContextConfigs from this MapConfig will
+     * also be deleted. (Otherwise, the request will only work if the MapConfig
+     * has no MapContextConfigs.)
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMapConfigRequest 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.maps.mapmanagement.v2beta.DeleteMapConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapConfigRequestOrBuilder.java new file mode 100644 index 000000000000..e27445a30e11 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapConfigRequestOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface DeleteMapConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.DeleteMapConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the MapConfig to delete.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the MapConfig to delete.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, any MapContextConfigs from this MapConfig will
+   * also be deleted. (Otherwise, the request will only work if the MapConfig
+   * has no MapContextConfigs.)
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapContextConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapContextConfigRequest.java new file mode 100644 index 000000000000..2dfe2ffe7737 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapContextConfigRequest.java @@ -0,0 +1,636 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to delete a MapContextConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMapContextConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) + DeleteMapContextConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMapContextConfigRequest"); + } + + // Use DeleteMapContextConfigRequest.newBuilder() to construct. + private DeleteMapContextConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMapContextConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the MapContextConfig to delete.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * 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. Resource name of the MapContextConfig to delete.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest other = + (com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) 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.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest 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.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to delete a MapContextConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest.Builder.class); + } + + // Construct using + // com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest build() { + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest result = + new com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) { + return mergeFrom( + (com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + .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. Resource name of the MapContextConfig to delete.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig to delete.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig to delete.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig to delete.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig to delete.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMapContextConfigRequest 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.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapContextConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapContextConfigRequestOrBuilder.java new file mode 100644 index 000000000000..f78fb04242cf --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteMapContextConfigRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface DeleteMapContextConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the MapContextConfig to delete.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the MapContextConfig to delete.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * 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-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteStyleConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteStyleConfigRequest.java new file mode 100644 index 000000000000..1656123597c6 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteStyleConfigRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to delete a StyleConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest} + */ +@com.google.protobuf.Generated +public final class DeleteStyleConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) + DeleteStyleConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteStyleConfigRequest"); + } + + // Use DeleteStyleConfigRequest.newBuilder() to construct. + private DeleteStyleConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteStyleConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the StyleConfig to delete.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * 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. Resource name of the StyleConfig to delete.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.DeleteStyleConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest other = + (com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) 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.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest 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.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.DeleteStyleConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to delete a StyleConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest build() { + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest result = + new com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest.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. Resource name of the StyleConfig to delete.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig to delete.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig to delete.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig to delete.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig to delete.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStyleConfigRequest 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.maps.mapmanagement.v2beta.DeleteStyleConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteStyleConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteStyleConfigRequestOrBuilder.java new file mode 100644 index 000000000000..0eb8f0e223b0 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/DeleteStyleConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface DeleteStyleConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the StyleConfig to delete.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the StyleConfig to delete.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * 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-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapConfigRequest.java new file mode 100644 index 000000000000..46ddc52c028d --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapConfigRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to get a MapConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.GetMapConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetMapConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.GetMapConfigRequest) + GetMapConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMapConfigRequest"); + } + + // Use GetMapConfigRequest.newBuilder() to construct. + private GetMapConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMapConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the MapConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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. Resource name of the MapConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.GetMapConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest other = + (com.google.maps.mapmanagement.v2beta.GetMapConfigRequest) 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.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest 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.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.GetMapConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to get a MapConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.GetMapConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.GetMapConfigRequest) + com.google.maps.mapmanagement.v2beta.GetMapConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetMapConfigRequest getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetMapConfigRequest build() { + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetMapConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.GetMapConfigRequest result = + new com.google.maps.mapmanagement.v2beta.GetMapConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.GetMapConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.GetMapConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.GetMapConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.GetMapConfigRequest other) { + if (other == com.google.maps.mapmanagement.v2beta.GetMapConfigRequest.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. Resource name of the MapConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Resource name of the MapConfig.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.GetMapConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.GetMapConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.GetMapConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.GetMapConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMapConfigRequest 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.maps.mapmanagement.v2beta.GetMapConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapConfigRequestOrBuilder.java new file mode 100644 index 000000000000..17e0603d8512 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface GetMapConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.GetMapConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the MapConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the MapConfig.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapContextConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapContextConfigRequest.java new file mode 100644 index 000000000000..8754dc684e40 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapContextConfigRequest.java @@ -0,0 +1,632 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to get a MapContextConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.GetMapContextConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetMapContextConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) + GetMapContextConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMapContextConfigRequest"); + } + + // Use GetMapContextConfigRequest.newBuilder() to construct. + private GetMapContextConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMapContextConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the MapContextConfig.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * 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. Resource name of the MapContextConfig.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.GetMapContextConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest other = + (com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) 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.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest 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.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.GetMapContextConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to get a MapContextConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.GetMapContextConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest build() { + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest result = + new com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest.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. Resource name of the MapContextConfig.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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. Resource name of the MapContextConfig.
+     * Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMapContextConfigRequest 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.maps.mapmanagement.v2beta.GetMapContextConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapContextConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapContextConfigRequestOrBuilder.java new file mode 100644 index 000000000000..9f82a8db0b14 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetMapContextConfigRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface GetMapContextConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.GetMapContextConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the MapContextConfig.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the MapContextConfig.
+   * Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * 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-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetStyleConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetStyleConfigRequest.java new file mode 100644 index 000000000000..bf447d21a336 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetStyleConfigRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to get a StyleConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.GetStyleConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetStyleConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.GetStyleConfigRequest) + GetStyleConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetStyleConfigRequest"); + } + + // Use GetStyleConfigRequest.newBuilder() to construct. + private GetStyleConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetStyleConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the StyleConfig.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * 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. Resource name of the StyleConfig.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.GetStyleConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest other = + (com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest) 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.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest 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.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.GetStyleConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to get a StyleConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.GetStyleConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.GetStyleConfigRequest) + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest build() { + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest result = + new com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest other) { + if (other == com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest.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. Resource name of the StyleConfig.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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. Resource name of the StyleConfig.
+     * Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.GetStyleConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.GetStyleConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStyleConfigRequest 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.maps.mapmanagement.v2beta.GetStyleConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetStyleConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetStyleConfigRequestOrBuilder.java new file mode 100644 index 000000000000..2957a26fe684 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/GetStyleConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface GetStyleConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.GetStyleConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the StyleConfig.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the StyleConfig.
+   * Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * 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-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsRequest.java new file mode 100644 index 000000000000..b2c13e068755 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsRequest.java @@ -0,0 +1,951 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to list MapConfigs.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListMapConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.ListMapConfigsRequest) + ListMapConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMapConfigsRequest"); + } + + // Use ListMapConfigsRequest.newBuilder() to construct. + private ListMapConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMapConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.class, + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent project that owns the MapConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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. Parent project that owns the MapConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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 MapConfigs to return. The service may
+   * return fewer than this value. If unspecified, at most 50 MapConfigs will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000. CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapConfigsRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest other = + (com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest) 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.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest 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.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapConfigsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to list MapConfigs.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.ListMapConfigsRequest) + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.class, + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest build() { + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest result = + new com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest other) { + if (other == com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest.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. Parent project that owns the MapConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the MapConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the MapConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the MapConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the MapConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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 MapConfigs to return. The service may
+     * return fewer than this value. If unspecified, at most 50 MapConfigs will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 MapConfigs to return. The service may
+     * return fewer than this value. If unspecified, at most 50 MapConfigs will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 MapConfigs to return. The service may
+     * return fewer than this value. If unspecified, at most 50 MapConfigs will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.ListMapConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.ListMapConfigsRequest) + private static final com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMapConfigsRequest 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.maps.mapmanagement.v2beta.ListMapConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..ce3af1dfa2cf --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface ListMapConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.ListMapConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent project that owns the MapConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent project that owns the MapConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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 MapConfigs to return. The service may
+   * return fewer than this value. If unspecified, at most 50 MapConfigs will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000. CURRENTLY UNSUPPORTED.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListMapConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListMapConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsResponse.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsResponse.java new file mode 100644 index 000000000000..31f3432469b6 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsResponse.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Response to list MapConfigs.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListMapConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.ListMapConfigsResponse) + ListMapConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMapConfigsResponse"); + } + + // Use ListMapConfigsResponse.newBuilder() to construct. + private ListMapConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMapConfigsResponse() { + mapConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.class, + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.Builder.class); + } + + public static final int MAP_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mapConfigs_; + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + @java.lang.Override + public java.util.List getMapConfigsList() { + return mapConfigs_; + } + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + @java.lang.Override + public java.util.List + getMapConfigsOrBuilderList() { + return mapConfigs_; + } + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + @java.lang.Override + public int getMapConfigsCount() { + return mapConfigs_.size(); + } + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfigs(int index) { + return mapConfigs_.get(index); + } + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigsOrBuilder(int index) { + return mapConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 < mapConfigs_.size(); i++) { + output.writeMessage(1, mapConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < mapConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mapConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapConfigsResponse)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse other = + (com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse) obj; + + if (!getMapConfigsList().equals(other.getMapConfigsList())) 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 (getMapConfigsCount() > 0) { + hash = (37 * hash) + MAP_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getMapConfigsList().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.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse 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.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapConfigsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response to list MapConfigs.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.ListMapConfigsResponse) + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.class, + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mapConfigsBuilder_ == null) { + mapConfigs_ = java.util.Collections.emptyList(); + } else { + mapConfigs_ = null; + mapConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse build() { + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse buildPartial() { + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse result = + new com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse result) { + if (mapConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mapConfigs_ = java.util.Collections.unmodifiableList(mapConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mapConfigs_ = mapConfigs_; + } else { + result.mapConfigs_ = mapConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse other) { + if (other == com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse.getDefaultInstance()) + return this; + if (mapConfigsBuilder_ == null) { + if (!other.mapConfigs_.isEmpty()) { + if (mapConfigs_.isEmpty()) { + mapConfigs_ = other.mapConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMapConfigsIsMutable(); + mapConfigs_.addAll(other.mapConfigs_); + } + onChanged(); + } + } else { + if (!other.mapConfigs_.isEmpty()) { + if (mapConfigsBuilder_.isEmpty()) { + mapConfigsBuilder_.dispose(); + mapConfigsBuilder_ = null; + mapConfigs_ = other.mapConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + mapConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMapConfigsFieldBuilder() + : null; + } else { + mapConfigsBuilder_.addAllMessages(other.mapConfigs_); + } + } + } + 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.maps.mapmanagement.v2beta.MapConfig m = + input.readMessage( + com.google.maps.mapmanagement.v2beta.MapConfig.parser(), extensionRegistry); + if (mapConfigsBuilder_ == null) { + ensureMapConfigsIsMutable(); + mapConfigs_.add(m); + } else { + mapConfigsBuilder_.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 mapConfigs_ = + java.util.Collections.emptyList(); + + private void ensureMapConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mapConfigs_ = + new java.util.ArrayList(mapConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder> + mapConfigsBuilder_; + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public java.util.List getMapConfigsList() { + if (mapConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mapConfigs_); + } else { + return mapConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public int getMapConfigsCount() { + if (mapConfigsBuilder_ == null) { + return mapConfigs_.size(); + } else { + return mapConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfigs(int index) { + if (mapConfigsBuilder_ == null) { + return mapConfigs_.get(index); + } else { + return mapConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder setMapConfigs(int index, com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapConfigsIsMutable(); + mapConfigs_.set(index, value); + onChanged(); + } else { + mapConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder setMapConfigs( + int index, com.google.maps.mapmanagement.v2beta.MapConfig.Builder builderForValue) { + if (mapConfigsBuilder_ == null) { + ensureMapConfigsIsMutable(); + mapConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + mapConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder addMapConfigs(com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapConfigsIsMutable(); + mapConfigs_.add(value); + onChanged(); + } else { + mapConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder addMapConfigs(int index, com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapConfigsIsMutable(); + mapConfigs_.add(index, value); + onChanged(); + } else { + mapConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder addMapConfigs( + com.google.maps.mapmanagement.v2beta.MapConfig.Builder builderForValue) { + if (mapConfigsBuilder_ == null) { + ensureMapConfigsIsMutable(); + mapConfigs_.add(builderForValue.build()); + onChanged(); + } else { + mapConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder addMapConfigs( + int index, com.google.maps.mapmanagement.v2beta.MapConfig.Builder builderForValue) { + if (mapConfigsBuilder_ == null) { + ensureMapConfigsIsMutable(); + mapConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + mapConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder addAllMapConfigs( + java.lang.Iterable values) { + if (mapConfigsBuilder_ == null) { + ensureMapConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mapConfigs_); + onChanged(); + } else { + mapConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder clearMapConfigs() { + if (mapConfigsBuilder_ == null) { + mapConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mapConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public Builder removeMapConfigs(int index) { + if (mapConfigsBuilder_ == null) { + ensureMapConfigsIsMutable(); + mapConfigs_.remove(index); + onChanged(); + } else { + mapConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.MapConfig.Builder getMapConfigsBuilder(int index) { + return internalGetMapConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigsOrBuilder( + int index) { + if (mapConfigsBuilder_ == null) { + return mapConfigs_.get(index); + } else { + return mapConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public java.util.List + getMapConfigsOrBuilderList() { + if (mapConfigsBuilder_ != null) { + return mapConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mapConfigs_); + } + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.MapConfig.Builder addMapConfigsBuilder() { + return internalGetMapConfigsFieldBuilder() + .addBuilder(com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.MapConfig.Builder addMapConfigsBuilder(int index) { + return internalGetMapConfigsFieldBuilder() + .addBuilder(index, com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of MapConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + public java.util.List + getMapConfigsBuilderList() { + return internalGetMapConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder> + internalGetMapConfigsFieldBuilder() { + if (mapConfigsBuilder_ == null) { + mapConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder>( + mapConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + mapConfigs_ = null; + } + return mapConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.ListMapConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.ListMapConfigsResponse) + private static final com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse(); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMapConfigsResponse 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.maps.mapmanagement.v2beta.ListMapConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsResponseOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..96e843d4f299 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapConfigsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface ListMapConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.ListMapConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + java.util.List getMapConfigsList(); + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + com.google.maps.mapmanagement.v2beta.MapConfig getMapConfigs(int index); + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + int getMapConfigsCount(); + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + java.util.List + getMapConfigsOrBuilderList(); + + /** + * + * + *
+   * The list of MapConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapConfig map_configs = 1; + */ + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsRequest.java new file mode 100644 index 000000000000..48f08df3cbaa --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsRequest.java @@ -0,0 +1,953 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to list MapContextConfigs.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListMapContextConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) + ListMapContextConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMapContextConfigsRequest"); + } + + // Use ListMapContextConfigsRequest.newBuilder() to construct. + private ListMapContextConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMapContextConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.class, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent MapConfig that owns the MapContextConfigs.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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. Parent MapConfig that owns the MapContextConfigs.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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 MapContextConfigs to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * MapContextConfigs will be returned. The maximum value is 1000; values above
+   * 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapContextConfigs`
+   * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapContextConfigs`
+   * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapContextConfigsRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest other = + (com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) 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.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest 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.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapContextConfigsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to list MapContextConfigs.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.class, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.Builder.class); + } + + // Construct using + // com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest build() { + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest result = + new com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest.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. Parent MapConfig that owns the MapContextConfigs.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that owns the MapContextConfigs.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that owns the MapContextConfigs.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that owns the MapContextConfigs.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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. Parent MapConfig that owns the MapContextConfigs.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * 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 MapContextConfigs to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * MapContextConfigs will be returned. The maximum value is 1000; values above
+     * 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 MapContextConfigs to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * MapContextConfigs will be returned. The maximum value is 1000; values above
+     * 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 MapContextConfigs to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * MapContextConfigs will be returned. The maximum value is 1000; values above
+     * 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapContextConfigs`
+     * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapContextConfigs`
+     * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapContextConfigs`
+     * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapContextConfigs`
+     * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListMapContextConfigs`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListMapContextConfigs`
+     * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) + private static final com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMapContextConfigsRequest 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.maps.mapmanagement.v2beta.ListMapContextConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..bdd860423038 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface ListMapContextConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent MapConfig that owns the MapContextConfigs.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent MapConfig that owns the MapContextConfigs.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * 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 MapContextConfigs to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * MapContextConfigs will be returned. The maximum value is 1000; values above
+   * 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListMapContextConfigs`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapContextConfigs`
+   * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListMapContextConfigs`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListMapContextConfigs`
+   * must match the call that provided the page token. CURRENTLY UNSUPPORTED.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsResponse.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsResponse.java new file mode 100644 index 000000000000..456d6b8d7d4e --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsResponse.java @@ -0,0 +1,1180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Response to list MapContextConfigs.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListMapContextConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) + ListMapContextConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMapContextConfigsResponse"); + } + + // Use ListMapContextConfigsResponse.newBuilder() to construct. + private ListMapContextConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMapContextConfigsResponse() { + mapContextConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse.class, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse.Builder.class); + } + + public static final int MAP_CONTEXT_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mapContextConfigs_; + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getMapContextConfigsList() { + return mapContextConfigs_; + } + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getMapContextConfigsOrBuilderList() { + return mapContextConfigs_; + } + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + @java.lang.Override + public int getMapContextConfigsCount() { + return mapContextConfigs_.size(); + } + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfigs(int index) { + return mapContextConfigs_.get(index); + } + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder + getMapContextConfigsOrBuilder(int index) { + return mapContextConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 < mapContextConfigs_.size(); i++) { + output.writeMessage(1, mapContextConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < mapContextConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, mapContextConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapContextConfigsResponse)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse other = + (com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) obj; + + if (!getMapContextConfigsList().equals(other.getMapContextConfigsList())) 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 (getMapContextConfigsCount() > 0) { + hash = (37 * hash) + MAP_CONTEXT_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getMapContextConfigsList().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.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse 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.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListMapContextConfigsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response to list MapContextConfigs.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse.class, + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse.Builder.class); + } + + // Construct using + // com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mapContextConfigsBuilder_ == null) { + mapContextConfigs_ = java.util.Collections.emptyList(); + } else { + mapContextConfigs_ = null; + mapContextConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse build() { + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse buildPartial() { + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse result = + new com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse result) { + if (mapContextConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mapContextConfigs_ = java.util.Collections.unmodifiableList(mapContextConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mapContextConfigs_ = mapContextConfigs_; + } else { + result.mapContextConfigs_ = mapContextConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) { + return mergeFrom( + (com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse other) { + if (other + == com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + .getDefaultInstance()) return this; + if (mapContextConfigsBuilder_ == null) { + if (!other.mapContextConfigs_.isEmpty()) { + if (mapContextConfigs_.isEmpty()) { + mapContextConfigs_ = other.mapContextConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.addAll(other.mapContextConfigs_); + } + onChanged(); + } + } else { + if (!other.mapContextConfigs_.isEmpty()) { + if (mapContextConfigsBuilder_.isEmpty()) { + mapContextConfigsBuilder_.dispose(); + mapContextConfigsBuilder_ = null; + mapContextConfigs_ = other.mapContextConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + mapContextConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMapContextConfigsFieldBuilder() + : null; + } else { + mapContextConfigsBuilder_.addAllMessages(other.mapContextConfigs_); + } + } + } + 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.maps.mapmanagement.v2beta.MapContextConfig m = + input.readMessage( + com.google.maps.mapmanagement.v2beta.MapContextConfig.parser(), + extensionRegistry); + if (mapContextConfigsBuilder_ == null) { + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.add(m); + } else { + mapContextConfigsBuilder_.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 + mapContextConfigs_ = java.util.Collections.emptyList(); + + private void ensureMapContextConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mapContextConfigs_ = + new java.util.ArrayList( + mapContextConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder> + mapContextConfigsBuilder_; + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public java.util.List + getMapContextConfigsList() { + if (mapContextConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mapContextConfigs_); + } else { + return mapContextConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public int getMapContextConfigsCount() { + if (mapContextConfigsBuilder_ == null) { + return mapContextConfigs_.size(); + } else { + return mapContextConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfigs(int index) { + if (mapContextConfigsBuilder_ == null) { + return mapContextConfigs_.get(index); + } else { + return mapContextConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder setMapContextConfigs( + int index, com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.set(index, value); + onChanged(); + } else { + mapContextConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder setMapContextConfigs( + int index, com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder builderForValue) { + if (mapContextConfigsBuilder_ == null) { + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + mapContextConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder addMapContextConfigs( + com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.add(value); + onChanged(); + } else { + mapContextConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder addMapContextConfigs( + int index, com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.add(index, value); + onChanged(); + } else { + mapContextConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder addMapContextConfigs( + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder builderForValue) { + if (mapContextConfigsBuilder_ == null) { + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.add(builderForValue.build()); + onChanged(); + } else { + mapContextConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder addMapContextConfigs( + int index, com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder builderForValue) { + if (mapContextConfigsBuilder_ == null) { + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + mapContextConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder addAllMapContextConfigs( + java.lang.Iterable + values) { + if (mapContextConfigsBuilder_ == null) { + ensureMapContextConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mapContextConfigs_); + onChanged(); + } else { + mapContextConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder clearMapContextConfigs() { + if (mapContextConfigsBuilder_ == null) { + mapContextConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mapContextConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public Builder removeMapContextConfigs(int index) { + if (mapContextConfigsBuilder_ == null) { + ensureMapContextConfigsIsMutable(); + mapContextConfigs_.remove(index); + onChanged(); + } else { + mapContextConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder + getMapContextConfigsBuilder(int index) { + return internalGetMapContextConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder + getMapContextConfigsOrBuilder(int index) { + if (mapContextConfigsBuilder_ == null) { + return mapContextConfigs_.get(index); + } else { + return mapContextConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public java.util.List + getMapContextConfigsOrBuilderList() { + if (mapContextConfigsBuilder_ != null) { + return mapContextConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mapContextConfigs_); + } + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder + addMapContextConfigsBuilder() { + return internalGetMapContextConfigsFieldBuilder() + .addBuilder(com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder + addMapContextConfigsBuilder(int index) { + return internalGetMapContextConfigsFieldBuilder() + .addBuilder( + index, com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * The MapContextConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + public java.util.List + getMapContextConfigsBuilderList() { + return internalGetMapContextConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder> + internalGetMapContextConfigsFieldBuilder() { + if (mapContextConfigsBuilder_ == null) { + mapContextConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder>( + mapContextConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mapContextConfigs_ = null; + } + return mapContextConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) + private static final com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse(); + } + + public static com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMapContextConfigsResponse 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.maps.mapmanagement.v2beta.ListMapContextConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsResponseOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..68f4d0c90a9f --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListMapContextConfigsResponseOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface ListMapContextConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + java.util.List getMapContextConfigsList(); + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfigs(int index); + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + int getMapContextConfigsCount(); + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + java.util.List + getMapContextConfigsOrBuilderList(); + + /** + * + * + *
+   * The MapContextConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig map_context_configs = 1; + * + */ + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder getMapContextConfigsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsRequest.java new file mode 100644 index 000000000000..c2b94cde6768 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsRequest.java @@ -0,0 +1,1349 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to list StyleConfigs.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListStyleConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListStyleConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) + ListStyleConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListStyleConfigsRequest"); + } + + // Use ListStyleConfigsRequest.newBuilder() to construct. + private ListStyleConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListStyleConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + view_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.class, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent project that owns the StyleConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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. Parent project that owns the StyleConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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 StyleConfigs to return. The service may
+   * return fewer than this value. If unspecified, at most 50 StyleConfigs will
+   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * to 1000. CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListStyleConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListStyleConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+   * Currently only supports filtering by display_name.
+   * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+   * with the display name "My StyleConfig".
+   * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+   * Currently only supports filtering by display_name.
+   * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+   * with the display name "My StyleConfig".
+   * 
+ * + * 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 VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + + /** + * + * + *
+   * Optional. The subset of the StyleConfig to return. If this is unset, the
+   * default behavior is to return the FULL view.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+   * Optional. The subset of the StyleConfig to return. If this is unset, the
+   * default behavior is to return the FULL view.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfigView getView() { + com.google.maps.mapmanagement.v2beta.StyleConfigView result = + com.google.maps.mapmanagement.v2beta.StyleConfigView.forNumber(view_); + return result == null + ? com.google.maps.mapmanagement.v2beta.StyleConfigView.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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (view_ + != com.google.maps.mapmanagement.v2beta.StyleConfigView.STYLE_CONFIG_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (view_ + != com.google.maps.mapmanagement.v2beta.StyleConfigView.STYLE_CONFIG_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } + 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.maps.mapmanagement.v2beta.ListStyleConfigsRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest other = + (com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) 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 (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest 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.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListStyleConfigsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to list StyleConfigs.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListStyleConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.class, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest build() { + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest result = + new com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest 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.view_ = view_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest.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.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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. Parent project that owns the StyleConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the StyleConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the StyleConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the StyleConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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. Parent project that owns the StyleConfigs.
+     * Format: `projects/{project}`
+     * 
+ * + * + * 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 StyleConfigs to return. The service may
+     * return fewer than this value. If unspecified, at most 50 StyleConfigs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 StyleConfigs to return. The service may
+     * return fewer than this value. If unspecified, at most 50 StyleConfigs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 StyleConfigs to return. The service may
+     * return fewer than this value. If unspecified, at most 50 StyleConfigs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000. CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListStyleConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListStyleConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListStyleConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListStyleConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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 page token, received from a previous `ListStyleConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListStyleConfigs` must
+     * match the call that provided the page token.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+     * Currently only supports filtering by display_name.
+     * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+     * with the display name "My StyleConfig".
+     * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+     * Currently only supports filtering by display_name.
+     * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+     * with the display name "My StyleConfig".
+     * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+     * Currently only supports filtering by display_name.
+     * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+     * with the display name "My StyleConfig".
+     * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+     * Currently only supports filtering by display_name.
+     * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+     * with the display name "My StyleConfig".
+     * 
+ * + * 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. Filter expression for the ListStyleConfigs call.
+     * Currently only supports filtering by display_name.
+     * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+     * with the display name "My StyleConfig".
+     * 
+ * + * 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 int view_ = 0; + + /** + * + * + *
+     * Optional. The subset of the StyleConfig to return. If this is unset, the
+     * default behavior is to return the FULL view.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+     * Optional. The subset of the StyleConfig to return. If this is unset, the
+     * default behavior is to return the FULL view.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The subset of the StyleConfig to return. If this is unset, the
+     * default behavior is to return the FULL view.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfigView getView() { + com.google.maps.mapmanagement.v2beta.StyleConfigView result = + com.google.maps.mapmanagement.v2beta.StyleConfigView.forNumber(view_); + return result == null + ? com.google.maps.mapmanagement.v2beta.StyleConfigView.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The subset of the StyleConfig to return. If this is unset, the
+     * default behavior is to return the FULL view.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.maps.mapmanagement.v2beta.StyleConfigView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The subset of the StyleConfig to return. If this is unset, the
+     * default behavior is to return the FULL view.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) + private static final com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStyleConfigsRequest 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.maps.mapmanagement.v2beta.ListStyleConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..f56e05e5547c --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface ListStyleConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.ListStyleConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent project that owns the StyleConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent project that owns the StyleConfigs.
+   * Format: `projects/{project}`
+   * 
+ * + * + * 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 StyleConfigs to return. The service may
+   * return fewer than this value. If unspecified, at most 50 StyleConfigs will
+   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * to 1000. CURRENTLY UNSUPPORTED.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListStyleConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListStyleConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListStyleConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListStyleConfigs` must
+   * match the call that provided the page token.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter expression for the ListStyleConfigs call.
+   * Currently only supports filtering by display_name.
+   * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+   * with the display name "My StyleConfig".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter expression for the ListStyleConfigs call.
+   * Currently only supports filtering by display_name.
+   * For example: `display_name="My StyleConfig"` will return all StyleConfigs
+   * with the display name "My StyleConfig".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The subset of the StyleConfig to return. If this is unset, the
+   * default behavior is to return the FULL view.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
+   * Optional. The subset of the StyleConfig to return. If this is unset, the
+   * default behavior is to return the FULL view.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfigView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.maps.mapmanagement.v2beta.StyleConfigView getView(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsResponse.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsResponse.java new file mode 100644 index 000000000000..ef52d4d32d48 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Response to list StyleConfigs.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListStyleConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListStyleConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) + ListStyleConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListStyleConfigsResponse"); + } + + // Use ListStyleConfigsResponse.newBuilder() to construct. + private ListStyleConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListStyleConfigsResponse() { + styleConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.class, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.Builder.class); + } + + public static final int STYLE_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List styleConfigs_; + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + @java.lang.Override + public java.util.List getStyleConfigsList() { + return styleConfigs_; + } + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + @java.lang.Override + public java.util.List + getStyleConfigsOrBuilderList() { + return styleConfigs_; + } + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + @java.lang.Override + public int getStyleConfigsCount() { + return styleConfigs_.size(); + } + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfigs(int index) { + return styleConfigs_.get(index); + } + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigsOrBuilder( + int index) { + return styleConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * 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 < styleConfigs_.size(); i++) { + output.writeMessage(1, styleConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < styleConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, styleConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListStyleConfigsResponse)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse other = + (com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) obj; + + if (!getStyleConfigsList().equals(other.getStyleConfigsList())) 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 (getStyleConfigsCount() > 0) { + hash = (37 * hash) + STYLE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getStyleConfigsList().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.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse 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.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.ListStyleConfigsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response to list StyleConfigs.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.ListStyleConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.class, + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (styleConfigsBuilder_ == null) { + styleConfigs_ = java.util.Collections.emptyList(); + } else { + styleConfigs_ = null; + styleConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse build() { + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse buildPartial() { + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse result = + new com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse result) { + if (styleConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + styleConfigs_ = java.util.Collections.unmodifiableList(styleConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.styleConfigs_ = styleConfigs_; + } else { + result.styleConfigs_ = styleConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse other) { + if (other + == com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse.getDefaultInstance()) + return this; + if (styleConfigsBuilder_ == null) { + if (!other.styleConfigs_.isEmpty()) { + if (styleConfigs_.isEmpty()) { + styleConfigs_ = other.styleConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStyleConfigsIsMutable(); + styleConfigs_.addAll(other.styleConfigs_); + } + onChanged(); + } + } else { + if (!other.styleConfigs_.isEmpty()) { + if (styleConfigsBuilder_.isEmpty()) { + styleConfigsBuilder_.dispose(); + styleConfigsBuilder_ = null; + styleConfigs_ = other.styleConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + styleConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetStyleConfigsFieldBuilder() + : null; + } else { + styleConfigsBuilder_.addAllMessages(other.styleConfigs_); + } + } + } + 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.maps.mapmanagement.v2beta.StyleConfig m = + input.readMessage( + com.google.maps.mapmanagement.v2beta.StyleConfig.parser(), + extensionRegistry); + if (styleConfigsBuilder_ == null) { + ensureStyleConfigsIsMutable(); + styleConfigs_.add(m); + } else { + styleConfigsBuilder_.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 styleConfigs_ = + java.util.Collections.emptyList(); + + private void ensureStyleConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + styleConfigs_ = + new java.util.ArrayList( + styleConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder> + styleConfigsBuilder_; + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public java.util.List getStyleConfigsList() { + if (styleConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(styleConfigs_); + } else { + return styleConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public int getStyleConfigsCount() { + if (styleConfigsBuilder_ == null) { + return styleConfigs_.size(); + } else { + return styleConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfigs(int index) { + if (styleConfigsBuilder_ == null) { + return styleConfigs_.get(index); + } else { + return styleConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder setStyleConfigs( + int index, com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStyleConfigsIsMutable(); + styleConfigs_.set(index, value); + onChanged(); + } else { + styleConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder setStyleConfigs( + int index, com.google.maps.mapmanagement.v2beta.StyleConfig.Builder builderForValue) { + if (styleConfigsBuilder_ == null) { + ensureStyleConfigsIsMutable(); + styleConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + styleConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder addStyleConfigs(com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStyleConfigsIsMutable(); + styleConfigs_.add(value); + onChanged(); + } else { + styleConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder addStyleConfigs( + int index, com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStyleConfigsIsMutable(); + styleConfigs_.add(index, value); + onChanged(); + } else { + styleConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder addStyleConfigs( + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder builderForValue) { + if (styleConfigsBuilder_ == null) { + ensureStyleConfigsIsMutable(); + styleConfigs_.add(builderForValue.build()); + onChanged(); + } else { + styleConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder addStyleConfigs( + int index, com.google.maps.mapmanagement.v2beta.StyleConfig.Builder builderForValue) { + if (styleConfigsBuilder_ == null) { + ensureStyleConfigsIsMutable(); + styleConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + styleConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder addAllStyleConfigs( + java.lang.Iterable values) { + if (styleConfigsBuilder_ == null) { + ensureStyleConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, styleConfigs_); + onChanged(); + } else { + styleConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder clearStyleConfigs() { + if (styleConfigsBuilder_ == null) { + styleConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + styleConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public Builder removeStyleConfigs(int index) { + if (styleConfigsBuilder_ == null) { + ensureStyleConfigsIsMutable(); + styleConfigs_.remove(index); + onChanged(); + } else { + styleConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig.Builder getStyleConfigsBuilder( + int index) { + return internalGetStyleConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigsOrBuilder( + int index) { + if (styleConfigsBuilder_ == null) { + return styleConfigs_.get(index); + } else { + return styleConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public java.util.List + getStyleConfigsOrBuilderList() { + if (styleConfigsBuilder_ != null) { + return styleConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(styleConfigs_); + } + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig.Builder addStyleConfigsBuilder() { + return internalGetStyleConfigsFieldBuilder() + .addBuilder(com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig.Builder addStyleConfigsBuilder( + int index) { + return internalGetStyleConfigsFieldBuilder() + .addBuilder(index, com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * The StyleConfigs.
+     * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + public java.util.List + getStyleConfigsBuilderList() { + return internalGetStyleConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder> + internalGetStyleConfigsFieldBuilder() { + if (styleConfigsBuilder_ == null) { + styleConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder>( + styleConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + styleConfigs_ = null; + } + return styleConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * CURRENTLY UNSUPPORTED.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) + private static final com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse(); + } + + public static com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStyleConfigsResponse 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.maps.mapmanagement.v2beta.ListStyleConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsResponseOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..bf6c395184bf --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ListStyleConfigsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface ListStyleConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.ListStyleConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + java.util.List getStyleConfigsList(); + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfigs(int index); + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + int getStyleConfigsCount(); + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + java.util.List + getStyleConfigsOrBuilderList(); + + /** + * + * + *
+   * The StyleConfigs.
+   * 
+ * + * repeated .google.maps.mapmanagement.v2beta.StyleConfig style_configs = 1; + */ + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * CURRENTLY UNSUPPORTED.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfig.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfig.java new file mode 100644 index 000000000000..7b8db00af712 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfig.java @@ -0,0 +1,2313 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Represents a single map in a Maps API client application. The MapConfig is
+ * the parent resource of MapContextConfigs and enables custom styling in SDKs
+ * (Mobile/Web). A MapConfig can have multiple MapContextConfigs, each applying
+ * styling to specific map variants.
+ * Next ID = 9;
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.MapConfig} + */ +@com.google.protobuf.Generated +public final class MapConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.MapConfig) + MapConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapConfig"); + } + + // Use MapConfig.newBuilder() to construct. + private MapConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MapConfig() { + name_ = ""; + displayName_ = ""; + description_ = ""; + mapId_ = ""; + mapType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.MapConfig.class, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapConfig.
+   * For example: "projects/my-project-123/mapConfigs/234".
+   * Output only.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapConfig.
+   * For example: "projects/my-project-123/mapConfigs/234".
+   * Output only.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. The display name of this MapConfig, as specified by the user.
+   * 
+ * + * 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. The display name of this MapConfig, as specified by the user.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The description of this MapConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The description of this MapConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAP_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object mapId_ = ""; + + /** + * + * + *
+   * Output only. The Map ID of this MapConfig, used to identify the map in
+   * client applications. This read-only field is generated when the MapConfig
+   * is created. Output only.
+   * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mapId. + */ + @java.lang.Override + public java.lang.String getMapId() { + java.lang.Object ref = mapId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mapId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Map ID of this MapConfig, used to identify the map in
+   * client applications. This read-only field is generated when the MapConfig
+   * is created. Output only.
+   * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mapId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMapIdBytes() { + java.lang.Object ref = mapId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mapId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAP_FEATURES_FIELD_NUMBER = 5; + private com.google.maps.mapmanagement.v2beta.MapFeatures mapFeatures_; + + /** + * + * + *
+   * Optional. The Map Features that apply to this Map Config.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mapFeatures field is set. + */ + @java.lang.Override + public boolean hasMapFeatures() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The Map Features that apply to this Map Config.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mapFeatures. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapFeatures getMapFeatures() { + return mapFeatures_ == null + ? com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance() + : mapFeatures_; + } + + /** + * + * + *
+   * Optional. The Map Features that apply to this Map Config.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder getMapFeaturesOrBuilder() { + return mapFeatures_ == null + ? com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance() + : mapFeatures_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Denotes the creation time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.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. Denotes the creation time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.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. Denotes the creation time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Denotes the last update time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Denotes the last update time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Denotes the last update time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int MAP_TYPE_FIELD_NUMBER = 8; + private int mapType_ = 0; + + /** + * + * + *
+   * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+   * default behavior is to use the raster map type.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mapType. + */ + @java.lang.Override + public int getMapTypeValue() { + return mapType_; + } + + /** + * + * + *
+   * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+   * default behavior is to use the raster map type.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mapType. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapRenderingType getMapType() { + com.google.maps.mapmanagement.v2beta.MapRenderingType result = + com.google.maps.mapmanagement.v2beta.MapRenderingType.forNumber(mapType_); + return result == null + ? com.google.maps.mapmanagement.v2beta.MapRenderingType.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mapId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, mapId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getMapFeatures()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (mapType_ != com.google.maps.mapmanagement.v2beta.MapRenderingType.RASTER.getNumber()) { + output.writeEnum(8, mapType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mapId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, mapId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMapFeatures()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (mapType_ != com.google.maps.mapmanagement.v2beta.MapRenderingType.RASTER.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, mapType_); + } + 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.maps.mapmanagement.v2beta.MapConfig)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.MapConfig other = + (com.google.maps.mapmanagement.v2beta.MapConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getMapId().equals(other.getMapId())) return false; + if (hasMapFeatures() != other.hasMapFeatures()) return false; + if (hasMapFeatures()) { + if (!getMapFeatures().equals(other.getMapFeatures())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (mapType_ != other.mapType_) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MAP_ID_FIELD_NUMBER; + hash = (53 * hash) + getMapId().hashCode(); + if (hasMapFeatures()) { + hash = (37 * hash) + MAP_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getMapFeatures().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + MAP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + mapType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig 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.maps.mapmanagement.v2beta.MapConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a single map in a Maps API client application. The MapConfig is
+   * the parent resource of MapContextConfigs and enables custom styling in SDKs
+   * (Mobile/Web). A MapConfig can have multiple MapContextConfigs, each applying
+   * styling to specific map variants.
+   * Next ID = 9;
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.MapConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.MapConfig) + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.MapConfig.class, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.MapConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMapFeaturesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + mapId_ = ""; + mapFeatures_ = null; + if (mapFeaturesBuilder_ != null) { + mapFeaturesBuilder_.dispose(); + mapFeaturesBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + mapType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapConfig_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfig getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfig build() { + com.google.maps.mapmanagement.v2beta.MapConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfig buildPartial() { + com.google.maps.mapmanagement.v2beta.MapConfig result = + new com.google.maps.mapmanagement.v2beta.MapConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.MapConfig 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.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mapId_ = mapId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mapFeatures_ = + mapFeaturesBuilder_ == null ? mapFeatures_ : mapFeaturesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.mapType_ = mapType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.MapConfig) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.MapConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.MapConfig other) { + if (other == com.google.maps.mapmanagement.v2beta.MapConfig.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.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMapId().isEmpty()) { + mapId_ = other.mapId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasMapFeatures()) { + mergeMapFeatures(other.getMapFeatures()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.mapType_ != 0) { + setMapTypeValue(other.getMapTypeValue()); + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + mapId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMapFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + mapType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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_ = ""; + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapConfig.
+     * For example: "projects/my-project-123/mapConfigs/234".
+     * Output only.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapConfig.
+     * For example: "projects/my-project-123/mapConfigs/234".
+     * Output only.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapConfig.
+     * For example: "projects/my-project-123/mapConfigs/234".
+     * Output only.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapConfig.
+     * For example: "projects/my-project-123/mapConfigs/234".
+     * Output only.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapConfig.
+     * For example: "projects/my-project-123/mapConfigs/234".
+     * Output only.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. The display name of this MapConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this MapConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this MapConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this MapConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this MapConfig, as specified by the user.
+     * 
+ * + * 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 description_ = ""; + + /** + * + * + *
+     * Optional. The description of this MapConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The description of this MapConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The description of this MapConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of this MapConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of this MapConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object mapId_ = ""; + + /** + * + * + *
+     * Output only. The Map ID of this MapConfig, used to identify the map in
+     * client applications. This read-only field is generated when the MapConfig
+     * is created. Output only.
+     * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mapId. + */ + public java.lang.String getMapId() { + java.lang.Object ref = mapId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mapId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Map ID of this MapConfig, used to identify the map in
+     * client applications. This read-only field is generated when the MapConfig
+     * is created. Output only.
+     * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mapId. + */ + public com.google.protobuf.ByteString getMapIdBytes() { + java.lang.Object ref = mapId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mapId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Map ID of this MapConfig, used to identify the map in
+     * client applications. This read-only field is generated when the MapConfig
+     * is created. Output only.
+     * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mapId to set. + * @return This builder for chaining. + */ + public Builder setMapId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mapId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Map ID of this MapConfig, used to identify the map in
+     * client applications. This read-only field is generated when the MapConfig
+     * is created. Output only.
+     * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMapId() { + mapId_ = getDefaultInstance().getMapId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Map ID of this MapConfig, used to identify the map in
+     * client applications. This read-only field is generated when the MapConfig
+     * is created. Output only.
+     * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mapId to set. + * @return This builder for chaining. + */ + public Builder setMapIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mapId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.maps.mapmanagement.v2beta.MapFeatures mapFeatures_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapFeatures, + com.google.maps.mapmanagement.v2beta.MapFeatures.Builder, + com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder> + mapFeaturesBuilder_; + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mapFeatures field is set. + */ + public boolean hasMapFeatures() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mapFeatures. + */ + public com.google.maps.mapmanagement.v2beta.MapFeatures getMapFeatures() { + if (mapFeaturesBuilder_ == null) { + return mapFeatures_ == null + ? com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance() + : mapFeatures_; + } else { + return mapFeaturesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMapFeatures(com.google.maps.mapmanagement.v2beta.MapFeatures value) { + if (mapFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mapFeatures_ = value; + } else { + mapFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMapFeatures( + com.google.maps.mapmanagement.v2beta.MapFeatures.Builder builderForValue) { + if (mapFeaturesBuilder_ == null) { + mapFeatures_ = builderForValue.build(); + } else { + mapFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMapFeatures(com.google.maps.mapmanagement.v2beta.MapFeatures value) { + if (mapFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && mapFeatures_ != null + && mapFeatures_ + != com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance()) { + getMapFeaturesBuilder().mergeFrom(value); + } else { + mapFeatures_ = value; + } + } else { + mapFeaturesBuilder_.mergeFrom(value); + } + if (mapFeatures_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMapFeatures() { + bitField0_ = (bitField0_ & ~0x00000010); + mapFeatures_ = null; + if (mapFeaturesBuilder_ != null) { + mapFeaturesBuilder_.dispose(); + mapFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapFeatures.Builder getMapFeaturesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetMapFeaturesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder getMapFeaturesOrBuilder() { + if (mapFeaturesBuilder_ != null) { + return mapFeaturesBuilder_.getMessageOrBuilder(); + } else { + return mapFeatures_ == null + ? com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance() + : mapFeatures_; + } + } + + /** + * + * + *
+     * Optional. The Map Features that apply to this Map Config.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapFeatures, + com.google.maps.mapmanagement.v2beta.MapFeatures.Builder, + com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder> + internalGetMapFeaturesFieldBuilder() { + if (mapFeaturesBuilder_ == null) { + mapFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapFeatures, + com.google.maps.mapmanagement.v2beta.MapFeatures.Builder, + com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder>( + getMapFeatures(), getParentForChildren(), isClean()); + mapFeatures_ = null; + } + return mapFeaturesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.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. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.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. Denotes the creation time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the Map Config. Output only.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int mapType_ = 0; + + /** + * + * + *
+     * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+     * default behavior is to use the raster map type.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mapType. + */ + @java.lang.Override + public int getMapTypeValue() { + return mapType_; + } + + /** + * + * + *
+     * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+     * default behavior is to use the raster map type.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mapType to set. + * @return This builder for chaining. + */ + public Builder setMapTypeValue(int value) { + mapType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+     * default behavior is to use the raster map type.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mapType. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapRenderingType getMapType() { + com.google.maps.mapmanagement.v2beta.MapRenderingType result = + com.google.maps.mapmanagement.v2beta.MapRenderingType.forNumber(mapType_); + return result == null + ? com.google.maps.mapmanagement.v2beta.MapRenderingType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+     * default behavior is to use the raster map type.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mapType to set. + * @return This builder for chaining. + */ + public Builder setMapType(com.google.maps.mapmanagement.v2beta.MapRenderingType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + mapType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+     * default behavior is to use the raster map type.
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMapType() { + bitField0_ = (bitField0_ & ~0x00000080); + mapType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.MapConfig) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.MapConfig) + private static final com.google.maps.mapmanagement.v2beta.MapConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.MapConfig(); + } + + public static com.google.maps.mapmanagement.v2beta.MapConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapConfig 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.maps.mapmanagement.v2beta.MapConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java new file mode 100644 index 000000000000..d2a1eb24af46 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +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 MapConfigName implements ResourceName { + private static final PathTemplate PROJECT_MAP_CONFIG = + PathTemplate.createWithoutUrlEncoding("projects/{project}/mapConfigs/{map_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String mapConfig; + + @Deprecated + protected MapConfigName() { + project = null; + mapConfig = null; + } + + private MapConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + mapConfig = Preconditions.checkNotNull(builder.getMapConfig()); + } + + public String getProject() { + return project; + } + + public String getMapConfig() { + return mapConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MapConfigName of(String project, String mapConfig) { + return newBuilder().setProject(project).setMapConfig(mapConfig).build(); + } + + public static String format(String project, String mapConfig) { + return newBuilder().setProject(project).setMapConfig(mapConfig).build().toString(); + } + + public static MapConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_MAP_CONFIG.validatedMatch( + formattedString, "MapConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("map_config")); + } + + 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 (MapConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_MAP_CONFIG.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 (mapConfig != null) { + fieldMapBuilder.put("map_config", mapConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_MAP_CONFIG.instantiate("project", project, "map_config", mapConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MapConfigName that = ((MapConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.mapConfig, that.mapConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(mapConfig); + return h; + } + + /** Builder for projects/{project}/mapConfigs/{map_config}. */ + public static class Builder { + private String project; + private String mapConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getMapConfig() { + return mapConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setMapConfig(String mapConfig) { + this.mapConfig = mapConfig; + return this; + } + + private Builder(MapConfigName mapConfigName) { + this.project = mapConfigName.project; + this.mapConfig = mapConfigName.mapConfig; + } + + public MapConfigName build() { + return new MapConfigName(this); + } + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigOrBuilder.java new file mode 100644 index 000000000000..04d1e766d2c8 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigOrBuilder.java @@ -0,0 +1,305 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface MapConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.MapConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapConfig.
+   * For example: "projects/my-project-123/mapConfigs/234".
+   * Output only.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapConfig.
+   * For example: "projects/my-project-123/mapConfigs/234".
+   * Output only.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The display name of this MapConfig, as specified by the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of this MapConfig, as specified by the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The description of this MapConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The description of this MapConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The Map ID of this MapConfig, used to identify the map in
+   * client applications. This read-only field is generated when the MapConfig
+   * is created. Output only.
+   * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mapId. + */ + java.lang.String getMapId(); + + /** + * + * + *
+   * Output only. The Map ID of this MapConfig, used to identify the map in
+   * client applications. This read-only field is generated when the MapConfig
+   * is created. Output only.
+   * 
+ * + * string map_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mapId. + */ + com.google.protobuf.ByteString getMapIdBytes(); + + /** + * + * + *
+   * Optional. The Map Features that apply to this Map Config.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mapFeatures field is set. + */ + boolean hasMapFeatures(); + + /** + * + * + *
+   * Optional. The Map Features that apply to this Map Config.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mapFeatures. + */ + com.google.maps.mapmanagement.v2beta.MapFeatures getMapFeatures(); + + /** + * + * + *
+   * Optional. The Map Features that apply to this Map Config.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapFeatures map_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder getMapFeaturesOrBuilder(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the Map Config. Output only.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+   * default behavior is to use the raster map type.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mapType. + */ + int getMapTypeValue(); + + /** + * + * + *
+   * Optional. Represents the Map Type of the MapConfig. If this is unset, the
+   * default behavior is to use the raster map type.
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapRenderingType map_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mapType. + */ + com.google.maps.mapmanagement.v2beta.MapRenderingType getMapType(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfig.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfig.java new file mode 100644 index 000000000000..568906d4708c --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfig.java @@ -0,0 +1,3104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Encapsulates the styling configuration for a map. The MapContextConfig
+ * associates styling components, such as a StyleConfig and Datasets, with
+ * specific map variants of a MapConfig. When the MapConfig is loaded in an SDK,
+ * the styling and dataset information from the MapContextConfig are applied to
+ * the specified map variants.
+ * Next ID = 10;
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.MapContextConfig} + */ +@com.google.protobuf.Generated +public final class MapContextConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.MapContextConfig) + MapContextConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapContextConfig"); + } + + // Use MapContextConfig.newBuilder() to construct. + private MapContextConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MapContextConfig() { + name_ = ""; + mapConfig_ = ""; + styleConfig_ = ""; + dataset_ = com.google.protobuf.LazyStringArrayList.emptyList(); + alias_ = ""; + mapVariants_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.MapContextConfig.class, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder.class); + } + + /** + * + * + *
+   * Possible Map Variants that the MapContextConfig can be applied to.
+   * Map Variants are grouped into Light and Dark variants. A Light variant
+   * cannot be paired with a Dark variant for the same MapContextConfig.
+   * The Light Variants are: ROADMAP, SATELLITE, TERRAIN, NAVIGATION, TRANSIT,
+   * ABSTRACT3D, PHOTOREALISTIC3D.
+   * The Dark Variants are: ROADMAP_DARK, NAVIGATION_LOW_LIGHT, TERRAIN_DARK,
+   * TRANSIT_DARK.
+   *
+   * For example, the following is a valid pairing:
+   * {MapContextConfig 1: [ROADMAP, NAVIGATION]}
+   * {MapContextConfig 2: [ROADMAP_DARK, NAVIGATION_LOW_LIGHT]}
+   *
+   * The following is an invalid pairing:
+   * {MapContextConfig 1: [ROADMAP, ROADMAP_DARK]}
+   * 
+ * + * Protobuf enum {@code google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant} + */ + public enum MapVariant implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default roadmap map type. If no map variants are specified in a
+     * MapContextConfig, this variant is used by default.
+     * 
+ * + * ROADMAP = 0; + */ + ROADMAP(0), + /** + * + * + *
+     * A dark version of the roadmap map type.
+     * 
+ * + * ROADMAP_DARK = 1; + */ + ROADMAP_DARK(1), + /** + * + * + *
+     * Satellite imagery.
+     * 
+ * + * SATELLITE = 2; + */ + SATELLITE(2), + /** + * + * + *
+     * Terrain map type.
+     * 
+ * + * TERRAIN = 3; + */ + TERRAIN(3), + /** + * + * + *
+     * A dark version of the terrain map type.
+     * 
+ * + * TERRAIN_DARK = 4; + */ + TERRAIN_DARK(4), + /** + * + * + *
+     * Navigation map type.
+     * 
+ * + * NAVIGATION = 5; + */ + NAVIGATION(5), + /** + * + * + *
+     * A low light version of the navigation map type.
+     * 
+ * + * NAVIGATION_LOW_LIGHT = 6; + */ + NAVIGATION_LOW_LIGHT(6), + /** + * + * + *
+     * Transit map type.
+     * 
+ * + * TRANSIT = 7; + */ + TRANSIT(7), + /** + * + * + *
+     * A dark version of the transit map type.
+     * 
+ * + * TRANSIT_DARK = 8; + */ + TRANSIT_DARK(8), + /** + * + * + *
+     * Abstract 3D map type.
+     * 
+ * + * ABSTRACT3D = 9; + */ + ABSTRACT3D(9), + /** + * + * + *
+     * Photorealistic 3D map type.
+     * 
+ * + * PHOTOREALISTIC3D = 10; + */ + PHOTOREALISTIC3D(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapVariant"); + } + + /** + * + * + *
+     * The default roadmap map type. If no map variants are specified in a
+     * MapContextConfig, this variant is used by default.
+     * 
+ * + * ROADMAP = 0; + */ + public static final int ROADMAP_VALUE = 0; + + /** + * + * + *
+     * A dark version of the roadmap map type.
+     * 
+ * + * ROADMAP_DARK = 1; + */ + public static final int ROADMAP_DARK_VALUE = 1; + + /** + * + * + *
+     * Satellite imagery.
+     * 
+ * + * SATELLITE = 2; + */ + public static final int SATELLITE_VALUE = 2; + + /** + * + * + *
+     * Terrain map type.
+     * 
+ * + * TERRAIN = 3; + */ + public static final int TERRAIN_VALUE = 3; + + /** + * + * + *
+     * A dark version of the terrain map type.
+     * 
+ * + * TERRAIN_DARK = 4; + */ + public static final int TERRAIN_DARK_VALUE = 4; + + /** + * + * + *
+     * Navigation map type.
+     * 
+ * + * NAVIGATION = 5; + */ + public static final int NAVIGATION_VALUE = 5; + + /** + * + * + *
+     * A low light version of the navigation map type.
+     * 
+ * + * NAVIGATION_LOW_LIGHT = 6; + */ + public static final int NAVIGATION_LOW_LIGHT_VALUE = 6; + + /** + * + * + *
+     * Transit map type.
+     * 
+ * + * TRANSIT = 7; + */ + public static final int TRANSIT_VALUE = 7; + + /** + * + * + *
+     * A dark version of the transit map type.
+     * 
+ * + * TRANSIT_DARK = 8; + */ + public static final int TRANSIT_DARK_VALUE = 8; + + /** + * + * + *
+     * Abstract 3D map type.
+     * 
+ * + * ABSTRACT3D = 9; + */ + public static final int ABSTRACT3D_VALUE = 9; + + /** + * + * + *
+     * Photorealistic 3D map type.
+     * 
+ * + * PHOTOREALISTIC3D = 10; + */ + public static final int PHOTOREALISTIC3D_VALUE = 10; + + 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 MapVariant 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 MapVariant forNumber(int value) { + switch (value) { + case 0: + return ROADMAP; + case 1: + return ROADMAP_DARK; + case 2: + return SATELLITE; + case 3: + return TERRAIN; + case 4: + return TERRAIN_DARK; + case 5: + return NAVIGATION; + case 6: + return NAVIGATION_LOW_LIGHT; + case 7: + return TRANSIT; + case 8: + return TRANSIT_DARK; + case 9: + return ABSTRACT3D; + case 10: + return PHOTOREALISTIC3D; + 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 MapVariant findValueByNumber(int number) { + return MapVariant.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapContextConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MapVariant[] VALUES = values(); + + public static MapVariant 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 MapVariant(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapContextConfig.
+   * For example:
+   * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapContextConfig.
+   * For example:
+   * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 MAP_CONFIG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mapConfig_ = ""; + + /** + * + * + *
+   * Required. The MapConfig resource name that this MapContextConfig is
+   * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+   * field is required and cannot be omitted.
+   * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The mapConfig. + */ + @java.lang.Override + public java.lang.String getMapConfig() { + java.lang.Object ref = mapConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mapConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The MapConfig resource name that this MapContextConfig is
+   * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+   * field is required and cannot be omitted.
+   * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mapConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMapConfigBytes() { + java.lang.Object ref = mapConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mapConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STYLE_CONFIG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object styleConfig_ = ""; + + /** + * + * + *
+   * Required. The StyleConfig resource name that is styling this
+   * MapContextConfig. This field is required and cannot be omitted. Format:
+   * projects/{project}/styleConfigs/{style_config}
+   * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The styleConfig. + */ + @java.lang.Override + public java.lang.String getStyleConfig() { + java.lang.Object ref = styleConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + styleConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The StyleConfig resource name that is styling this
+   * MapContextConfig. This field is required and cannot be omitted. Format:
+   * projects/{project}/styleConfigs/{style_config}
+   * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for styleConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStyleConfigBytes() { + java.lang.Object ref = styleConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + styleConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataset_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the dataset. + */ + public com.google.protobuf.ProtocolStringList getDatasetList() { + return dataset_; + } + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of dataset. + */ + public int getDatasetCount() { + return dataset_.size(); + } + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The dataset at the given index. + */ + public java.lang.String getDataset(int index) { + return dataset_.get(index); + } + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the dataset at the given index. + */ + public com.google.protobuf.ByteString getDatasetBytes(int index) { + return dataset_.getByteString(index); + } + + public static final int ALIAS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + + /** + * + * + *
+   * Optional. The user defined human readable name for this MapContextConfig.
+   * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user defined human readable name for this MapContextConfig.
+   * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAP_VARIANTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList mapVariants_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant> + mapVariants_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant>() { + public com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant convert( + int from) { + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant result = + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant.forNumber(from); + return result == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the mapVariants. + */ + @java.lang.Override + public java.util.List + getMapVariantsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant>( + mapVariants_, mapVariants_converter_); + } + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of mapVariants. + */ + @java.lang.Override + public int getMapVariantsCount() { + return mapVariants_.size(); + } + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The mapVariants at the given index. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant getMapVariants( + int index) { + return mapVariants_converter_.convert(mapVariants_.getInt(index)); + } + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for mapVariants. + */ + @java.lang.Override + public java.util.List getMapVariantsValueList() { + return mapVariants_; + } + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of mapVariants at the given index. + */ + @java.lang.Override + public int getMapVariantsValue(int index) { + return mapVariants_.getInt(index); + } + + private int mapVariantsMemoizedSerializedSize; + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Denotes the creation time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .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_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Denotes the creation time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .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. Denotes the creation time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .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_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Denotes the last update time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Denotes the last update time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Denotes the last update time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mapConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, mapConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(styleConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, styleConfig_); + } + for (int i = 0; i < dataset_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, dataset_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, alias_); + } + if (getMapVariantsList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(mapVariantsMemoizedSerializedSize); + } + for (int i = 0; i < mapVariants_.size(); i++) { + output.writeEnumNoTag(mapVariants_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mapConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, mapConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(styleConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, styleConfig_); + } + { + int dataSize = 0; + for (int i = 0; i < dataset_.size(); i++) { + dataSize += computeStringSizeNoTag(dataset_.getRaw(i)); + } + size += dataSize; + size += 1 * getDatasetList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, alias_); + } + { + int dataSize = 0; + for (int i = 0; i < mapVariants_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(mapVariants_.getInt(i)); + } + size += dataSize; + if (!getMapVariantsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + mapVariantsMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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.maps.mapmanagement.v2beta.MapContextConfig)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.MapContextConfig other = + (com.google.maps.mapmanagement.v2beta.MapContextConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getMapConfig().equals(other.getMapConfig())) return false; + if (!getStyleConfig().equals(other.getStyleConfig())) return false; + if (!getDatasetList().equals(other.getDatasetList())) return false; + if (!getAlias().equals(other.getAlias())) return false; + if (!mapVariants_.equals(other.mapVariants_)) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MAP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMapConfig().hashCode(); + hash = (37 * hash) + STYLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStyleConfig().hashCode(); + if (getDatasetCount() > 0) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDatasetList().hashCode(); + } + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + if (getMapVariantsCount() > 0) { + hash = (37 * hash) + MAP_VARIANTS_FIELD_NUMBER; + hash = (53 * hash) + mapVariants_.hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig 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.maps.mapmanagement.v2beta.MapContextConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapContextConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Encapsulates the styling configuration for a map. The MapContextConfig
+   * associates styling components, such as a StyleConfig and Datasets, with
+   * specific map variants of a MapConfig. When the MapConfig is loaded in an SDK,
+   * the styling and dataset information from the MapContextConfig are applied to
+   * the specified map variants.
+   * Next ID = 10;
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.MapContextConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.MapContextConfig) + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.MapContextConfig.class, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.MapContextConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + mapConfig_ = ""; + styleConfig_ = ""; + dataset_ = com.google.protobuf.LazyStringArrayList.emptyList(); + alias_ = ""; + mapVariants_ = emptyIntList(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig build() { + com.google.maps.mapmanagement.v2beta.MapContextConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig buildPartial() { + com.google.maps.mapmanagement.v2beta.MapContextConfig result = + new com.google.maps.mapmanagement.v2beta.MapContextConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.MapContextConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mapConfig_ = mapConfig_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.styleConfig_ = styleConfig_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + dataset_.makeImmutable(); + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.alias_ = alias_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + mapVariants_.makeImmutable(); + result.mapVariants_ = mapVariants_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.MapContextConfig) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.MapContextConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.MapContextConfig other) { + if (other == com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMapConfig().isEmpty()) { + mapConfig_ = other.mapConfig_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getStyleConfig().isEmpty()) { + styleConfig_ = other.styleConfig_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.dataset_.isEmpty()) { + if (dataset_.isEmpty()) { + dataset_ = other.dataset_; + bitField0_ |= 0x00000008; + } else { + ensureDatasetIsMutable(); + dataset_.addAll(other.dataset_); + } + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.mapVariants_.isEmpty()) { + if (mapVariants_.isEmpty()) { + mapVariants_ = other.mapVariants_; + mapVariants_.makeImmutable(); + bitField0_ |= 0x00000020; + } else { + ensureMapVariantsIsMutable(); + mapVariants_.addAll(other.mapVariants_); + } + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mapConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + styleConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDatasetIsMutable(); + dataset_.add(s); + break; + } // case 34 + case 42: + { + alias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + int tmpRaw = input.readEnum(); + ensureMapVariantsIsMutable(); + mapVariants_.addInt(tmpRaw); + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMapVariantsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + mapVariants_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 name_ = ""; + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapContextConfig.
+     * For example:
+     * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapContextConfig.
+     * For example:
+     * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapContextConfig.
+     * For example:
+     * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapContextConfig.
+     * For example:
+     * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this MapContextConfig.
+     * For example:
+     * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 mapConfig_ = ""; + + /** + * + * + *
+     * Required. The MapConfig resource name that this MapContextConfig is
+     * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+     * field is required and cannot be omitted.
+     * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The mapConfig. + */ + public java.lang.String getMapConfig() { + java.lang.Object ref = mapConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mapConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The MapConfig resource name that this MapContextConfig is
+     * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+     * field is required and cannot be omitted.
+     * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mapConfig. + */ + public com.google.protobuf.ByteString getMapConfigBytes() { + java.lang.Object ref = mapConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mapConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The MapConfig resource name that this MapContextConfig is
+     * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+     * field is required and cannot be omitted.
+     * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The mapConfig to set. + * @return This builder for chaining. + */ + public Builder setMapConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mapConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig resource name that this MapContextConfig is
+     * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+     * field is required and cannot be omitted.
+     * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMapConfig() { + mapConfig_ = getDefaultInstance().getMapConfig(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig resource name that this MapContextConfig is
+     * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+     * field is required and cannot be omitted.
+     * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mapConfig to set. + * @return This builder for chaining. + */ + public Builder setMapConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mapConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object styleConfig_ = ""; + + /** + * + * + *
+     * Required. The StyleConfig resource name that is styling this
+     * MapContextConfig. This field is required and cannot be omitted. Format:
+     * projects/{project}/styleConfigs/{style_config}
+     * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The styleConfig. + */ + public java.lang.String getStyleConfig() { + java.lang.Object ref = styleConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + styleConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The StyleConfig resource name that is styling this
+     * MapContextConfig. This field is required and cannot be omitted. Format:
+     * projects/{project}/styleConfigs/{style_config}
+     * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for styleConfig. + */ + public com.google.protobuf.ByteString getStyleConfigBytes() { + java.lang.Object ref = styleConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + styleConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The StyleConfig resource name that is styling this
+     * MapContextConfig. This field is required and cannot be omitted. Format:
+     * projects/{project}/styleConfigs/{style_config}
+     * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The styleConfig to set. + * @return This builder for chaining. + */ + public Builder setStyleConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + styleConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig resource name that is styling this
+     * MapContextConfig. This field is required and cannot be omitted. Format:
+     * projects/{project}/styleConfigs/{style_config}
+     * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearStyleConfig() { + styleConfig_ = getDefaultInstance().getStyleConfig(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig resource name that is styling this
+     * MapContextConfig. This field is required and cannot be omitted. Format:
+     * projects/{project}/styleConfigs/{style_config}
+     * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for styleConfig to set. + * @return This builder for chaining. + */ + public Builder setStyleConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + styleConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dataset_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDatasetIsMutable() { + if (!dataset_.isModifiable()) { + dataset_ = new com.google.protobuf.LazyStringArrayList(dataset_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the dataset. + */ + public com.google.protobuf.ProtocolStringList getDatasetList() { + dataset_.makeImmutable(); + return dataset_; + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of dataset. + */ + public int getDatasetCount() { + return dataset_.size(); + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The dataset at the given index. + */ + public java.lang.String getDataset(int index) { + return dataset_.get(index); + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the dataset at the given index. + */ + public com.google.protobuf.ByteString getDatasetBytes(int index) { + return dataset_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetIsMutable(); + dataset_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataset to add. + * @return This builder for chaining. + */ + public Builder addDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetIsMutable(); + dataset_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The dataset to add. + * @return This builder for chaining. + */ + public Builder addAllDataset(java.lang.Iterable values) { + ensureDatasetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataset_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + dataset_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Dataset resource name that is associated with this
+     * MapContextConfig. This field is optional and can be omitted. If omitted, no
+     * datasets will be associated with the MapContextConfig. If a dataset is
+     * specified, it will be applied to the MapContextConfig. Format:
+     * projects/{project}/datasets/{dataset}
+     * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the dataset to add. + * @return This builder for chaining. + */ + public Builder addDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDatasetIsMutable(); + dataset_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + * + * + *
+     * Optional. The user defined human readable name for this MapContextConfig.
+     * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The user defined human readable name for this MapContextConfig.
+     * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The user defined human readable name for this MapContextConfig.
+     * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alias_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user defined human readable name for this MapContextConfig.
+     * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user defined human readable name for this MapContextConfig.
+     * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList mapVariants_ = emptyIntList(); + + private void ensureMapVariantsIsMutable() { + if (!mapVariants_.isModifiable()) { + mapVariants_ = makeMutableCopy(mapVariants_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the mapVariants. + */ + public java.util.List + getMapVariantsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant>( + mapVariants_, mapVariants_converter_); + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of mapVariants. + */ + public int getMapVariantsCount() { + return mapVariants_.size(); + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The mapVariants at the given index. + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant getMapVariants( + int index) { + return mapVariants_converter_.convert(mapVariants_.getInt(index)); + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The mapVariants to set. + * @return This builder for chaining. + */ + public Builder setMapVariants( + int index, com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapVariantsIsMutable(); + mapVariants_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The mapVariants to add. + * @return This builder for chaining. + */ + public Builder addMapVariants( + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapVariantsIsMutable(); + mapVariants_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The mapVariants to add. + * @return This builder for chaining. + */ + public Builder addAllMapVariants( + java.lang.Iterable< + ? extends com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant> + values) { + ensureMapVariantsIsMutable(); + for (com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant value : values) { + mapVariants_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMapVariants() { + mapVariants_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for mapVariants. + */ + public java.util.List getMapVariantsValueList() { + mapVariants_.makeImmutable(); + return mapVariants_; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of mapVariants at the given index. + */ + public int getMapVariantsValue(int index) { + return mapVariants_.getInt(index); + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for mapVariants to set. + * @return This builder for chaining. + */ + public Builder setMapVariantsValue(int index, int value) { + ensureMapVariantsIsMutable(); + mapVariants_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for mapVariants to add. + * @return This builder for chaining. + */ + public Builder addMapVariantsValue(int value) { + ensureMapVariantsIsMutable(); + mapVariants_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The map variants that this MapContextConfig can be applied to. If
+     * empty, the MapContextConfig will be default applied to only the ROADMAP map
+     * variant.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for mapVariants to add. + * @return This builder for chaining. + */ + public Builder addAllMapVariantsValue(java.lang.Iterable values) { + ensureMapVariantsIsMutable(); + for (int value : values) { + mapVariants_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .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. Denotes the creation time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the MapContextConfig. Output
+     * only.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.MapContextConfig) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.MapContextConfig) + private static final com.google.maps.mapmanagement.v2beta.MapContextConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.MapContextConfig(); + } + + public static com.google.maps.mapmanagement.v2beta.MapContextConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapContextConfig 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.maps.mapmanagement.v2beta.MapContextConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java new file mode 100644 index 000000000000..4108e8b8fbe9 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +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 MapContextConfigName implements ResourceName { + private static final PathTemplate PROJECT_MAP_CONFIG_MAP_CONTEXT_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String mapConfig; + private final String mapContextConfig; + + @Deprecated + protected MapContextConfigName() { + project = null; + mapConfig = null; + mapContextConfig = null; + } + + private MapContextConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + mapConfig = Preconditions.checkNotNull(builder.getMapConfig()); + mapContextConfig = Preconditions.checkNotNull(builder.getMapContextConfig()); + } + + public String getProject() { + return project; + } + + public String getMapConfig() { + return mapConfig; + } + + public String getMapContextConfig() { + return mapContextConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MapContextConfigName of(String project, String mapConfig, String mapContextConfig) { + return newBuilder() + .setProject(project) + .setMapConfig(mapConfig) + .setMapContextConfig(mapContextConfig) + .build(); + } + + public static String format(String project, String mapConfig, String mapContextConfig) { + return newBuilder() + .setProject(project) + .setMapConfig(mapConfig) + .setMapContextConfig(mapContextConfig) + .build() + .toString(); + } + + public static MapContextConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_MAP_CONFIG_MAP_CONTEXT_CONFIG.validatedMatch( + formattedString, "MapContextConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("map_config"), matchMap.get("map_context_config")); + } + + 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 (MapContextConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_MAP_CONFIG_MAP_CONTEXT_CONFIG.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 (mapConfig != null) { + fieldMapBuilder.put("map_config", mapConfig); + } + if (mapContextConfig != null) { + fieldMapBuilder.put("map_context_config", mapContextConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_MAP_CONFIG_MAP_CONTEXT_CONFIG.instantiate( + "project", project, "map_config", mapConfig, "map_context_config", mapContextConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MapContextConfigName that = ((MapContextConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.mapConfig, that.mapConfig) + && Objects.equals(this.mapContextConfig, that.mapContextConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(mapConfig); + h *= 1000003; + h ^= Objects.hashCode(mapContextConfig); + return h; + } + + /** + * Builder for projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + */ + public static class Builder { + private String project; + private String mapConfig; + private String mapContextConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getMapConfig() { + return mapConfig; + } + + public String getMapContextConfig() { + return mapContextConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setMapConfig(String mapConfig) { + this.mapConfig = mapConfig; + return this; + } + + public Builder setMapContextConfig(String mapContextConfig) { + this.mapContextConfig = mapContextConfig; + return this; + } + + private Builder(MapContextConfigName mapContextConfigName) { + this.project = mapContextConfigName.project; + this.mapConfig = mapContextConfigName.mapConfig; + this.mapContextConfig = mapContextConfigName.mapContextConfig; + } + + public MapContextConfigName build() { + return new MapContextConfigName(this); + } + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigOrBuilder.java new file mode 100644 index 000000000000..d4c572f24aae --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigOrBuilder.java @@ -0,0 +1,408 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface MapContextConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.MapContextConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapContextConfig.
+   * For example:
+   * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. Resource name of this MapContextConfig.
+   * For example:
+   * projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The MapConfig resource name that this MapContextConfig is
+   * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+   * field is required and cannot be omitted.
+   * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The mapConfig. + */ + java.lang.String getMapConfig(); + + /** + * + * + *
+   * Required. The MapConfig resource name that this MapContextConfig is
+   * associated with. Format: projects/{project}/mapConfigs/{map_config}. This
+   * field is required and cannot be omitted.
+   * 
+ * + * + * string map_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mapConfig. + */ + com.google.protobuf.ByteString getMapConfigBytes(); + + /** + * + * + *
+   * Required. The StyleConfig resource name that is styling this
+   * MapContextConfig. This field is required and cannot be omitted. Format:
+   * projects/{project}/styleConfigs/{style_config}
+   * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The styleConfig. + */ + java.lang.String getStyleConfig(); + + /** + * + * + *
+   * Required. The StyleConfig resource name that is styling this
+   * MapContextConfig. This field is required and cannot be omitted. Format:
+   * projects/{project}/styleConfigs/{style_config}
+   * 
+ * + * + * string style_config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for styleConfig. + */ + com.google.protobuf.ByteString getStyleConfigBytes(); + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the dataset. + */ + java.util.List getDatasetList(); + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of dataset. + */ + int getDatasetCount(); + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The dataset at the given index. + */ + java.lang.String getDataset(int index); + + /** + * + * + *
+   * Optional. The Dataset resource name that is associated with this
+   * MapContextConfig. This field is optional and can be omitted. If omitted, no
+   * datasets will be associated with the MapContextConfig. If a dataset is
+   * specified, it will be applied to the MapContextConfig. Format:
+   * projects/{project}/datasets/{dataset}
+   * 
+ * + * + * repeated string dataset = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the dataset at the given index. + */ + com.google.protobuf.ByteString getDatasetBytes(int index); + + /** + * + * + *
+   * Optional. The user defined human readable name for this MapContextConfig.
+   * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * + * + *
+   * Optional. The user defined human readable name for this MapContextConfig.
+   * 
+ * + * string alias = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the mapVariants. + */ + java.util.List + getMapVariantsList(); + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of mapVariants. + */ + int getMapVariantsCount(); + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The mapVariants at the given index. + */ + com.google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant getMapVariants(int index); + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for mapVariants. + */ + java.util.List getMapVariantsValueList(); + + /** + * + * + *
+   * Required. The map variants that this MapContextConfig can be applied to. If
+   * empty, the MapContextConfig will be default applied to only the ROADMAP map
+   * variant.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapContextConfig.MapVariant map_variants = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of mapVariants at the given index. + */ + int getMapVariantsValue(int index); + + /** + * + * + *
+   * Output only. Denotes the creation time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the MapContextConfig. Output
+   * only.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapFeatures.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapFeatures.java new file mode 100644 index 000000000000..dcf4bd701581 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapFeatures.java @@ -0,0 +1,1193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Represents a collection of map features that apply to a MapConfig.
+ * Features set on a MapConfig are inherited by all of its child
+ * MapContextConfigs.
+ * Next ID = 3;
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.MapFeatures} + */ +@com.google.protobuf.Generated +public final class MapFeatures extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.MapFeatures) + MapFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapFeatures"); + } + + // Use MapFeatures.newBuilder() to construct. + private MapFeatures(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MapFeatures() { + simpleFeatures_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.MapFeatures.class, + com.google.maps.mapmanagement.v2beta.MapFeatures.Builder.class); + } + + /** + * + * + *
+   * This represents the set of map features that affect the intrinsic
+   * structure of the map.
+   * 
+ * + * Protobuf enum {@code google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature} + */ + public enum SimpleFeature implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified visual feature.
+     * 
+ * + * SIMPLE_FEATURE_UNSPECIFIED = 0; + */ + SIMPLE_FEATURE_UNSPECIFIED(0), + /** + * + * + *
+     * Flattens all buildings in the map.
+     * 
+ * + * FLATTEN_BUILDINGS = 1; + */ + FLATTEN_BUILDINGS(1), + /** + * + * + *
+     * Influences how icons are rendered.
+     * 
+ * + * ICONIC_ICONS = 2; + */ + ICONIC_ICONS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SimpleFeature"); + } + + /** + * + * + *
+     * Unspecified visual feature.
+     * 
+ * + * SIMPLE_FEATURE_UNSPECIFIED = 0; + */ + public static final int SIMPLE_FEATURE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Flattens all buildings in the map.
+     * 
+ * + * FLATTEN_BUILDINGS = 1; + */ + public static final int FLATTEN_BUILDINGS_VALUE = 1; + + /** + * + * + *
+     * Influences how icons are rendered.
+     * 
+ * + * ICONIC_ICONS = 2; + */ + public static final int ICONIC_ICONS_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 SimpleFeature 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 SimpleFeature forNumber(int value) { + switch (value) { + case 0: + return SIMPLE_FEATURE_UNSPECIFIED; + case 1: + return FLATTEN_BUILDINGS; + case 2: + return ICONIC_ICONS; + 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 SimpleFeature findValueByNumber(int number) { + return SimpleFeature.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapFeatures.getDescriptor().getEnumTypes().get(0); + } + + private static final SimpleFeature[] VALUES = values(); + + public static SimpleFeature 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 SimpleFeature(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature) + } + + private int bitField0_; + public static final int SIMPLE_FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList simpleFeatures_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature> + simpleFeatures_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature>() { + public com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature convert( + int from) { + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature result = + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature.forNumber(from); + return result == null + ? com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the simpleFeatures. + */ + @java.lang.Override + public java.util.List + getSimpleFeaturesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature>( + simpleFeatures_, simpleFeatures_converter_); + } + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of simpleFeatures. + */ + @java.lang.Override + public int getSimpleFeaturesCount() { + return simpleFeatures_.size(); + } + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The simpleFeatures at the given index. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature getSimpleFeatures( + int index) { + return simpleFeatures_converter_.convert(simpleFeatures_.getInt(index)); + } + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for simpleFeatures. + */ + @java.lang.Override + public java.util.List getSimpleFeaturesValueList() { + return simpleFeatures_; + } + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of simpleFeatures at the given index. + */ + @java.lang.Override + public int getSimpleFeaturesValue(int index) { + return simpleFeatures_.getInt(index); + } + + private int simpleFeaturesMemoizedSerializedSize; + + public static final int POI_BOOST_LEVEL_FIELD_NUMBER = 2; + private int poiBoostLevel_ = 0; + + /** + * + * + *
+   * Optional. POI Boost level, where 0 denotes no boostings and negative values
+   * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+   * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+   * level is clamped to [-2, 2]. If not specified, the POI density defined in
+   * the style sheet will be used if it exists. Otherwise, no POI density will
+   * be applied.
+   * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the poiBoostLevel field is set. + */ + @java.lang.Override + public boolean hasPoiBoostLevel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. POI Boost level, where 0 denotes no boostings and negative values
+   * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+   * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+   * level is clamped to [-2, 2]. If not specified, the POI density defined in
+   * the style sheet will be used if it exists. Otherwise, no POI density will
+   * be applied.
+   * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The poiBoostLevel. + */ + @java.lang.Override + public int getPoiBoostLevel() { + return poiBoostLevel_; + } + + 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 (getSimpleFeaturesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(simpleFeaturesMemoizedSerializedSize); + } + for (int i = 0; i < simpleFeatures_.size(); i++) { + output.writeEnumNoTag(simpleFeatures_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, poiBoostLevel_); + } + 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 < simpleFeatures_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(simpleFeatures_.getInt(i)); + } + size += dataSize; + if (!getSimpleFeaturesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + simpleFeaturesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, poiBoostLevel_); + } + 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.maps.mapmanagement.v2beta.MapFeatures)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.MapFeatures other = + (com.google.maps.mapmanagement.v2beta.MapFeatures) obj; + + if (!simpleFeatures_.equals(other.simpleFeatures_)) return false; + if (hasPoiBoostLevel() != other.hasPoiBoostLevel()) return false; + if (hasPoiBoostLevel()) { + if (getPoiBoostLevel() != other.getPoiBoostLevel()) 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 (getSimpleFeaturesCount() > 0) { + hash = (37 * hash) + SIMPLE_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + simpleFeatures_.hashCode(); + } + if (hasPoiBoostLevel()) { + hash = (37 * hash) + POI_BOOST_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getPoiBoostLevel(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures 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.maps.mapmanagement.v2beta.MapFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.MapFeatures 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a collection of map features that apply to a MapConfig.
+   * Features set on a MapConfig are inherited by all of its child
+   * MapContextConfigs.
+   * Next ID = 3;
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.MapFeatures} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.MapFeatures) + com.google.maps.mapmanagement.v2beta.MapFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.MapFeatures.class, + com.google.maps.mapmanagement.v2beta.MapFeatures.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.MapFeatures.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + simpleFeatures_ = emptyIntList(); + poiBoostLevel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_MapFeatures_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapFeatures getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapFeatures build() { + com.google.maps.mapmanagement.v2beta.MapFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapFeatures buildPartial() { + com.google.maps.mapmanagement.v2beta.MapFeatures result = + new com.google.maps.mapmanagement.v2beta.MapFeatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.MapFeatures result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + simpleFeatures_.makeImmutable(); + result.simpleFeatures_ = simpleFeatures_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.poiBoostLevel_ = poiBoostLevel_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.MapFeatures) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.MapFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.MapFeatures other) { + if (other == com.google.maps.mapmanagement.v2beta.MapFeatures.getDefaultInstance()) + return this; + if (!other.simpleFeatures_.isEmpty()) { + if (simpleFeatures_.isEmpty()) { + simpleFeatures_ = other.simpleFeatures_; + simpleFeatures_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureSimpleFeaturesIsMutable(); + simpleFeatures_.addAll(other.simpleFeatures_); + } + onChanged(); + } + if (other.hasPoiBoostLevel()) { + setPoiBoostLevel(other.getPoiBoostLevel()); + } + 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: + { + int tmpRaw = input.readEnum(); + ensureSimpleFeaturesIsMutable(); + simpleFeatures_.addInt(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSimpleFeaturesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + simpleFeatures_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 10 + case 16: + { + poiBoostLevel_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.IntList simpleFeatures_ = emptyIntList(); + + private void ensureSimpleFeaturesIsMutable() { + if (!simpleFeatures_.isModifiable()) { + simpleFeatures_ = makeMutableCopy(simpleFeatures_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the simpleFeatures. + */ + public java.util.List + getSimpleFeaturesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature>( + simpleFeatures_, simpleFeatures_converter_); + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of simpleFeatures. + */ + public int getSimpleFeaturesCount() { + return simpleFeatures_.size(); + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The simpleFeatures at the given index. + */ + public com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature getSimpleFeatures( + int index) { + return simpleFeatures_converter_.convert(simpleFeatures_.getInt(index)); + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The simpleFeatures to set. + * @return This builder for chaining. + */ + public Builder setSimpleFeatures( + int index, com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimpleFeaturesIsMutable(); + simpleFeatures_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The simpleFeatures to add. + * @return This builder for chaining. + */ + public Builder addSimpleFeatures( + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimpleFeaturesIsMutable(); + simpleFeatures_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The simpleFeatures to add. + * @return This builder for chaining. + */ + public Builder addAllSimpleFeatures( + java.lang.Iterable + values) { + ensureSimpleFeaturesIsMutable(); + for (com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature value : values) { + simpleFeatures_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSimpleFeatures() { + simpleFeatures_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for simpleFeatures. + */ + public java.util.List getSimpleFeaturesValueList() { + simpleFeatures_.makeImmutable(); + return simpleFeatures_; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of simpleFeatures at the given index. + */ + public int getSimpleFeaturesValue(int index) { + return simpleFeatures_.getInt(index); + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for simpleFeatures to set. + * @return This builder for chaining. + */ + public Builder setSimpleFeaturesValue(int index, int value) { + ensureSimpleFeaturesIsMutable(); + simpleFeatures_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for simpleFeatures to add. + * @return This builder for chaining. + */ + public Builder addSimpleFeaturesValue(int value) { + ensureSimpleFeaturesIsMutable(); + simpleFeatures_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The visual feature to use for this map.
+     * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for simpleFeatures to add. + * @return This builder for chaining. + */ + public Builder addAllSimpleFeaturesValue(java.lang.Iterable values) { + ensureSimpleFeaturesIsMutable(); + for (int value : values) { + simpleFeatures_.addInt(value); + } + onChanged(); + return this; + } + + private int poiBoostLevel_; + + /** + * + * + *
+     * Optional. POI Boost level, where 0 denotes no boostings and negative values
+     * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+     * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+     * level is clamped to [-2, 2]. If not specified, the POI density defined in
+     * the style sheet will be used if it exists. Otherwise, no POI density will
+     * be applied.
+     * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the poiBoostLevel field is set. + */ + @java.lang.Override + public boolean hasPoiBoostLevel() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. POI Boost level, where 0 denotes no boostings and negative values
+     * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+     * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+     * level is clamped to [-2, 2]. If not specified, the POI density defined in
+     * the style sheet will be used if it exists. Otherwise, no POI density will
+     * be applied.
+     * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The poiBoostLevel. + */ + @java.lang.Override + public int getPoiBoostLevel() { + return poiBoostLevel_; + } + + /** + * + * + *
+     * Optional. POI Boost level, where 0 denotes no boostings and negative values
+     * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+     * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+     * level is clamped to [-2, 2]. If not specified, the POI density defined in
+     * the style sheet will be used if it exists. Otherwise, no POI density will
+     * be applied.
+     * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The poiBoostLevel to set. + * @return This builder for chaining. + */ + public Builder setPoiBoostLevel(int value) { + + poiBoostLevel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. POI Boost level, where 0 denotes no boostings and negative values
+     * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+     * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+     * level is clamped to [-2, 2]. If not specified, the POI density defined in
+     * the style sheet will be used if it exists. Otherwise, no POI density will
+     * be applied.
+     * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPoiBoostLevel() { + bitField0_ = (bitField0_ & ~0x00000002); + poiBoostLevel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.MapFeatures) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.MapFeatures) + private static final com.google.maps.mapmanagement.v2beta.MapFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.MapFeatures(); + } + + public static com.google.maps.mapmanagement.v2beta.MapFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapFeatures 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.maps.mapmanagement.v2beta.MapFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapFeaturesOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapFeaturesOrBuilder.java new file mode 100644 index 000000000000..51ebdf825f9a --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapFeaturesOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface MapFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.MapFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the simpleFeatures. + */ + java.util.List + getSimpleFeaturesList(); + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of simpleFeatures. + */ + int getSimpleFeaturesCount(); + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The simpleFeatures at the given index. + */ + com.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature getSimpleFeatures(int index); + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for simpleFeatures. + */ + java.util.List getSimpleFeaturesValueList(); + + /** + * + * + *
+   * Optional. The visual feature to use for this map.
+   * 
+ * + * + * repeated .google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeature simple_features = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of simpleFeatures at the given index. + */ + int getSimpleFeaturesValue(int index); + + /** + * + * + *
+   * Optional. POI Boost level, where 0 denotes no boostings and negative values
+   * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+   * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+   * level is clamped to [-2, 2]. If not specified, the POI density defined in
+   * the style sheet will be used if it exists. Otherwise, no POI density will
+   * be applied.
+   * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the poiBoostLevel field is set. + */ + boolean hasPoiBoostLevel(); + + /** + * + * + *
+   * Optional. POI Boost level, where 0 denotes no boostings and negative values
+   * denotes de-boosting. Boosted POIs are shown at lower zoom than default and
+   * vice versa de-boosted. Currently supports 2 levels of boosting, so the
+   * level is clamped to [-2, 2]. If not specified, the POI density defined in
+   * the style sheet will be used if it exists. Otherwise, no POI density will
+   * be applied.
+   * 
+ * + * optional int32 poi_boost_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The poiBoostLevel. + */ + int getPoiBoostLevel(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementServiceProto.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementServiceProto.java new file mode 100644 index 000000000000..06c4d30996ad --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementServiceProto.java @@ -0,0 +1,602 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public final class MapManagementServiceProto extends com.google.protobuf.GeneratedFile { + private MapManagementServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapManagementServiceProto"); + } + + 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_maps_mapmanagement_v2beta_CreateMapConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_MapFeatures_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_MapFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_MapConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_MapConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_StyleConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_StyleConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_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/maps/mapmanagement/v2beta/map_management_service.proto\022 google.maps.map" + + "management.v2beta\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\243\001\n" + + "\026CreateMapConfigRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022D\n\n" + + "map_config\030\002" + + " \001(\0132+.google.maps.mapmanagement.v2beta.MapConfigB\003\340A\002\"S\n" + + "\023GetMapConfigRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&mapmanagement.googleapis.com/MapConfig\"\215\001\n" + + "\025ListMapConfigsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"s\n" + + "\026ListMapConfigsResponse\022@\n" + + "\013map_configs\030\001" + + " \003(\0132+.google.maps.mapmanagement.v2beta.MapConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\224\001\n" + + "\026UpdateMapConfigRequest\022D\n\n" + + "map_config\030\001" + + " \001(\0132+.google.maps.mapmanagement.v2beta.MapConfigB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"j\n" + + "\026DeleteMapConfigRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&mapmanagement.googleapis.com/MapConfig\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"\371\001\n" + + "\013MapFeatures\022Y\n" + + "\017simple_features\030\001 \003(\016" + + "2;.google.maps.mapmanagement.v2beta.MapFeatures.SimpleFeatureB\003\340A\001\022!\n" + + "\017poi_boost_level\030\002 \001(\005B\003\340A\001H\000\210\001\001\"X\n\r" + + "SimpleFeature\022\036\n" + + "\032SIMPLE_FEATURE_UNSPECIFIED\020\000\022\025\n" + + "\021FLATTEN_BUILDINGS\020\001\022\020\n" + + "\014ICONIC_ICONS\020\002B\022\n" + + "\020_poi_boost_level\"\206\004\n" + + "\tMapConfig\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006map_id\030\004 \001(\tB\003\340A\003\022H\n" + + "\014map_features\030\005" + + " \001(\0132-.google.maps.mapmanagement.v2beta.MapFeaturesB\003\340A\001\0229\n" + + "\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\000\210\001\001\0229\n" + + "\013update_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\022I\n" + + "\010map_type\030\010" + + " \001(\01622.google.maps.mapmanagement.v2beta.MapRenderingTypeB\003\340A\001:n\352Ak\n" + + "&mapma" + + "nagement.googleapis.com/MapConfig\022*projects/{project}/mapConfigs/{map_config}*\n" + + "mapConfigs2\tmapConfigB\016\n" + + "\014_create_timeB\016\n" + + "\014_update_time\"\236\003\n" + + "\013StyleConfig\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010style_id\030\004 \001(\tB\003\340A\003\022\035\n" + + "\020json_style_sheet\030\006 \001(\tB\003\340A\001\0229\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\000\210\001\001\0229\n" + + "\013update_time\030\010 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003H\001\210\001\001:x\352Au\n" + + "(mapmanagement.googleapis.com/StyleConf" + + "ig\022.projects/{project}/styleConfigs/{style_config}*\014styleConfigs2\013styleConfigB\016\n" + + "\014_create_timeB\016\n" + + "\014_update_time\"\251\001\n" + + "\030CreateStyleConfigRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022H\n" + + "\014style_config\030\002 \001(\0132-.google.m" + + "aps.mapmanagement.v2beta.StyleConfigB\003\340A\002\"W\n" + + "\025GetStyleConfigRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(mapmanagement.googleapis.com/StyleConfig\"\352\001\n" + + "\027ListStyleConfigsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022D\n" + + "\004view\030\005 \001(\01621.google" + + ".maps.mapmanagement.v2beta.StyleConfigViewB\003\340A\001\"y\n" + + "\030ListStyleConfigsResponse\022D\n\r" + + "style_configs\030\001" + + " \003(\0132-.google.maps.mapmanagement.v2beta.StyleConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\232\001\n" + + "\030UpdateStyleConfigRequest\022H\n" + + "\014style_config\030\001" + + " \001(\0132-.google.maps.mapmanagement.v2beta.StyleConfigB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"Z\n" + + "\030DeleteStyleConfigRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(mapmanagement.googleapis.com/StyleConfig\"\306\006\n" + + "\020MapContextConfig\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022B\n\n" + + "map_config\030\002 \001(\tB.\340A\002\372A(\n" + + "&mapmanagement.googleapis.com/MapConfig\022F\n" + + "\014style_config\030\003 \001(\tB0\340A\002\372A*\n" + + "(mapmanagement.googleapis.com/StyleConfig\022=\n" + + "\007dataset\030\004 \003(\tB,\340A\001\372A&\n" + + "$mapmanagement.googleapis.com/Dataset\022\022\n" + + "\005alias\030\005 \001(\tB\003\340A\001\022X\n" + + "\014map_variants\030\006 \003(\0162=.google.map" + + "s.mapmanagement.v2beta.MapContextConfig.MapVariantB\003\340A\002\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\310\001\n\n" + + "MapVariant\022\013\n" + + "\007ROADMAP\020\000\022\020\n" + + "\014ROADMAP_DARK\020\001\022\r\n" + + "\tSATELLITE\020\002\022\013\n" + + "\007TERRAIN\020\003\022\020\n" + + "\014TERRAIN_DARK\020\004\022\016\n\n" + + "NAVIGATION\020\005\022\030\n" + + "\024NAVIGATION_LOW_LIGHT\020\006\022\013\n" + + "\007TRANSIT\020\007\022\020\n" + + "\014TRANSIT_DARK\020\010\022\016\n\n" + + "ABSTRACT3D\020\t\022\024\n" + + "\020PHOTOREALISTIC3D\020\n" + + ":\253\001\352A\247\001\n" + + "-mapmanagement.googleapis.com/MapContextConfig\022Qprojects/{project}" + + "/mapConfigs/{map_config}/mapContextConfi" + + "gs/{map_context_config}*\021mapContextConfigs2\020mapContextConfig\"\264\001\n" + + "\035CreateMapContextConfigRequest\022>\n" + + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + + "&mapmanagement.googleapis.com/MapConfig\022S\n" + + "\022map_context_config\030\002 \001(\01322.google.maps" + + ".mapmanagement.v2beta.MapContextConfigB\003\340A\002\"a\n" + + "\032GetMapContextConfigRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-mapmanagement.googleapis.com/MapContextConfig\"\217\001\n" + + "\034ListMapContextConfigsRequest\022>\n" + + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + + "&mapmanagement.googleapis.com/MapConfig\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\211\001\n" + + "\035ListMapContextConfigsResponse\022O\n" + + "\023map_context_configs\030\001 \003(\01322.google" + + ".maps.mapmanagement.v2beta.MapContextConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\252\001\n" + + "\035UpdateMapContextConfigRequest\022S\n" + + "\022map_context_config\030\001" + + " \001(\01322.google.maps.mapmanagement.v2beta.MapContextConfigB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"d\n" + + "\035DeleteMapContextConfigRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-mapmanagement.googleapis.com/MapContextConfig*Q\n" + + "\017StyleConfigView\022!\n" + + "\035STYLE_CONFIG_VIEW_UNSPECIFIED\020\000\022\010\n" + + "\004FULL\020\001\022\021\n\r" + + "METADATA_ONLY\020\002**\n" + + "\020MapRenderingType\022\n\n" + + "\006RASTER\020\000\022\n\n" + + "\006VECTOR\020\0012\220\031\n\r" + + "MapManagement\022\310\001\n" + + "\017CreateMapConfig\0228.google.maps.mapmanagement.v2beta.CreateMapConfigR" + + "equest\032+.google.maps.mapmanagement.v2bet" + + "a.MapConfig\"N\332A\021parent,map_config\202\323\344\223\0024\"" + + "&/v2beta/{parent=projects/*}/mapConfigs:\n" + + "map_config\022\251\001\n" + + "\014GetMapConfig\0225.google.maps.mapmanagement.v2beta.GetMapConfigRequ" + + "est\032+.google.maps.mapmanagement.v2beta.M" + + "apConfig\"5\332A\004name\202\323\344\223\002(\022&/v2beta/{name=projects/*/mapConfigs/*}\022\274\001\n" + + "\016ListMapConfigs\0227.google.maps.mapmanagement.v2beta.Li" + + "stMapConfigsRequest\0328.google.maps.mapman" + + "agement.v2beta.ListMapConfigsResponse\"7\332" + + "A\006parent\202\323\344\223\002(\022&/v2beta/{parent=projects/*}/mapConfigs\022\330\001\n" + + "\017UpdateMapConfig\0228.google.maps.mapmanagement.v2beta.UpdateMapC" + + "onfigRequest\032+.google.maps.mapmanagement" + + ".v2beta.MapConfig\"^\332A\026map_config,update_" + + "mask\202\323\344\223\002?21/v2beta/{map_config.name=projects/*/mapConfigs/*}:\n" + + "map_config\022\240\001\n" + + "\017DeleteMapConfig\0228.google.maps.mapmanagemen" + + "t.v2beta.DeleteMapConfigRequest\032\026.google.protobuf.Empty\";\332A\n" + + "name,force\202\323\344\223\002(*&/v2beta/{name=projects/*/mapConfigs/*}\022\324\001\n" + + "\021CreateStyleConfig\022:.google.maps.mapmana" + + "gement.v2beta.CreateStyleConfigRequest\032-.google.maps.mapmanagement.v2beta.StyleC" + + "onfig\"T\332A\023parent,style_config\202\323\344\223\0028\"(/v2" + + "beta/{parent=projects/*}/styleConfigs:\014style_config\022\261\001\n" + + "\016GetStyleConfig\0227.google.maps.mapmanagement.v2beta.GetStyleConfig" + + "Request\032-.google.maps.mapmanagement.v2be" + + "ta.StyleConfig\"7\332A\004name\202\323\344\223\002*\022(/v2beta/{name=projects/*/styleConfigs/*}\022\304\001\n" + + "\020ListStyleConfigs\0229.google.maps.mapmanagement" + + ".v2beta.ListStyleConfigsRequest\032:.google.maps.mapmanagement.v2beta.ListStyleConf" + + "igsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v2beta/{parent=projects/*}/styleConfigs\022\346\001\n" + + "\021UpdateStyleConfig\022:.google.maps.mapmanagement" + + ".v2beta.UpdateStyleConfigRequest\032-.google.maps.mapmanagement.v2beta.StyleConfig\"" + + "f\332A\030style_config,update_mask\202\323\344\223\002E25/v2b" + + "eta/{style_config.name=projects/*/styleConfigs/*}:\014style_config\022\240\001\n" + + "\021DeleteStyleConfig\022:.google.maps.mapmanagement.v2beta" + + ".DeleteStyleConfigRequest\032\026.google.proto" + + "buf.Empty\"7\332A\004name\202\323\344\223\002**(/v2beta/{name=projects/*/styleConfigs/*}\022\201\002\n" + + "\026CreateMapContextConfig\022?.google.maps.mapmanagemen" + + "t.v2beta.CreateMapContextConfigRequest\0322.google.maps.mapmanagement.v2beta.MapCon" + + "textConfig\"r\332A\031parent,map_context_config" + + "\202\323\344\223\002P\":/v2beta/{parent=projects/*/mapCo" + + "nfigs/*}/mapContextConfigs:\022map_context_config\022\322\001\n" + + "\023GetMapContextConfig\022<.google.maps.mapmanagement.v2beta.GetMapContextC" + + "onfigRequest\0322.google.maps.mapmanagement" + + ".v2beta.MapContextConfig\"I\332A\004name\202\323\344\223\002<\022" + + ":/v2beta/{name=projects/*/mapConfigs/*/mapContextConfigs/*}\022\345\001\n" + + "\025ListMapContextConfigs\022>.google.maps.mapmanagement.v2beta" + + ".ListMapContextConfigsRequest\032?.google.maps.mapmanagement.v2beta.ListMapContextC" + + "onfigsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v2beta" + + "/{parent=projects/*/mapConfigs/*}/mapContextConfigs\022\232\002\n" + + "\026UpdateMapContextConfig\022?.google.maps.mapmanagement.v2beta.Update" + + "MapContextConfigRequest\0322.google.maps.ma" + + "pmanagement.v2beta.MapContextConfig\"\212\001\332A" + + "\036map_context_config,update_mask\202\323\344\223\002c2M/" + + "v2beta/{map_context_config.name=projects" + + "/*/mapConfigs/*/mapContextConfigs/*}:\022map_context_config\022\274\001\n" + + "\026DeleteMapContextConfig\022?.google.maps.mapmanagement.v2beta.D" + + "eleteMapContextConfigRequest\032\026.google.pr" + + "otobuf.Empty\"I\332A\004name\202\323\344\223\002<*:/v2beta/{na" + + "me=projects/*/mapConfigs/*/mapContextCon" + + "figs/*}\032P\312A\034mapmanagement.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud-platformB\315\002\n" + + "$com.google.maps.mapmanagement.v2betaB\031MapManagementServiceProtoP\001Z" + + "Pcloud.google.com/go/maps/mapmanagement/" + + "apiv2beta/mapmanagementpb;mapmanagementpb\242\002\014GMMGMTV2MAIN\252\002" + + " Google.Maps.MapManagement.V2Beta\312\002 Google\\Maps\\MapManagement\\V2beta\352A`\n" + + "$mapmanagement.googleapis.com/Dataset\022%projects/{project}/datasets/{da" + + "taset}*\010datasets2\007datasetb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_CreateMapConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "MapConfig", + }); + internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_GetMapConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_ListMapConfigsResponse_descriptor, + new java.lang.String[] { + "MapConfigs", "NextPageToken", + }); + internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_descriptor, + new java.lang.String[] { + "MapConfig", "UpdateMask", + }); + internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_maps_mapmanagement_v2beta_MapFeatures_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_maps_mapmanagement_v2beta_MapFeatures_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_MapFeatures_descriptor, + new java.lang.String[] { + "SimpleFeatures", "PoiBoostLevel", + }); + internal_static_google_maps_mapmanagement_v2beta_MapConfig_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_maps_mapmanagement_v2beta_MapConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_MapConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "MapId", + "MapFeatures", + "CreateTime", + "UpdateTime", + "MapType", + }); + internal_static_google_maps_mapmanagement_v2beta_StyleConfig_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_maps_mapmanagement_v2beta_StyleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_StyleConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "StyleId", + "JsonStyleSheet", + "CreateTime", + "UpdateTime", + }); + internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "StyleConfig", + }); + internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_GetStyleConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "View", + }); + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse_descriptor, + new java.lang.String[] { + "StyleConfigs", "NextPageToken", + }); + internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_descriptor, + new java.lang.String[] { + "StyleConfig", "UpdateMask", + }); + internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_MapContextConfig_descriptor, + new java.lang.String[] { + "Name", + "MapConfig", + "StyleConfig", + "Dataset", + "Alias", + "MapVariants", + "CreateTime", + "UpdateTime", + }); + internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "MapContextConfig", + }); + internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse_descriptor, + new java.lang.String[] { + "MapContextConfigs", "NextPageToken", + }); + internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_descriptor, + new java.lang.String[] { + "MapContextConfig", "UpdateMask", + }); + internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapRenderingType.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapRenderingType.java new file mode 100644 index 000000000000..e8aa0f2f5936 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapRenderingType.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * The type of map to be rendered.
+ * 
+ * + * Protobuf enum {@code google.maps.mapmanagement.v2beta.MapRenderingType} + */ +@com.google.protobuf.Generated +public enum MapRenderingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * A map rendered using the raster based implementation. This is the default
+   * rendering type if not specified.
+   * 
+ * + * RASTER = 0; + */ + RASTER(0), + /** + * + * + *
+   * A map rendered using webGL.
+   * 
+ * + * VECTOR = 1; + */ + VECTOR(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapRenderingType"); + } + + /** + * + * + *
+   * A map rendered using the raster based implementation. This is the default
+   * rendering type if not specified.
+   * 
+ * + * RASTER = 0; + */ + public static final int RASTER_VALUE = 0; + + /** + * + * + *
+   * A map rendered using webGL.
+   * 
+ * + * VECTOR = 1; + */ + public static final int VECTOR_VALUE = 1; + + 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 MapRenderingType 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 MapRenderingType forNumber(int value) { + switch (value) { + case 0: + return RASTER; + case 1: + return VECTOR; + 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 MapRenderingType findValueByNumber(int number) { + return MapRenderingType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final MapRenderingType[] VALUES = values(); + + public static MapRenderingType 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 MapRenderingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.mapmanagement.v2beta.MapRenderingType) +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java new file mode 100644 index 000000000000..13c552056c5b --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +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 ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + 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 (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfig.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfig.java new file mode 100644 index 000000000000..4aaa3009d982 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfig.java @@ -0,0 +1,2025 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Represents a single style in a Maps API client application. The StyleConfig
+ * contains the style sheet that defines the visual appearance of the map.
+ * Next ID = 9;
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.StyleConfig} + */ +@com.google.protobuf.Generated +public final class StyleConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.StyleConfig) + StyleConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StyleConfig"); + } + + // Use StyleConfig.newBuilder() to construct. + private StyleConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StyleConfig() { + name_ = ""; + displayName_ = ""; + description_ = ""; + styleId_ = ""; + jsonStyleSheet_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_StyleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_StyleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.StyleConfig.class, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. Resource name of this StyleConfig.
+   * For example: "projects/my-project-123/styleConfigs/234".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+   * Output only. Identifier. Resource name of this StyleConfig.
+   * For example: "projects/my-project-123/styleConfigs/234".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. The display name of this StyleConfig, as specified by the user.
+   * 
+ * + * 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. The display name of this StyleConfig, as specified by the user.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The description of this StyleConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The description of this StyleConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STYLE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object styleId_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of this style. This is a read-only field
+   * that is generated when the StyleConfig is created. Output only.
+   * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The styleId. + */ + @java.lang.Override + public java.lang.String getStyleId() { + java.lang.Object ref = styleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + styleId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of this style. This is a read-only field
+   * that is generated when the StyleConfig is created. Output only.
+   * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for styleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStyleIdBytes() { + java.lang.Object ref = styleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + styleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JSON_STYLE_SHEET_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object jsonStyleSheet_ = ""; + + /** + * + * + *
+   * Optional. JSON representation of the style sheet for this StyleConfig. If
+   * not specified or if provided as an empty string, the base unstyled Google
+   * map style will be used. See
+   * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+   * for more details on the acceptable JSON format.
+   * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonStyleSheet. + */ + @java.lang.Override + public java.lang.String getJsonStyleSheet() { + java.lang.Object ref = jsonStyleSheet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonStyleSheet_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. JSON representation of the style sheet for this StyleConfig. If
+   * not specified or if provided as an empty string, the base unstyled Google
+   * map style will be used. See
+   * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+   * for more details on the acceptable JSON format.
+   * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonStyleSheet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonStyleSheetBytes() { + java.lang.Object ref = jsonStyleSheet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonStyleSheet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Denotes the creation time of the StyleConfig.
+   * 
+ * + * + * optional .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_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Denotes the creation time of the StyleConfig.
+   * 
+ * + * + * optional .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. Denotes the creation time of the StyleConfig.
+   * 
+ * + * + * optional .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_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Denotes the last update time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Denotes the last update time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Denotes the last update time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(styleId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, styleId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jsonStyleSheet_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, jsonStyleSheet_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(styleId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, styleId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jsonStyleSheet_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, jsonStyleSheet_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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.maps.mapmanagement.v2beta.StyleConfig)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.StyleConfig other = + (com.google.maps.mapmanagement.v2beta.StyleConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getStyleId().equals(other.getStyleId())) return false; + if (!getJsonStyleSheet().equals(other.getJsonStyleSheet())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STYLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getStyleId().hashCode(); + hash = (37 * hash) + JSON_STYLE_SHEET_FIELD_NUMBER; + hash = (53 * hash) + getJsonStyleSheet().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig 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.maps.mapmanagement.v2beta.StyleConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.StyleConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a single style in a Maps API client application. The StyleConfig
+   * contains the style sheet that defines the visual appearance of the map.
+   * Next ID = 9;
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.StyleConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.StyleConfig) + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_StyleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_StyleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.StyleConfig.class, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.StyleConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + styleId_ = ""; + jsonStyleSheet_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_StyleConfig_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfig getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfig build() { + com.google.maps.mapmanagement.v2beta.StyleConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfig buildPartial() { + com.google.maps.mapmanagement.v2beta.StyleConfig result = + new com.google.maps.mapmanagement.v2beta.StyleConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.StyleConfig 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.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.styleId_ = styleId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.jsonStyleSheet_ = jsonStyleSheet_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.StyleConfig) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.StyleConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.StyleConfig other) { + if (other == com.google.maps.mapmanagement.v2beta.StyleConfig.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.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStyleId().isEmpty()) { + styleId_ = other.styleId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getJsonStyleSheet().isEmpty()) { + jsonStyleSheet_ = other.jsonStyleSheet_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + styleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + jsonStyleSheet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + 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_ = ""; + + /** + * + * + *
+     * Output only. Identifier. Resource name of this StyleConfig.
+     * For example: "projects/my-project-123/styleConfigs/234".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this StyleConfig.
+     * For example: "projects/my-project-123/styleConfigs/234".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this StyleConfig.
+     * For example: "projects/my-project-123/styleConfigs/234".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this StyleConfig.
+     * For example: "projects/my-project-123/styleConfigs/234".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Resource name of this StyleConfig.
+     * For example: "projects/my-project-123/styleConfigs/234".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. The display name of this StyleConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this StyleConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this StyleConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this StyleConfig, as specified by the user.
+     * 
+ * + * 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. The display name of this StyleConfig, as specified by the user.
+     * 
+ * + * 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 description_ = ""; + + /** + * + * + *
+     * Optional. The description of this StyleConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The description of this StyleConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The description of this StyleConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of this StyleConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of this StyleConfig, as specified by the user.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object styleId_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of this style. This is a read-only field
+     * that is generated when the StyleConfig is created. Output only.
+     * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The styleId. + */ + public java.lang.String getStyleId() { + java.lang.Object ref = styleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + styleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of this style. This is a read-only field
+     * that is generated when the StyleConfig is created. Output only.
+     * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for styleId. + */ + public com.google.protobuf.ByteString getStyleIdBytes() { + java.lang.Object ref = styleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + styleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of this style. This is a read-only field
+     * that is generated when the StyleConfig is created. Output only.
+     * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The styleId to set. + * @return This builder for chaining. + */ + public Builder setStyleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + styleId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of this style. This is a read-only field
+     * that is generated when the StyleConfig is created. Output only.
+     * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStyleId() { + styleId_ = getDefaultInstance().getStyleId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of this style. This is a read-only field
+     * that is generated when the StyleConfig is created. Output only.
+     * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for styleId to set. + * @return This builder for chaining. + */ + public Builder setStyleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + styleId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object jsonStyleSheet_ = ""; + + /** + * + * + *
+     * Optional. JSON representation of the style sheet for this StyleConfig. If
+     * not specified or if provided as an empty string, the base unstyled Google
+     * map style will be used. See
+     * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+     * for more details on the acceptable JSON format.
+     * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonStyleSheet. + */ + public java.lang.String getJsonStyleSheet() { + java.lang.Object ref = jsonStyleSheet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonStyleSheet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. JSON representation of the style sheet for this StyleConfig. If
+     * not specified or if provided as an empty string, the base unstyled Google
+     * map style will be used. See
+     * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+     * for more details on the acceptable JSON format.
+     * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonStyleSheet. + */ + public com.google.protobuf.ByteString getJsonStyleSheetBytes() { + java.lang.Object ref = jsonStyleSheet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonStyleSheet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. JSON representation of the style sheet for this StyleConfig. If
+     * not specified or if provided as an empty string, the base unstyled Google
+     * map style will be used. See
+     * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+     * for more details on the acceptable JSON format.
+     * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonStyleSheet to set. + * @return This builder for chaining. + */ + public Builder setJsonStyleSheet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonStyleSheet_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. JSON representation of the style sheet for this StyleConfig. If
+     * not specified or if provided as an empty string, the base unstyled Google
+     * map style will be used. See
+     * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+     * for more details on the acceptable JSON format.
+     * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonStyleSheet() { + jsonStyleSheet_ = getDefaultInstance().getJsonStyleSheet(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. JSON representation of the style sheet for this StyleConfig. If
+     * not specified or if provided as an empty string, the base unstyled Google
+     * map style will be used. See
+     * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+     * for more details on the acceptable JSON format.
+     * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonStyleSheet to set. + * @return This builder for chaining. + */ + public Builder setJsonStyleSheetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonStyleSheet_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .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. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .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_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .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. Denotes the creation time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Denotes the last update time of the StyleConfig.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.StyleConfig) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.StyleConfig) + private static final com.google.maps.mapmanagement.v2beta.StyleConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.StyleConfig(); + } + + public static com.google.maps.mapmanagement.v2beta.StyleConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StyleConfig 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.maps.mapmanagement.v2beta.StyleConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java new file mode 100644 index 000000000000..0ec0219d289d --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta; + +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 StyleConfigName implements ResourceName { + private static final PathTemplate PROJECT_STYLE_CONFIG = + PathTemplate.createWithoutUrlEncoding("projects/{project}/styleConfigs/{style_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String styleConfig; + + @Deprecated + protected StyleConfigName() { + project = null; + styleConfig = null; + } + + private StyleConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + styleConfig = Preconditions.checkNotNull(builder.getStyleConfig()); + } + + public String getProject() { + return project; + } + + public String getStyleConfig() { + return styleConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StyleConfigName of(String project, String styleConfig) { + return newBuilder().setProject(project).setStyleConfig(styleConfig).build(); + } + + public static String format(String project, String styleConfig) { + return newBuilder().setProject(project).setStyleConfig(styleConfig).build().toString(); + } + + public static StyleConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_STYLE_CONFIG.validatedMatch( + formattedString, "StyleConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("style_config")); + } + + 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 (StyleConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_STYLE_CONFIG.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 (styleConfig != null) { + fieldMapBuilder.put("style_config", styleConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_STYLE_CONFIG.instantiate("project", project, "style_config", styleConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + StyleConfigName that = ((StyleConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.styleConfig, that.styleConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(styleConfig); + return h; + } + + /** Builder for projects/{project}/styleConfigs/{style_config}. */ + public static class Builder { + private String project; + private String styleConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getStyleConfig() { + return styleConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setStyleConfig(String styleConfig) { + this.styleConfig = styleConfig; + return this; + } + + private Builder(StyleConfigName styleConfigName) { + this.project = styleConfigName.project; + this.styleConfig = styleConfigName.styleConfig; + } + + public StyleConfigName build() { + return new StyleConfigName(this); + } + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigOrBuilder.java new file mode 100644 index 000000000000..6e6d3686a3b8 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigOrBuilder.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface StyleConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.StyleConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. Resource name of this StyleConfig.
+   * For example: "projects/my-project-123/styleConfigs/234".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. Resource name of this StyleConfig.
+   * For example: "projects/my-project-123/styleConfigs/234".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The display name of this StyleConfig, as specified by the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of this StyleConfig, as specified by the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The description of this StyleConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The description of this StyleConfig, as specified by the user.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The unique identifier of this style. This is a read-only field
+   * that is generated when the StyleConfig is created. Output only.
+   * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The styleId. + */ + java.lang.String getStyleId(); + + /** + * + * + *
+   * Output only. The unique identifier of this style. This is a read-only field
+   * that is generated when the StyleConfig is created. Output only.
+   * 
+ * + * string style_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for styleId. + */ + com.google.protobuf.ByteString getStyleIdBytes(); + + /** + * + * + *
+   * Optional. JSON representation of the style sheet for this StyleConfig. If
+   * not specified or if provided as an empty string, the base unstyled Google
+   * map style will be used. See
+   * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+   * for more details on the acceptable JSON format.
+   * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonStyleSheet. + */ + java.lang.String getJsonStyleSheet(); + + /** + * + * + *
+   * Optional. JSON representation of the style sheet for this StyleConfig. If
+   * not specified or if provided as an empty string, the base unstyled Google
+   * map style will be used. See
+   * https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
+   * for more details on the acceptable JSON format.
+   * 
+ * + * string json_style_sheet = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonStyleSheet. + */ + com.google.protobuf.ByteString getJsonStyleSheetBytes(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Denotes the creation time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Denotes the last update time of the StyleConfig.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigView.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigView.java new file mode 100644 index 000000000000..199a5a1813b4 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigView.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * What subset of the StyleConfig to return.
+ * 
+ * + * Protobuf enum {@code google.maps.mapmanagement.v2beta.StyleConfigView} + */ +@com.google.protobuf.Generated +public enum StyleConfigView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified view.
+   * 
+ * + * STYLE_CONFIG_VIEW_UNSPECIFIED = 0; + */ + STYLE_CONFIG_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Include the json_style_sheet in the response.
+   * 
+ * + * FULL = 1; + */ + FULL(1), + /** + * + * + *
+   * Exclude the json_style_sheet from the response.
+   * 
+ * + * METADATA_ONLY = 2; + */ + METADATA_ONLY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StyleConfigView"); + } + + /** + * + * + *
+   * Unspecified view.
+   * 
+ * + * STYLE_CONFIG_VIEW_UNSPECIFIED = 0; + */ + public static final int STYLE_CONFIG_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Include the json_style_sheet in the response.
+   * 
+ * + * FULL = 1; + */ + public static final int FULL_VALUE = 1; + + /** + * + * + *
+   * Exclude the json_style_sheet from the response.
+   * 
+ * + * METADATA_ONLY = 2; + */ + public static final int METADATA_ONLY_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 StyleConfigView 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 StyleConfigView forNumber(int value) { + switch (value) { + case 0: + return STYLE_CONFIG_VIEW_UNSPECIFIED; + case 1: + return FULL; + case 2: + return METADATA_ONLY; + 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 StyleConfigView findValueByNumber(int number) { + return StyleConfigView.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StyleConfigView[] VALUES = values(); + + public static StyleConfigView 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 StyleConfigView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.mapmanagement.v2beta.StyleConfigView) +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapConfigRequest.java new file mode 100644 index 000000000000..e0c99d5445b0 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapConfigRequest.java @@ -0,0 +1,1109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to update a MapConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.UpdateMapConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMapConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) + UpdateMapConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMapConfigRequest"); + } + + // Use UpdateMapConfigRequest.newBuilder() to construct. + private UpdateMapConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMapConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int MAP_CONFIG_FIELD_NUMBER = 1; + private com.google.maps.mapmanagement.v2beta.MapConfig mapConfig_; + + /** + * + * + *
+   * Required. The MapConfig to update.
+   *
+   * The MapConfig's `name` field is used to identify the MapConfig to update.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapConfig field is set. + */ + @java.lang.Override + public boolean hasMapConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The MapConfig to update.
+   *
+   * The MapConfig's `name` field is used to identify the MapConfig to update.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapConfig. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig() { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } + + /** + * + * + *
+   * Required. The MapConfig to update.
+   *
+   * The MapConfig's `name` field is used to identify the MapConfig to update.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigOrBuilder() { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The specific field to update for the MapConfig. If not specified,
+   * the MapConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `map_features`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The specific field to update for the MapConfig. If not specified,
+   * the MapConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `map_features`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The specific field to update for the MapConfig. If not specified,
+   * the MapConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `map_features`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMapConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getMapConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest other = + (com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) obj; + + if (hasMapConfig() != other.hasMapConfig()) return false; + if (hasMapConfig()) { + if (!getMapConfig().equals(other.getMapConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMapConfig()) { + hash = (37 * hash) + MAP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMapConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest 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.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.UpdateMapConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to update a MapConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.UpdateMapConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.class, + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMapConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mapConfig_ = null; + if (mapConfigBuilder_ != null) { + mapConfigBuilder_.dispose(); + mapConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest build() { + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest result = + new com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mapConfig_ = mapConfigBuilder_ == null ? mapConfig_ : mapConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest other) { + if (other == com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest.getDefaultInstance()) + return this; + if (other.hasMapConfig()) { + mergeMapConfig(other.getMapConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetMapConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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 com.google.maps.mapmanagement.v2beta.MapConfig mapConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder> + mapConfigBuilder_; + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapConfig field is set. + */ + public boolean hasMapConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapConfig. + */ + public com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig() { + if (mapConfigBuilder_ == null) { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } else { + return mapConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapConfig(com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mapConfig_ = value; + } else { + mapConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapConfig( + com.google.maps.mapmanagement.v2beta.MapConfig.Builder builderForValue) { + if (mapConfigBuilder_ == null) { + mapConfig_ = builderForValue.build(); + } else { + mapConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMapConfig(com.google.maps.mapmanagement.v2beta.MapConfig value) { + if (mapConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && mapConfig_ != null + && mapConfig_ != com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance()) { + getMapConfigBuilder().mergeFrom(value); + } else { + mapConfig_ = value; + } + } else { + mapConfigBuilder_.mergeFrom(value); + } + if (mapConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMapConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + mapConfig_ = null; + if (mapConfigBuilder_ != null) { + mapConfigBuilder_.dispose(); + mapConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapConfig.Builder getMapConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMapConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigOrBuilder() { + if (mapConfigBuilder_ != null) { + return mapConfigBuilder_.getMessageOrBuilder(); + } else { + return mapConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapConfig.getDefaultInstance() + : mapConfig_; + } + } + + /** + * + * + *
+     * Required. The MapConfig to update.
+     *
+     * The MapConfig's `name` field is used to identify the MapConfig to update.
+     * Format: `projects/{project}/mapConfigs/{map_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder> + internalGetMapConfigFieldBuilder() { + if (mapConfigBuilder_ == null) { + mapConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapConfig, + com.google.maps.mapmanagement.v2beta.MapConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder>( + getMapConfig(), getParentForChildren(), isClean()); + mapConfig_ = null; + } + return mapConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The specific field to update for the MapConfig. If not specified,
+     * the MapConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `map_features`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMapConfigRequest 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.maps.mapmanagement.v2beta.UpdateMapConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapConfigRequestOrBuilder.java new file mode 100644 index 000000000000..4e8a8ec0094d --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapConfigRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface UpdateMapConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.UpdateMapConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The MapConfig to update.
+   *
+   * The MapConfig's `name` field is used to identify the MapConfig to update.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapConfig field is set. + */ + boolean hasMapConfig(); + + /** + * + * + *
+   * Required. The MapConfig to update.
+   *
+   * The MapConfig's `name` field is used to identify the MapConfig to update.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapConfig. + */ + com.google.maps.mapmanagement.v2beta.MapConfig getMapConfig(); + + /** + * + * + *
+   * Required. The MapConfig to update.
+   *
+   * The MapConfig's `name` field is used to identify the MapConfig to update.
+   * Format: `projects/{project}/mapConfigs/{map_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapConfig map_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.maps.mapmanagement.v2beta.MapConfigOrBuilder getMapConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The specific field to update for the MapConfig. If not specified,
+   * the MapConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `map_features`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The specific field to update for the MapConfig. If not specified,
+   * the MapConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `map_features`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The specific field to update for the MapConfig. If not specified,
+   * the MapConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `map_features`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapContextConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapContextConfigRequest.java new file mode 100644 index 000000000000..68d8aa129f68 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapContextConfigRequest.java @@ -0,0 +1,1163 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to update a MapContextConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMapContextConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) + UpdateMapContextConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMapContextConfigRequest"); + } + + // Use UpdateMapContextConfigRequest.newBuilder() to construct. + private UpdateMapContextConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMapContextConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int MAP_CONTEXT_CONFIG_FIELD_NUMBER = 1; + private com.google.maps.mapmanagement.v2beta.MapContextConfig mapContextConfig_; + + /** + * + * + *
+   * Required. The MapContextConfig to update.
+   *
+   * The MapContextConfig's `name` field is used to identify the
+   * MapContextConfig to update. Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapContextConfig field is set. + */ + @java.lang.Override + public boolean hasMapContextConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The MapContextConfig to update.
+   *
+   * The MapContextConfig's `name` field is used to identify the
+   * MapContextConfig to update. Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapContextConfig. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig() { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } + + /** + * + * + *
+   * Required. The MapContextConfig to update.
+   *
+   * The MapContextConfig's `name` field is used to identify the
+   * MapContextConfig to update. Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder + getMapContextConfigOrBuilder() { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the
+   * MapContextConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `alias`
+   * * `map_variants`
+   * * `style_config`
+   * * `dataset`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the
+   * MapContextConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `alias`
+   * * `map_variants`
+   * * `style_config`
+   * * `dataset`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the
+   * MapContextConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `alias`
+   * * `map_variants`
+   * * `style_config`
+   * * `dataset`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMapContextConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getMapContextConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest other = + (com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) obj; + + if (hasMapContextConfig() != other.hasMapContextConfig()) return false; + if (hasMapContextConfig()) { + if (!getMapContextConfig().equals(other.getMapContextConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMapContextConfig()) { + hash = (37 * hash) + MAP_CONTEXT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMapContextConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest 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.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to update a MapContextConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest.class, + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest.Builder.class); + } + + // Construct using + // com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMapContextConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mapContextConfig_ = null; + if (mapContextConfigBuilder_ != null) { + mapContextConfigBuilder_.dispose(); + mapContextConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest build() { + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest result = + new com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mapContextConfig_ = + mapContextConfigBuilder_ == null ? mapContextConfig_ : mapContextConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) { + return mergeFrom( + (com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + .getDefaultInstance()) return this; + if (other.hasMapContextConfig()) { + mergeMapContextConfig(other.getMapContextConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetMapContextConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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 com.google.maps.mapmanagement.v2beta.MapContextConfig mapContextConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder> + mapContextConfigBuilder_; + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapContextConfig field is set. + */ + public boolean hasMapContextConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapContextConfig. + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig() { + if (mapContextConfigBuilder_ == null) { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } else { + return mapContextConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapContextConfig( + com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mapContextConfig_ = value; + } else { + mapContextConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMapContextConfig( + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder builderForValue) { + if (mapContextConfigBuilder_ == null) { + mapContextConfig_ = builderForValue.build(); + } else { + mapContextConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMapContextConfig( + com.google.maps.mapmanagement.v2beta.MapContextConfig value) { + if (mapContextConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && mapContextConfig_ != null + && mapContextConfig_ + != com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance()) { + getMapContextConfigBuilder().mergeFrom(value); + } else { + mapContextConfig_ = value; + } + } else { + mapContextConfigBuilder_.mergeFrom(value); + } + if (mapContextConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMapContextConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + mapContextConfig_ = null; + if (mapContextConfigBuilder_ != null) { + mapContextConfigBuilder_.dispose(); + mapContextConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder + getMapContextConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMapContextConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder + getMapContextConfigOrBuilder() { + if (mapContextConfigBuilder_ != null) { + return mapContextConfigBuilder_.getMessageOrBuilder(); + } else { + return mapContextConfig_ == null + ? com.google.maps.mapmanagement.v2beta.MapContextConfig.getDefaultInstance() + : mapContextConfig_; + } + } + + /** + * + * + *
+     * Required. The MapContextConfig to update.
+     *
+     * The MapContextConfig's `name` field is used to identify the
+     * MapContextConfig to update. Format:
+     * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder> + internalGetMapContextConfigFieldBuilder() { + if (mapContextConfigBuilder_ == null) { + mapContextConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.MapContextConfig, + com.google.maps.mapmanagement.v2beta.MapContextConfig.Builder, + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder>( + getMapContextConfig(), getParentForChildren(), isClean()); + mapContextConfig_ = null; + } + return mapContextConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the
+     * MapContextConfig will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `alias`
+     * * `map_variants`
+     * * `style_config`
+     * * `dataset`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMapContextConfigRequest 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.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapContextConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapContextConfigRequestOrBuilder.java new file mode 100644 index 000000000000..732c8abd590c --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateMapContextConfigRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface UpdateMapContextConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The MapContextConfig to update.
+   *
+   * The MapContextConfig's `name` field is used to identify the
+   * MapContextConfig to update. Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mapContextConfig field is set. + */ + boolean hasMapContextConfig(); + + /** + * + * + *
+   * Required. The MapContextConfig to update.
+   *
+   * The MapContextConfig's `name` field is used to identify the
+   * MapContextConfig to update. Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mapContextConfig. + */ + com.google.maps.mapmanagement.v2beta.MapContextConfig getMapContextConfig(); + + /** + * + * + *
+   * Required. The MapContextConfig to update.
+   *
+   * The MapContextConfig's `name` field is used to identify the
+   * MapContextConfig to update. Format:
+   * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.MapContextConfig map_context_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.maps.mapmanagement.v2beta.MapContextConfigOrBuilder getMapContextConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the
+   * MapContextConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `alias`
+   * * `map_variants`
+   * * `style_config`
+   * * `dataset`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the
+   * MapContextConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `alias`
+   * * `map_variants`
+   * * `style_config`
+   * * `dataset`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the
+   * MapContextConfig will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `alias`
+   * * `map_variants`
+   * * `style_config`
+   * * `dataset`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateStyleConfigRequest.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateStyleConfigRequest.java new file mode 100644 index 000000000000..c3c3e4986790 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateStyleConfigRequest.java @@ -0,0 +1,1115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +/** + * + * + *
+ * Request to update a StyleConfig.
+ * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateStyleConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) + UpdateStyleConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateStyleConfigRequest"); + } + + // Use UpdateStyleConfigRequest.newBuilder() to construct. + private UpdateStyleConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateStyleConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int STYLE_CONFIG_FIELD_NUMBER = 1; + private com.google.maps.mapmanagement.v2beta.StyleConfig styleConfig_; + + /** + * + * + *
+   * Required. The StyleConfig to update.
+   *
+   * The StyleConfig's `name` field is used to identify the StyleConfig to
+   * update. Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the styleConfig field is set. + */ + @java.lang.Override + public boolean hasStyleConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The StyleConfig to update.
+   *
+   * The StyleConfig's `name` field is used to identify the StyleConfig to
+   * update. Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The styleConfig. + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig() { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } + + /** + * + * + *
+   * Required. The StyleConfig to update.
+   *
+   * The StyleConfig's `name` field is used to identify the StyleConfig to
+   * update. Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigOrBuilder() { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the StyleConfig
+   * will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `json_style_sheet`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the StyleConfig
+   * will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `json_style_sheet`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the StyleConfig
+   * will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `json_style_sheet`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStyleConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getStyleConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest)) { + return super.equals(obj); + } + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest other = + (com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) obj; + + if (hasStyleConfig() != other.hasStyleConfig()) return false; + if (hasStyleConfig()) { + if (!getStyleConfig().equals(other.getStyleConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStyleConfig()) { + hash = (37 * hash) + STYLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStyleConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest 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.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.maps.mapmanagement.v2beta.UpdateStyleConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to update a StyleConfig.
+   * 
+ * + * Protobuf type {@code google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.class, + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.Builder.class); + } + + // Construct using com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStyleConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + styleConfig_ = null; + if (styleConfigBuilder_ != null) { + styleConfigBuilder_.dispose(); + styleConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapmanagement.v2beta.MapManagementServiceProto + .internal_static_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest + getDefaultInstanceForType() { + return com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest build() { + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest buildPartial() { + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest result = + new com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.styleConfig_ = + styleConfigBuilder_ == null ? styleConfig_ : styleConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) { + return mergeFrom((com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest other) { + if (other + == com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest.getDefaultInstance()) + return this; + if (other.hasStyleConfig()) { + mergeStyleConfig(other.getStyleConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetStyleConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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 com.google.maps.mapmanagement.v2beta.StyleConfig styleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder> + styleConfigBuilder_; + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the styleConfig field is set. + */ + public boolean hasStyleConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The styleConfig. + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig() { + if (styleConfigBuilder_ == null) { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } else { + return styleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStyleConfig(com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + styleConfig_ = value; + } else { + styleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStyleConfig( + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder builderForValue) { + if (styleConfigBuilder_ == null) { + styleConfig_ = builderForValue.build(); + } else { + styleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStyleConfig(com.google.maps.mapmanagement.v2beta.StyleConfig value) { + if (styleConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && styleConfig_ != null + && styleConfig_ + != com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance()) { + getStyleConfigBuilder().mergeFrom(value); + } else { + styleConfig_ = value; + } + } else { + styleConfigBuilder_.mergeFrom(value); + } + if (styleConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStyleConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + styleConfig_ = null; + if (styleConfigBuilder_ != null) { + styleConfigBuilder_.dispose(); + styleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.StyleConfig.Builder getStyleConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStyleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigOrBuilder() { + if (styleConfigBuilder_ != null) { + return styleConfigBuilder_.getMessageOrBuilder(); + } else { + return styleConfig_ == null + ? com.google.maps.mapmanagement.v2beta.StyleConfig.getDefaultInstance() + : styleConfig_; + } + } + + /** + * + * + *
+     * Required. The StyleConfig to update.
+     *
+     * The StyleConfig's `name` field is used to identify the StyleConfig to
+     * update. Format: `projects/{project}/styleConfigs/{style_config}`
+     * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder> + internalGetStyleConfigFieldBuilder() { + if (styleConfigBuilder_ == null) { + styleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.mapmanagement.v2beta.StyleConfig, + com.google.maps.mapmanagement.v2beta.StyleConfig.Builder, + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder>( + getStyleConfig(), getParentForChildren(), isClean()); + styleConfig_ = null; + } + return styleConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The list of fields to update. If not specified, the StyleConfig
+     * will be updated in its entirety. Valid fields are:
+     *
+     * * `display_name`
+     * * `description`
+     * * `json_style_sheet`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) + private static final com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest(); + } + + public static com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateStyleConfigRequest 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.maps.mapmanagement.v2beta.UpdateStyleConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateStyleConfigRequestOrBuilder.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateStyleConfigRequestOrBuilder.java new file mode 100644 index 000000000000..01a57e607ad3 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/UpdateStyleConfigRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.maps.mapmanagement.v2beta; + +@com.google.protobuf.Generated +public interface UpdateStyleConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The StyleConfig to update.
+   *
+   * The StyleConfig's `name` field is used to identify the StyleConfig to
+   * update. Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the styleConfig field is set. + */ + boolean hasStyleConfig(); + + /** + * + * + *
+   * Required. The StyleConfig to update.
+   *
+   * The StyleConfig's `name` field is used to identify the StyleConfig to
+   * update. Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The styleConfig. + */ + com.google.maps.mapmanagement.v2beta.StyleConfig getStyleConfig(); + + /** + * + * + *
+   * Required. The StyleConfig to update.
+   *
+   * The StyleConfig's `name` field is used to identify the StyleConfig to
+   * update. Format: `projects/{project}/styleConfigs/{style_config}`
+   * 
+ * + * + * .google.maps.mapmanagement.v2beta.StyleConfig style_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.maps.mapmanagement.v2beta.StyleConfigOrBuilder getStyleConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the StyleConfig
+   * will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `json_style_sheet`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the StyleConfig
+   * will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `json_style_sheet`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update. If not specified, the StyleConfig
+   * will be updated in its entirety. Valid fields are:
+   *
+   * * `display_name`
+   * * `description`
+   * * `json_style_sheet`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/proto/google/maps/mapmanagement/v2beta/map_management_service.proto b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/proto/google/maps/mapmanagement/v2beta/map_management_service.proto new file mode 100644 index 000000000000..c4fd7dcced12 --- /dev/null +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/proto/google/maps/mapmanagement/v2beta/map_management_service.proto @@ -0,0 +1,764 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.maps.mapmanagement.v2beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Maps.MapManagement.V2Beta"; +option go_package = "cloud.google.com/go/maps/mapmanagement/apiv2beta/mapmanagementpb;mapmanagementpb"; +option java_multiple_files = true; +option java_outer_classname = "MapManagementServiceProto"; +option java_package = "com.google.maps.mapmanagement.v2beta"; +option objc_class_prefix = "GMMGMTV2MAIN"; +option php_namespace = "Google\\Maps\\MapManagement\\V2beta"; +option (google.api.resource_definition) = { + type: "mapmanagement.googleapis.com/Dataset" + pattern: "projects/{project}/datasets/{dataset}" + plural: "datasets" + singular: "dataset" +}; + +// The Map Management API uses your inputs to create and manage +// Google Cloud based styling resources for Google Maps. +// +// Using this API, you can can create and manage MapConfigs (Map IDs), +// StyleConfigs (JSON-based styling), and MapContextConfigs (associations +// between styles, datasets, and map variants). +// +// This API offers features through three channels: +// * `v2alpha`: Experimental features. +// * `v2beta`: Preview features, recommended for early adoption. +// * `v2`: General Availability (GA) features. +// +// Capabilities described here are generally available across both the v2alpha +// and v2beta endpoints. +service MapManagement { + option (google.api.default_host) = "mapmanagement.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a MapConfig in a project. + rpc CreateMapConfig(CreateMapConfigRequest) returns (MapConfig) { + option (google.api.http) = { + post: "/v2beta/{parent=projects/*}/mapConfigs" + body: "map_config" + }; + option (google.api.method_signature) = "parent,map_config"; + } + + // Gets a MapConfig. + rpc GetMapConfig(GetMapConfigRequest) returns (MapConfig) { + option (google.api.http) = { + get: "/v2beta/{name=projects/*/mapConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists MapConfigs for a project. + rpc ListMapConfigs(ListMapConfigsRequest) returns (ListMapConfigsResponse) { + option (google.api.http) = { + get: "/v2beta/{parent=projects/*}/mapConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a MapConfig. + rpc UpdateMapConfig(UpdateMapConfigRequest) returns (MapConfig) { + option (google.api.http) = { + patch: "/v2beta/{map_config.name=projects/*/mapConfigs/*}" + body: "map_config" + }; + option (google.api.method_signature) = "map_config,update_mask"; + } + + // Deletes a MapConfig. + rpc DeleteMapConfig(DeleteMapConfigRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta/{name=projects/*/mapConfigs/*}" + }; + option (google.api.method_signature) = "name,force"; + } + + // Creates a StyleConfig. + rpc CreateStyleConfig(CreateStyleConfigRequest) returns (StyleConfig) { + option (google.api.http) = { + post: "/v2beta/{parent=projects/*}/styleConfigs" + body: "style_config" + }; + option (google.api.method_signature) = "parent,style_config"; + } + + // Gets a StyleConfig. + rpc GetStyleConfig(GetStyleConfigRequest) returns (StyleConfig) { + option (google.api.http) = { + get: "/v2beta/{name=projects/*/styleConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists StyleConfigs. + rpc ListStyleConfigs(ListStyleConfigsRequest) + returns (ListStyleConfigsResponse) { + option (google.api.http) = { + get: "/v2beta/{parent=projects/*}/styleConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a StyleConfig. + rpc UpdateStyleConfig(UpdateStyleConfigRequest) returns (StyleConfig) { + option (google.api.http) = { + patch: "/v2beta/{style_config.name=projects/*/styleConfigs/*}" + body: "style_config" + }; + option (google.api.method_signature) = "style_config,update_mask"; + } + + // Deletes a StyleConfig. + rpc DeleteStyleConfig(DeleteStyleConfigRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta/{name=projects/*/styleConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a MapContextConfig. + rpc CreateMapContextConfig(CreateMapContextConfigRequest) + returns (MapContextConfig) { + option (google.api.http) = { + post: "/v2beta/{parent=projects/*/mapConfigs/*}/mapContextConfigs" + body: "map_context_config" + }; + option (google.api.method_signature) = "parent,map_context_config"; + } + + // Gets a MapContextConfig. + rpc GetMapContextConfig(GetMapContextConfigRequest) + returns (MapContextConfig) { + option (google.api.http) = { + get: "/v2beta/{name=projects/*/mapConfigs/*/mapContextConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists MapContextConfigs. + rpc ListMapContextConfigs(ListMapContextConfigsRequest) + returns (ListMapContextConfigsResponse) { + option (google.api.http) = { + get: "/v2beta/{parent=projects/*/mapConfigs/*}/mapContextConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a MapContextConfig. + rpc UpdateMapContextConfig(UpdateMapContextConfigRequest) + returns (MapContextConfig) { + option (google.api.http) = { + patch: "/v2beta/{map_context_config.name=projects/*/mapConfigs/*/mapContextConfigs/*}" + body: "map_context_config" + }; + option (google.api.method_signature) = "map_context_config,update_mask"; + } + + // Deletes a MapContextConfig. + rpc DeleteMapContextConfig(DeleteMapContextConfigRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta/{name=projects/*/mapConfigs/*/mapContextConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// What subset of the StyleConfig to return. +enum StyleConfigView { + // Unspecified view. + STYLE_CONFIG_VIEW_UNSPECIFIED = 0; + + // Include the json_style_sheet in the response. + FULL = 1; + + // Exclude the json_style_sheet from the response. + METADATA_ONLY = 2; +} + +// The type of map to be rendered. +enum MapRenderingType { + // A map rendered using the raster based implementation. This is the default + // rendering type if not specified. + RASTER = 0; + + // A map rendered using webGL. + VECTOR = 1; +} + +// Request to create a MapConfig. +message CreateMapConfigRequest { + // Required. Parent project that will own the MapConfig. + // Format: `projects/{$my-project-id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The MapConfig to create. + MapConfig map_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to get a MapConfig. +message GetMapConfigRequest { + // Required. Resource name of the MapConfig. + // Format: `projects/{project}/mapConfigs/{map_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapConfig" + } + ]; +} + +// Request to list MapConfigs. +message ListMapConfigsRequest { + // Required. Parent project that owns the MapConfigs. + // Format: `projects/{project}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Optional. The maximum number of MapConfigs to return. The service may + // return fewer than this value. If unspecified, at most 50 MapConfigs will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. CURRENTLY UNSUPPORTED. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListMapConfigs` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListMapConfigs` must + // match the call that provided the page token. + // CURRENTLY UNSUPPORTED. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response to list MapConfigs. +message ListMapConfigsResponse { + // The list of MapConfigs. + repeated MapConfig map_configs = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // CURRENTLY UNSUPPORTED. + string next_page_token = 2; +} + +// Request to update a MapConfig. +message UpdateMapConfigRequest { + // Required. The MapConfig to update. + // + // The MapConfig's `name` field is used to identify the MapConfig to update. + // Format: `projects/{project}/mapConfigs/{map_config}` + MapConfig map_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The specific field to update for the MapConfig. If not specified, + // the MapConfig will be updated in its entirety. Valid fields are: + // + // * `display_name` + // * `description` + // * `map_features` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request to delete a MapConfig. If the MapConfig has any child +// MapContextConfigs, those will be deleted as well. +message DeleteMapConfigRequest { + // Required. Resource name of the MapConfig to delete. + // Format: `projects/{project}/mapConfigs/{map_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapConfig" + } + ]; + + // Optional. If set to true, any MapContextConfigs from this MapConfig will + // also be deleted. (Otherwise, the request will only work if the MapConfig + // has no MapContextConfigs.) + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a collection of map features that apply to a MapConfig. +// Features set on a MapConfig are inherited by all of its child +// MapContextConfigs. +// Next ID = 3; +message MapFeatures { + // This represents the set of map features that affect the intrinsic + // structure of the map. + enum SimpleFeature { + // Unspecified visual feature. + SIMPLE_FEATURE_UNSPECIFIED = 0; + + // Flattens all buildings in the map. + FLATTEN_BUILDINGS = 1; + + // Influences how icons are rendered. + ICONIC_ICONS = 2; + } + + // Optional. The visual feature to use for this map. + repeated SimpleFeature simple_features = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. POI Boost level, where 0 denotes no boostings and negative values + // denotes de-boosting. Boosted POIs are shown at lower zoom than default and + // vice versa de-boosted. Currently supports 2 levels of boosting, so the + // level is clamped to [-2, 2]. If not specified, the POI density defined in + // the style sheet will be used if it exists. Otherwise, no POI density will + // be applied. + optional int32 poi_boost_level = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a single map in a Maps API client application. The MapConfig is +// the parent resource of MapContextConfigs and enables custom styling in SDKs +// (Mobile/Web). A MapConfig can have multiple MapContextConfigs, each applying +// styling to specific map variants. +// Next ID = 9; +message MapConfig { + option (google.api.resource) = { + type: "mapmanagement.googleapis.com/MapConfig" + pattern: "projects/{project}/mapConfigs/{map_config}" + plural: "mapConfigs" + singular: "mapConfig" + }; + + // Output only. Identifier. Resource name of this MapConfig. + // For example: "projects/my-project-123/mapConfigs/234". + // Output only. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. The display name of this MapConfig, as specified by the user. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of this MapConfig, as specified by the user. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The Map ID of this MapConfig, used to identify the map in + // client applications. This read-only field is generated when the MapConfig + // is created. Output only. + string map_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The Map Features that apply to this Map Config. + MapFeatures map_features = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Denotes the creation time of the Map Config. Output only. + optional google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Denotes the last update time of the Map Config. Output only. + optional google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Represents the Map Type of the MapConfig. If this is unset, the + // default behavior is to use the raster map type. + MapRenderingType map_type = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a single style in a Maps API client application. The StyleConfig +// contains the style sheet that defines the visual appearance of the map. +// Next ID = 9; +message StyleConfig { + option (google.api.resource) = { + type: "mapmanagement.googleapis.com/StyleConfig" + pattern: "projects/{project}/styleConfigs/{style_config}" + plural: "styleConfigs" + singular: "styleConfig" + }; + + // Output only. Identifier. Resource name of this StyleConfig. + // For example: "projects/my-project-123/styleConfigs/234". + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. The display name of this StyleConfig, as specified by the user. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of this StyleConfig, as specified by the user. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of this style. This is a read-only field + // that is generated when the StyleConfig is created. Output only. + string style_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. JSON representation of the style sheet for this StyleConfig. If + // not specified or if provided as an empty string, the base unstyled Google + // map style will be used. See + // https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference + // for more details on the acceptable JSON format. + string json_style_sheet = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Denotes the creation time of the StyleConfig. + optional google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Denotes the last update time of the StyleConfig. + optional google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request to create a StyleConfig. +message CreateStyleConfigRequest { + // Required. Parent project that will own the StyleConfig. + // Format: `projects/{project}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The StyleConfig to create. + StyleConfig style_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to get a StyleConfig. +message GetStyleConfigRequest { + // Required. Resource name of the StyleConfig. + // Format: `projects/{project}/styleConfigs/{style_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/StyleConfig" + } + ]; +} + +// Request to list StyleConfigs. +message ListStyleConfigsRequest { + // Required. Parent project that owns the StyleConfigs. + // Format: `projects/{project}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Optional. The maximum number of StyleConfigs to return. The service may + // return fewer than this value. If unspecified, at most 50 StyleConfigs will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. CURRENTLY UNSUPPORTED. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListStyleConfigs` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListStyleConfigs` must + // match the call that provided the page token. + // CURRENTLY UNSUPPORTED. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression for the ListStyleConfigs call. + // Currently only supports filtering by display_name. + // For example: `display_name="My StyleConfig"` will return all StyleConfigs + // with the display name "My StyleConfig". + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The subset of the StyleConfig to return. If this is unset, the + // default behavior is to return the FULL view. + StyleConfigView view = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response to list StyleConfigs. +message ListStyleConfigsResponse { + // The StyleConfigs. + repeated StyleConfig style_configs = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // CURRENTLY UNSUPPORTED. + string next_page_token = 2; +} + +// Request to update a StyleConfig. +message UpdateStyleConfigRequest { + // Required. The StyleConfig to update. + // + // The StyleConfig's `name` field is used to identify the StyleConfig to + // update. Format: `projects/{project}/styleConfigs/{style_config}` + StyleConfig style_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. If not specified, the StyleConfig + // will be updated in its entirety. Valid fields are: + // + // * `display_name` + // * `description` + // * `json_style_sheet` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request to delete a StyleConfig. +message DeleteStyleConfigRequest { + // Required. Resource name of the StyleConfig to delete. + // Format: `projects/{project}/styleConfigs/{style_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/StyleConfig" + } + ]; +} + +// Encapsulates the styling configuration for a map. The MapContextConfig +// associates styling components, such as a StyleConfig and Datasets, with +// specific map variants of a MapConfig. When the MapConfig is loaded in an SDK, +// the styling and dataset information from the MapContextConfig are applied to +// the specified map variants. +// Next ID = 10; +message MapContextConfig { + option (google.api.resource) = { + type: "mapmanagement.googleapis.com/MapContextConfig" + pattern: "projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}" + plural: "mapContextConfigs" + singular: "mapContextConfig" + }; + + // Possible Map Variants that the MapContextConfig can be applied to. + // Map Variants are grouped into Light and Dark variants. A Light variant + // cannot be paired with a Dark variant for the same MapContextConfig. + // The Light Variants are: ROADMAP, SATELLITE, TERRAIN, NAVIGATION, TRANSIT, + // ABSTRACT3D, PHOTOREALISTIC3D. + // The Dark Variants are: ROADMAP_DARK, NAVIGATION_LOW_LIGHT, TERRAIN_DARK, + // TRANSIT_DARK. + // + // For example, the following is a valid pairing: + // {MapContextConfig 1: [ROADMAP, NAVIGATION]} + // {MapContextConfig 2: [ROADMAP_DARK, NAVIGATION_LOW_LIGHT]} + // + // The following is an invalid pairing: + // {MapContextConfig 1: [ROADMAP, ROADMAP_DARK]} + enum MapVariant { + // The default roadmap map type. If no map variants are specified in a + // MapContextConfig, this variant is used by default. + ROADMAP = 0; + + // A dark version of the roadmap map type. + ROADMAP_DARK = 1; + + // Satellite imagery. + SATELLITE = 2; + + // Terrain map type. + TERRAIN = 3; + + // A dark version of the terrain map type. + TERRAIN_DARK = 4; + + // Navigation map type. + NAVIGATION = 5; + + // A low light version of the navigation map type. + NAVIGATION_LOW_LIGHT = 6; + + // Transit map type. + TRANSIT = 7; + + // A dark version of the transit map type. + TRANSIT_DARK = 8; + + // Abstract 3D map type. + ABSTRACT3D = 9; + + // Photorealistic 3D map type. + PHOTOREALISTIC3D = 10; + } + + // Output only. Identifier. Resource name of this MapContextConfig. + // For example: + // projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id} + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Required. The MapConfig resource name that this MapContextConfig is + // associated with. Format: projects/{project}/mapConfigs/{map_config}. This + // field is required and cannot be omitted. + string map_config = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapConfig" + } + ]; + + // Required. The StyleConfig resource name that is styling this + // MapContextConfig. This field is required and cannot be omitted. Format: + // projects/{project}/styleConfigs/{style_config} + string style_config = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/StyleConfig" + } + ]; + + // Optional. The Dataset resource name that is associated with this + // MapContextConfig. This field is optional and can be omitted. If omitted, no + // datasets will be associated with the MapContextConfig. If a dataset is + // specified, it will be applied to the MapContextConfig. Format: + // projects/{project}/datasets/{dataset} + repeated string dataset = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/Dataset" + } + ]; + + // Optional. The user defined human readable name for this MapContextConfig. + string alias = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The map variants that this MapContextConfig can be applied to. If + // empty, the MapContextConfig will be default applied to only the ROADMAP map + // variant. + repeated MapVariant map_variants = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Denotes the creation time of the MapContextConfig. Output + // only. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Denotes the last update time of the MapContextConfig. Output + // only. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request to create a MapContextConfig. +message CreateMapContextConfigRequest { + // Required. Parent MapConfig that will own the MapContextConfig. + // Format: `projects/{project}/mapConfigs/{map_config}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapConfig" + } + ]; + + // Required. The MapContextConfig to create. + MapContextConfig map_context_config = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to get a MapContextConfig. +message GetMapContextConfigRequest { + // Required. Resource name of the MapContextConfig. + // Format: + // `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapContextConfig" + } + ]; +} + +// Request to list MapContextConfigs. +message ListMapContextConfigsRequest { + // Required. Parent MapConfig that owns the MapContextConfigs. + // Format: `projects/{project}/mapConfigs/{map_config}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapConfig" + } + ]; + + // Optional. The maximum number of MapContextConfigs to return. The service + // may return fewer than this value. If unspecified, at most 50 + // MapContextConfigs will be returned. The maximum value is 1000; values above + // 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListMapContextConfigs` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListMapContextConfigs` + // must match the call that provided the page token. CURRENTLY UNSUPPORTED. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response to list MapContextConfigs. +message ListMapContextConfigsResponse { + // The MapContextConfigs. + repeated MapContextConfig map_context_configs = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // CURRENTLY UNSUPPORTED. + string next_page_token = 2; +} + +// Request to update a MapContextConfig. +message UpdateMapContextConfigRequest { + // Required. The MapContextConfig to update. + // + // The MapContextConfig's `name` field is used to identify the + // MapContextConfig to update. Format: + // `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + MapContextConfig map_context_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. If not specified, the + // MapContextConfig will be updated in its entirety. Valid fields are: + // + // * `display_name` + // * `alias` + // * `map_variants` + // * `style_config` + // * `dataset` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request to delete a MapContextConfig. +message DeleteMapContextConfigRequest { + // Required. Resource name of the MapContextConfig to delete. + // Format: + // `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapmanagement.googleapis.com/MapContextConfig" + } + ]; +} diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateSetCredentialsProvider.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..603cd01cafd0 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.MapManagementSettings; +import com.google.maps.mapmanagement.v2beta.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 + MapManagementSettings mapManagementSettings = + MapManagementSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MapManagementClient mapManagementClient = MapManagementClient.create(mapManagementSettings); + } +} +// [END mapmanagement_v2beta_generated_MapManagement_Create_SetCredentialsProvider_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateSetEndpoint.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..77ddd744dca8 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_Create_SetEndpoint_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.MapManagementSettings; +import com.google.maps.mapmanagement.v2beta.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 + MapManagementSettings mapManagementSettings = + MapManagementSettings.newBuilder().setEndpoint(myEndpoint).build(); + MapManagementClient mapManagementClient = MapManagementClient.create(mapManagementSettings); + } +} +// [END mapmanagement_v2beta_generated_MapManagement_Create_SetEndpoint_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateUseHttpJsonTransport.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2b5ab16cffa7 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_Create_UseHttpJsonTransport_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.MapManagementSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MapManagementSettings mapManagementSettings = + MapManagementSettings.newHttpJsonBuilder().build(); + MapManagementClient mapManagementClient = MapManagementClient.create(mapManagementSettings); + } +} +// [END mapmanagement_v2beta_generated_MapManagement_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/AsyncCreateMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/AsyncCreateMapConfig.java new file mode 100644 index 000000000000..cc9d1b2ab642 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/AsyncCreateMapConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class AsyncCreateMapConfig { + + public static void main(String[] args) throws Exception { + asyncCreateMapConfig(); + } + + public static void asyncCreateMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + CreateMapConfigRequest request = + CreateMapConfigRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMapConfig(MapConfig.newBuilder().build()) + .build(); + ApiFuture future = + mapManagementClient.createMapConfigCallable().futureCall(request); + // Do something. + MapConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfig.java new file mode 100644 index 000000000000..ff23e1bb4eaa --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync] +import com.google.maps.mapmanagement.v2beta.CreateMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class SyncCreateMapConfig { + + public static void main(String[] args) throws Exception { + syncCreateMapConfig(); + } + + public static void syncCreateMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + CreateMapConfigRequest request = + CreateMapConfigRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMapConfig(MapConfig.newBuilder().build()) + .build(); + MapConfig response = mapManagementClient.createMapConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfigProjectnameMapconfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfigProjectnameMapconfig.java new file mode 100644 index 000000000000..2dddbe205f8f --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfigProjectnameMapconfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_ProjectnameMapconfig_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class SyncCreateMapConfigProjectnameMapconfig { + + public static void main(String[] args) throws Exception { + syncCreateMapConfigProjectnameMapconfig(); + } + + public static void syncCreateMapConfigProjectnameMapconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + MapConfig mapConfig = MapConfig.newBuilder().build(); + MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_ProjectnameMapconfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfigStringMapconfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfigStringMapconfig.java new file mode 100644 index 000000000000..25ba8cb01540 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapconfig/SyncCreateMapConfigStringMapconfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_StringMapconfig_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class SyncCreateMapConfigStringMapconfig { + + public static void main(String[] args) throws Exception { + syncCreateMapConfigStringMapconfig(); + } + + public static void syncCreateMapConfigStringMapconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + MapConfig mapConfig = MapConfig.newBuilder().build(); + MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_StringMapconfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/AsyncCreateMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/AsyncCreateMapContextConfig.java new file mode 100644 index 000000000000..789dab1c752a --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/AsyncCreateMapContextConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class AsyncCreateMapContextConfig { + + public static void main(String[] args) throws Exception { + asyncCreateMapContextConfig(); + } + + public static void asyncCreateMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + CreateMapContextConfigRequest request = + CreateMapContextConfigRequest.newBuilder() + .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setMapContextConfig(MapContextConfig.newBuilder().build()) + .build(); + ApiFuture future = + mapManagementClient.createMapContextConfigCallable().futureCall(request); + // Do something. + MapContextConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfig.java new file mode 100644 index 000000000000..ce22b77bdff2 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync] +import com.google.maps.mapmanagement.v2beta.CreateMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncCreateMapContextConfig { + + public static void main(String[] args) throws Exception { + syncCreateMapContextConfig(); + } + + public static void syncCreateMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + CreateMapContextConfigRequest request = + CreateMapContextConfigRequest.newBuilder() + .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setMapContextConfig(MapContextConfig.newBuilder().build()) + .build(); + MapContextConfig response = mapManagementClient.createMapContextConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfigMapconfignameMapcontextconfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfigMapconfignameMapcontextconfig.java new file mode 100644 index 000000000000..a48870ec2e64 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfigMapconfignameMapcontextconfig.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_MapconfignameMapcontextconfig_sync] +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncCreateMapContextConfigMapconfignameMapcontextconfig { + + public static void main(String[] args) throws Exception { + syncCreateMapContextConfigMapconfignameMapcontextconfig(); + } + + public static void syncCreateMapContextConfigMapconfignameMapcontextconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + MapContextConfig response = + mapManagementClient.createMapContextConfig(parent, mapContextConfig); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_MapconfignameMapcontextconfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfigStringMapcontextconfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfigStringMapcontextconfig.java new file mode 100644 index 000000000000..159bfafad2c3 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createmapcontextconfig/SyncCreateMapContextConfigStringMapcontextconfig.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_StringMapcontextconfig_sync] +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncCreateMapContextConfigStringMapcontextconfig { + + public static void main(String[] args) throws Exception { + syncCreateMapContextConfigStringMapcontextconfig(); + } + + public static void syncCreateMapContextConfigStringMapcontextconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString(); + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + MapContextConfig response = + mapManagementClient.createMapContextConfig(parent, mapContextConfig); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_StringMapcontextconfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/AsyncCreateStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/AsyncCreateStyleConfig.java new file mode 100644 index 000000000000..59f051006465 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/AsyncCreateStyleConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; + +public class AsyncCreateStyleConfig { + + public static void main(String[] args) throws Exception { + asyncCreateStyleConfig(); + } + + public static void asyncCreateStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + CreateStyleConfigRequest request = + CreateStyleConfigRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setStyleConfig(StyleConfig.newBuilder().build()) + .build(); + ApiFuture future = + mapManagementClient.createStyleConfigCallable().futureCall(request); + // Do something. + StyleConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfig.java new file mode 100644 index 000000000000..1e57754a4c13 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync] +import com.google.maps.mapmanagement.v2beta.CreateStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; + +public class SyncCreateStyleConfig { + + public static void main(String[] args) throws Exception { + syncCreateStyleConfig(); + } + + public static void syncCreateStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + CreateStyleConfigRequest request = + CreateStyleConfigRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setStyleConfig(StyleConfig.newBuilder().build()) + .build(); + StyleConfig response = mapManagementClient.createStyleConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfigProjectnameStyleconfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfigProjectnameStyleconfig.java new file mode 100644 index 000000000000..c5f778476bad --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfigProjectnameStyleconfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_ProjectnameStyleconfig_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; + +public class SyncCreateStyleConfigProjectnameStyleconfig { + + public static void main(String[] args) throws Exception { + syncCreateStyleConfigProjectnameStyleconfig(); + } + + public static void syncCreateStyleConfigProjectnameStyleconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + StyleConfig response = mapManagementClient.createStyleConfig(parent, styleConfig); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_ProjectnameStyleconfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfigStringStyleconfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfigStringStyleconfig.java new file mode 100644 index 000000000000..bec66c35dffb --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/createstyleconfig/SyncCreateStyleConfigStringStyleconfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_StringStyleconfig_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; + +public class SyncCreateStyleConfigStringStyleconfig { + + public static void main(String[] args) throws Exception { + syncCreateStyleConfigStringStyleconfig(); + } + + public static void syncCreateStyleConfigStringStyleconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + StyleConfig response = mapManagementClient.createStyleConfig(parent, styleConfig); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_StringStyleconfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/AsyncDeleteMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/AsyncDeleteMapConfig.java new file mode 100644 index 000000000000..01ebb8daa836 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/AsyncDeleteMapConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteMapConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteMapConfig(); + } + + public static void asyncDeleteMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + DeleteMapConfigRequest request = + DeleteMapConfigRequest.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setForce(true) + .build(); + ApiFuture future = mapManagementClient.deleteMapConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfig.java new file mode 100644 index 000000000000..58f3654af6ad --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync] +import com.google.maps.mapmanagement.v2beta.DeleteMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMapConfig { + + public static void main(String[] args) throws Exception { + syncDeleteMapConfig(); + } + + public static void syncDeleteMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + DeleteMapConfigRequest request = + DeleteMapConfigRequest.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setForce(true) + .build(); + mapManagementClient.deleteMapConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfigMapconfignameBoolean.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfigMapconfignameBoolean.java new file mode 100644 index 000000000000..4863b79c6d95 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfigMapconfignameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_MapconfignameBoolean_sync] +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMapConfigMapconfignameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteMapConfigMapconfignameBoolean(); + } + + public static void syncDeleteMapConfigMapconfignameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + boolean force = true; + mapManagementClient.deleteMapConfig(name, force); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_MapconfignameBoolean_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfigStringBoolean.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfigStringBoolean.java new file mode 100644 index 000000000000..db36e2bd12a4 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapconfig/SyncDeleteMapConfigStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_StringBoolean_sync] +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMapConfigStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteMapConfigStringBoolean(); + } + + public static void syncDeleteMapConfigStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString(); + boolean force = true; + mapManagementClient.deleteMapConfig(name, force); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_StringBoolean_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/AsyncDeleteMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/AsyncDeleteMapContextConfig.java new file mode 100644 index 000000000000..4fc9f6af09b4 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/AsyncDeleteMapContextConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteMapContextConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteMapContextConfig(); + } + + public static void asyncDeleteMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + DeleteMapContextConfigRequest request = + DeleteMapContextConfigRequest.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .build(); + ApiFuture future = + mapManagementClient.deleteMapContextConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfig.java new file mode 100644 index 000000000000..ada50803722f --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync] +import com.google.maps.mapmanagement.v2beta.DeleteMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMapContextConfig { + + public static void main(String[] args) throws Exception { + syncDeleteMapContextConfig(); + } + + public static void syncDeleteMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + DeleteMapContextConfigRequest request = + DeleteMapContextConfigRequest.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .build(); + mapManagementClient.deleteMapContextConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfigMapcontextconfigname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfigMapcontextconfigname.java new file mode 100644 index 000000000000..96fbcd66a655 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfigMapcontextconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_Mapcontextconfigname_sync] +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMapContextConfigMapcontextconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteMapContextConfigMapcontextconfigname(); + } + + public static void syncDeleteMapContextConfigMapcontextconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + mapManagementClient.deleteMapContextConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_Mapcontextconfigname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfigString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfigString.java new file mode 100644 index 000000000000..5a2443bee4b8 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletemapcontextconfig/SyncDeleteMapContextConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_String_sync] +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMapContextConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteMapContextConfigString(); + } + + public static void syncDeleteMapContextConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]").toString(); + mapManagementClient.deleteMapContextConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/AsyncDeleteStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/AsyncDeleteStyleConfig.java new file mode 100644 index 000000000000..ee6eaa6392e4 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/AsyncDeleteStyleConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; +import com.google.protobuf.Empty; + +public class AsyncDeleteStyleConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteStyleConfig(); + } + + public static void asyncDeleteStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + DeleteStyleConfigRequest request = + DeleteStyleConfigRequest.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .build(); + ApiFuture future = mapManagementClient.deleteStyleConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfig.java new file mode 100644 index 000000000000..762609963d93 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync] +import com.google.maps.mapmanagement.v2beta.DeleteStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteStyleConfig { + + public static void main(String[] args) throws Exception { + syncDeleteStyleConfig(); + } + + public static void syncDeleteStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + DeleteStyleConfigRequest request = + DeleteStyleConfigRequest.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .build(); + mapManagementClient.deleteStyleConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfigString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfigString.java new file mode 100644 index 000000000000..fe0c8620bdd1 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_String_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteStyleConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteStyleConfigString(); + } + + public static void syncDeleteStyleConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString(); + mapManagementClient.deleteStyleConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfigStyleconfigname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfigStyleconfigname.java new file mode 100644 index 000000000000..4ffff72963e3 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/deletestyleconfig/SyncDeleteStyleConfigStyleconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_Styleconfigname_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteStyleConfigStyleconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteStyleConfigStyleconfigname(); + } + + public static void syncDeleteStyleConfigStyleconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + mapManagementClient.deleteStyleConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_Styleconfigname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/AsyncGetMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/AsyncGetMapConfig.java new file mode 100644 index 000000000000..8bb6248fc9ba --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/AsyncGetMapConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.GetMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class AsyncGetMapConfig { + + public static void main(String[] args) throws Exception { + asyncGetMapConfig(); + } + + public static void asyncGetMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + GetMapConfigRequest request = + GetMapConfigRequest.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .build(); + ApiFuture future = mapManagementClient.getMapConfigCallable().futureCall(request); + // Do something. + MapConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfig.java new file mode 100644 index 000000000000..9490fa4ec7d6 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync] +import com.google.maps.mapmanagement.v2beta.GetMapConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncGetMapConfig { + + public static void main(String[] args) throws Exception { + syncGetMapConfig(); + } + + public static void syncGetMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + GetMapConfigRequest request = + GetMapConfigRequest.newBuilder() + .setName(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .build(); + MapConfig response = mapManagementClient.getMapConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfigMapconfigname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfigMapconfigname.java new file mode 100644 index 000000000000..27cbc9ee19c1 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfigMapconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_Mapconfigname_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncGetMapConfigMapconfigname { + + public static void main(String[] args) throws Exception { + syncGetMapConfigMapconfigname(); + } + + public static void syncGetMapConfigMapconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapConfigName name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + MapConfig response = mapManagementClient.getMapConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_Mapconfigname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfigString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfigString.java new file mode 100644 index 000000000000..2950db3414ad --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapconfig/SyncGetMapConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_String_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncGetMapConfigString { + + public static void main(String[] args) throws Exception { + syncGetMapConfigString(); + } + + public static void syncGetMapConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String name = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString(); + MapConfig response = mapManagementClient.getMapConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/AsyncGetMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/AsyncGetMapContextConfig.java new file mode 100644 index 000000000000..6a237e1ec283 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/AsyncGetMapContextConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class AsyncGetMapContextConfig { + + public static void main(String[] args) throws Exception { + asyncGetMapContextConfig(); + } + + public static void asyncGetMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + GetMapContextConfigRequest request = + GetMapContextConfigRequest.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .build(); + ApiFuture future = + mapManagementClient.getMapContextConfigCallable().futureCall(request); + // Do something. + MapContextConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfig.java new file mode 100644 index 000000000000..3bf36b8116aa --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync] +import com.google.maps.mapmanagement.v2beta.GetMapContextConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncGetMapContextConfig { + + public static void main(String[] args) throws Exception { + syncGetMapContextConfig(); + } + + public static void syncGetMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + GetMapContextConfigRequest request = + GetMapContextConfigRequest.newBuilder() + .setName( + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]") + .toString()) + .build(); + MapContextConfig response = mapManagementClient.getMapContextConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfigMapcontextconfigname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfigMapcontextconfigname.java new file mode 100644 index 000000000000..2aede400bacf --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfigMapcontextconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_Mapcontextconfigname_sync] +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncGetMapContextConfigMapcontextconfigname { + + public static void main(String[] args) throws Exception { + syncGetMapContextConfigMapcontextconfigname(); + } + + public static void syncGetMapContextConfigMapcontextconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapContextConfigName name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + MapContextConfig response = mapManagementClient.getMapContextConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_Mapcontextconfigname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfigString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfigString.java new file mode 100644 index 000000000000..ff9330b7f81a --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getmapcontextconfig/SyncGetMapContextConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_String_sync] +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapContextConfigName; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncGetMapContextConfigString { + + public static void main(String[] args) throws Exception { + syncGetMapContextConfigString(); + } + + public static void syncGetMapContextConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String name = + MapContextConfigName.of("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]").toString(); + MapContextConfig response = mapManagementClient.getMapContextConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/AsyncGetStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/AsyncGetStyleConfig.java new file mode 100644 index 000000000000..1e67f3393b84 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/AsyncGetStyleConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; + +public class AsyncGetStyleConfig { + + public static void main(String[] args) throws Exception { + asyncGetStyleConfig(); + } + + public static void asyncGetStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + GetStyleConfigRequest request = + GetStyleConfigRequest.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .build(); + ApiFuture future = + mapManagementClient.getStyleConfigCallable().futureCall(request); + // Do something. + StyleConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfig.java new file mode 100644 index 000000000000..6e9013a44843 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync] +import com.google.maps.mapmanagement.v2beta.GetStyleConfigRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; + +public class SyncGetStyleConfig { + + public static void main(String[] args) throws Exception { + syncGetStyleConfig(); + } + + public static void syncGetStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + GetStyleConfigRequest request = + GetStyleConfigRequest.newBuilder() + .setName(StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString()) + .build(); + StyleConfig response = mapManagementClient.getStyleConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfigString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfigString.java new file mode 100644 index 000000000000..5d809d614155 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_String_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; + +public class SyncGetStyleConfigString { + + public static void main(String[] args) throws Exception { + syncGetStyleConfigString(); + } + + public static void syncGetStyleConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]").toString(); + StyleConfig response = mapManagementClient.getStyleConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfigStyleconfigname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfigStyleconfigname.java new file mode 100644 index 000000000000..33d645ac4b48 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/getstyleconfig/SyncGetStyleConfigStyleconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_Styleconfigname_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigName; + +public class SyncGetStyleConfigStyleconfigname { + + public static void main(String[] args) throws Exception { + syncGetStyleConfigStyleconfigname(); + } + + public static void syncGetStyleConfigStyleconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + StyleConfigName name = StyleConfigName.of("[PROJECT]", "[STYLE_CONFIG]"); + StyleConfig response = mapManagementClient.getStyleConfig(name); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_Styleconfigname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/AsyncListMapConfigs.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/AsyncListMapConfigs.java new file mode 100644 index 000000000000..e6b6ee8941f4 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/AsyncListMapConfigs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class AsyncListMapConfigs { + + public static void main(String[] args) throws Exception { + asyncListMapConfigs(); + } + + public static void asyncListMapConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListMapConfigsRequest request = + ListMapConfigsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + mapManagementClient.listMapConfigsPagedCallable().futureCall(request); + // Do something. + for (MapConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/AsyncListMapConfigsPaged.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/AsyncListMapConfigsPaged.java new file mode 100644 index 000000000000..b752bfe4d30f --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/AsyncListMapConfigsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_Paged_async] +import com.google.common.base.Strings; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class AsyncListMapConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListMapConfigsPaged(); + } + + public static void asyncListMapConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListMapConfigsRequest request = + ListMapConfigsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMapConfigsResponse response = + mapManagementClient.listMapConfigsCallable().call(request); + for (MapConfig element : response.getMapConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_Paged_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigs.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigs.java new file mode 100644 index 000000000000..73787135ce34 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigs.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync] +import com.google.maps.mapmanagement.v2beta.ListMapConfigsRequest; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class SyncListMapConfigs { + + public static void main(String[] args) throws Exception { + syncListMapConfigs(); + } + + public static void syncListMapConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListMapConfigsRequest request = + ListMapConfigsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (MapConfig element : mapManagementClient.listMapConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigsProjectname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigsProjectname.java new file mode 100644 index 000000000000..dba074fb696e --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigsProjectname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_Projectname_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class SyncListMapConfigsProjectname { + + public static void main(String[] args) throws Exception { + syncListMapConfigsProjectname(); + } + + public static void syncListMapConfigsProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (MapConfig element : mapManagementClient.listMapConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_Projectname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigsString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigsString.java new file mode 100644 index 000000000000..e8aa6aa15fae --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapconfigs/SyncListMapConfigsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_String_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; + +public class SyncListMapConfigsString { + + public static void main(String[] args) throws Exception { + syncListMapConfigsString(); + } + + public static void syncListMapConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (MapConfig element : mapManagementClient.listMapConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/AsyncListMapContextConfigs.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/AsyncListMapContextConfigs.java new file mode 100644 index 000000000000..94f0d20e64a7 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/AsyncListMapContextConfigs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class AsyncListMapContextConfigs { + + public static void main(String[] args) throws Exception { + asyncListMapContextConfigs(); + } + + public static void asyncListMapContextConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListMapContextConfigsRequest request = + ListMapContextConfigsRequest.newBuilder() + .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + mapManagementClient.listMapContextConfigsPagedCallable().futureCall(request); + // Do something. + for (MapContextConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/AsyncListMapContextConfigsPaged.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/AsyncListMapContextConfigsPaged.java new file mode 100644 index 000000000000..4362da22d1c1 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/AsyncListMapContextConfigsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_Paged_async] +import com.google.common.base.Strings; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class AsyncListMapContextConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListMapContextConfigsPaged(); + } + + public static void asyncListMapContextConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListMapContextConfigsRequest request = + ListMapContextConfigsRequest.newBuilder() + .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMapContextConfigsResponse response = + mapManagementClient.listMapContextConfigsCallable().call(request); + for (MapContextConfig element : response.getMapContextConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_Paged_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigs.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigs.java new file mode 100644 index 000000000000..9e958d30e686 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync] +import com.google.maps.mapmanagement.v2beta.ListMapContextConfigsRequest; +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncListMapContextConfigs { + + public static void main(String[] args) throws Exception { + syncListMapContextConfigs(); + } + + public static void syncListMapContextConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListMapContextConfigsRequest request = + ListMapContextConfigsRequest.newBuilder() + .setParent(MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (MapContextConfig element : + mapManagementClient.listMapContextConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigsMapconfigname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigsMapconfigname.java new file mode 100644 index 000000000000..dd953e77f939 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigsMapconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_Mapconfigname_sync] +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncListMapContextConfigsMapconfigname { + + public static void main(String[] args) throws Exception { + syncListMapContextConfigsMapconfigname(); + } + + public static void syncListMapContextConfigsMapconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapConfigName parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]"); + for (MapContextConfig element : + mapManagementClient.listMapContextConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_Mapconfigname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigsString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigsString.java new file mode 100644 index 000000000000..460625a39055 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/listmapcontextconfigs/SyncListMapContextConfigsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_String_sync] +import com.google.maps.mapmanagement.v2beta.MapConfigName; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; + +public class SyncListMapContextConfigsString { + + public static void main(String[] args) throws Exception { + syncListMapContextConfigsString(); + } + + public static void syncListMapContextConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String parent = MapConfigName.of("[PROJECT]", "[MAP_CONFIG]").toString(); + for (MapContextConfig element : + mapManagementClient.listMapContextConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/AsyncListStyleConfigs.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/AsyncListStyleConfigs.java new file mode 100644 index 000000000000..37d28873307a --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/AsyncListStyleConfigs.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigView; + +public class AsyncListStyleConfigs { + + public static void main(String[] args) throws Exception { + asyncListStyleConfigs(); + } + + public static void asyncListStyleConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListStyleConfigsRequest request = + ListStyleConfigsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setView(StyleConfigView.forNumber(0)) + .build(); + ApiFuture future = + mapManagementClient.listStyleConfigsPagedCallable().futureCall(request); + // Do something. + for (StyleConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/AsyncListStyleConfigsPaged.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/AsyncListStyleConfigsPaged.java new file mode 100644 index 000000000000..c320f6493f7e --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/AsyncListStyleConfigsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_Paged_async] +import com.google.common.base.Strings; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsResponse; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigView; + +public class AsyncListStyleConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListStyleConfigsPaged(); + } + + public static void asyncListStyleConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListStyleConfigsRequest request = + ListStyleConfigsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setView(StyleConfigView.forNumber(0)) + .build(); + while (true) { + ListStyleConfigsResponse response = + mapManagementClient.listStyleConfigsCallable().call(request); + for (StyleConfig element : response.getStyleConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_Paged_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigs.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigs.java new file mode 100644 index 000000000000..bb9030fb2f0d --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync] +import com.google.maps.mapmanagement.v2beta.ListStyleConfigsRequest; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.StyleConfigView; + +public class SyncListStyleConfigs { + + public static void main(String[] args) throws Exception { + syncListStyleConfigs(); + } + + public static void syncListStyleConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ListStyleConfigsRequest request = + ListStyleConfigsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setView(StyleConfigView.forNumber(0)) + .build(); + for (StyleConfig element : mapManagementClient.listStyleConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigsProjectname.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigsProjectname.java new file mode 100644 index 000000000000..2b4662c957f8 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigsProjectname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_Projectname_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; + +public class SyncListStyleConfigsProjectname { + + public static void main(String[] args) throws Exception { + syncListStyleConfigsProjectname(); + } + + public static void syncListStyleConfigsProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (StyleConfig element : mapManagementClient.listStyleConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_Projectname_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigsString.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigsString.java new file mode 100644 index 000000000000..597293bfac3d --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/liststyleconfigs/SyncListStyleConfigsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_String_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.ProjectName; +import com.google.maps.mapmanagement.v2beta.StyleConfig; + +public class SyncListStyleConfigsString { + + public static void main(String[] args) throws Exception { + syncListStyleConfigsString(); + } + + public static void syncListStyleConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (StyleConfig element : mapManagementClient.listStyleConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_String_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/AsyncUpdateMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/AsyncUpdateMapConfig.java new file mode 100644 index 000000000000..4f8c556687f2 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/AsyncUpdateMapConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMapConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateMapConfig(); + } + + public static void asyncUpdateMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + UpdateMapConfigRequest request = + UpdateMapConfigRequest.newBuilder() + .setMapConfig(MapConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + mapManagementClient.updateMapConfigCallable().futureCall(request); + // Do something. + MapConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/SyncUpdateMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/SyncUpdateMapConfig.java new file mode 100644 index 000000000000..dc9d3b4ce1ff --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/SyncUpdateMapConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.UpdateMapConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMapConfig { + + public static void main(String[] args) throws Exception { + syncUpdateMapConfig(); + } + + public static void syncUpdateMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + UpdateMapConfigRequest request = + UpdateMapConfigRequest.newBuilder() + .setMapConfig(MapConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + MapConfig response = mapManagementClient.updateMapConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/SyncUpdateMapConfigMapconfigFieldmask.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/SyncUpdateMapConfigMapconfigFieldmask.java new file mode 100644 index 000000000000..c0a624e97f15 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapconfig/SyncUpdateMapConfigMapconfigFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_MapconfigFieldmask_sync] +import com.google.maps.mapmanagement.v2beta.MapConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMapConfigMapconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMapConfigMapconfigFieldmask(); + } + + public static void syncUpdateMapConfigMapconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapConfig mapConfig = MapConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MapConfig response = mapManagementClient.updateMapConfig(mapConfig, updateMask); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_MapconfigFieldmask_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/AsyncUpdateMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/AsyncUpdateMapContextConfig.java new file mode 100644 index 000000000000..d10ce0ba29f8 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/AsyncUpdateMapContextConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMapContextConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateMapContextConfig(); + } + + public static void asyncUpdateMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + UpdateMapContextConfigRequest request = + UpdateMapContextConfigRequest.newBuilder() + .setMapContextConfig(MapContextConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + mapManagementClient.updateMapContextConfigCallable().futureCall(request); + // Do something. + MapContextConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/SyncUpdateMapContextConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/SyncUpdateMapContextConfig.java new file mode 100644 index 000000000000..5fa093bd798f --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/SyncUpdateMapContextConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync] +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.UpdateMapContextConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMapContextConfig { + + public static void main(String[] args) throws Exception { + syncUpdateMapContextConfig(); + } + + public static void syncUpdateMapContextConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + UpdateMapContextConfigRequest request = + UpdateMapContextConfigRequest.newBuilder() + .setMapContextConfig(MapContextConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + MapContextConfig response = mapManagementClient.updateMapContextConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/SyncUpdateMapContextConfigMapcontextconfigFieldmask.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/SyncUpdateMapContextConfigMapcontextconfigFieldmask.java new file mode 100644 index 000000000000..b01e7440d066 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatemapcontextconfig/SyncUpdateMapContextConfigMapcontextconfigFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_MapcontextconfigFieldmask_sync] +import com.google.maps.mapmanagement.v2beta.MapContextConfig; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMapContextConfigMapcontextconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMapContextConfigMapcontextconfigFieldmask(); + } + + public static void syncUpdateMapContextConfigMapcontextconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + MapContextConfig mapContextConfig = MapContextConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MapContextConfig response = + mapManagementClient.updateMapContextConfig(mapContextConfig, updateMask); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_MapcontextconfigFieldmask_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/AsyncUpdateStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/AsyncUpdateStyleConfig.java new file mode 100644 index 000000000000..25bf757f8f2b --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/AsyncUpdateStyleConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateStyleConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateStyleConfig(); + } + + public static void asyncUpdateStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + UpdateStyleConfigRequest request = + UpdateStyleConfigRequest.newBuilder() + .setStyleConfig(StyleConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + mapManagementClient.updateStyleConfigCallable().futureCall(request); + // Do something. + StyleConfig response = future.get(); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/SyncUpdateStyleConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/SyncUpdateStyleConfig.java new file mode 100644 index 000000000000..7cc33eb9f36f --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/SyncUpdateStyleConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.maps.mapmanagement.v2beta.UpdateStyleConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateStyleConfig { + + public static void main(String[] args) throws Exception { + syncUpdateStyleConfig(); + } + + public static void syncUpdateStyleConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + UpdateStyleConfigRequest request = + UpdateStyleConfigRequest.newBuilder() + .setStyleConfig(StyleConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + StyleConfig response = mapManagementClient.updateStyleConfig(request); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/SyncUpdateStyleConfigStyleconfigFieldmask.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/SyncUpdateStyleConfigStyleconfigFieldmask.java new file mode 100644 index 000000000000..40619e5e0b06 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagement/updatestyleconfig/SyncUpdateStyleConfigStyleconfigFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_StyleconfigFieldmask_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementClient; +import com.google.maps.mapmanagement.v2beta.StyleConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateStyleConfigStyleconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateStyleConfigStyleconfigFieldmask(); + } + + public static void syncUpdateStyleConfigStyleconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MapManagementClient mapManagementClient = MapManagementClient.create()) { + StyleConfig styleConfig = StyleConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + StyleConfig response = mapManagementClient.updateStyleConfig(styleConfig, updateMask); + } + } +} +// [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_StyleconfigFieldmask_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagementsettings/createmapconfig/SyncCreateMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagementsettings/createmapconfig/SyncCreateMapConfig.java new file mode 100644 index 000000000000..2fb5c022dde7 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/mapmanagementsettings/createmapconfig/SyncCreateMapConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.samples; + +// [START mapmanagement_v2beta_generated_MapManagementSettings_CreateMapConfig_sync] +import com.google.maps.mapmanagement.v2beta.MapManagementSettings; +import java.time.Duration; + +public class SyncCreateMapConfig { + + public static void main(String[] args) throws Exception { + syncCreateMapConfig(); + } + + public static void syncCreateMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MapManagementSettings.Builder mapManagementSettingsBuilder = MapManagementSettings.newBuilder(); + mapManagementSettingsBuilder + .createMapConfigSettings() + .setRetrySettings( + mapManagementSettingsBuilder + .createMapConfigSettings() + .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()); + MapManagementSettings mapManagementSettings = mapManagementSettingsBuilder.build(); + } +} +// [END mapmanagement_v2beta_generated_MapManagementSettings_CreateMapConfig_sync] diff --git a/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/stub/mapmanagementstubsettings/createmapconfig/SyncCreateMapConfig.java b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/stub/mapmanagementstubsettings/createmapconfig/SyncCreateMapConfig.java new file mode 100644 index 000000000000..7b494fefd0e2 --- /dev/null +++ b/java-maps-mapmanagement/samples/snippets/generated/com/google/maps/mapmanagement/v2beta/stub/mapmanagementstubsettings/createmapconfig/SyncCreateMapConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapmanagement.v2beta.stub.samples; + +// [START mapmanagement_v2beta_generated_MapManagementStubSettings_CreateMapConfig_sync] +import com.google.maps.mapmanagement.v2beta.stub.MapManagementStubSettings; +import java.time.Duration; + +public class SyncCreateMapConfig { + + public static void main(String[] args) throws Exception { + syncCreateMapConfig(); + } + + public static void syncCreateMapConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MapManagementStubSettings.Builder mapManagementSettingsBuilder = + MapManagementStubSettings.newBuilder(); + mapManagementSettingsBuilder + .createMapConfigSettings() + .setRetrySettings( + mapManagementSettingsBuilder + .createMapConfigSettings() + .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()); + MapManagementStubSettings mapManagementSettings = mapManagementSettingsBuilder.build(); + } +} +// [END mapmanagement_v2beta_generated_MapManagementStubSettings_CreateMapConfig_sync] diff --git a/pom.xml b/pom.xml index cf19b0171114..7b3e1670a34b 100644 --- a/pom.xml +++ b/pom.xml @@ -152,6 +152,7 @@ java-maps-fleetengine java-maps-fleetengine-delivery java-maps-geocode + java-maps-mapmanagement java-maps-mapsplatformdatasets java-maps-places java-maps-routeoptimization diff --git a/versions.txt b/versions.txt index 8cc87de1c0df..8fee4e020ebe 100644 --- a/versions.txt +++ b/versions.txt @@ -1029,3 +1029,6 @@ google-cloud-nio:0.131.0:0.131.0 google-cloud-appoptimize:0.1.0:0.1.0 proto-google-cloud-appoptimize-v1beta:0.1.0:0.1.0 grpc-google-cloud-appoptimize-v1beta:0.1.0:0.1.0 +google-maps-mapmanagement:0.0.0:0.0.1-SNAPSHOT +proto-google-maps-mapmanagement-v2beta:0.0.0:0.0.1-SNAPSHOT +grpc-google-maps-mapmanagement-v2beta:0.0.0:0.0.1-SNAPSHOT