diff --git a/java-maps-mapsplatformdatasets/.OwlBot.yaml b/java-maps-mapsplatformdatasets/.OwlBot.yaml
new file mode 100644
index 000000000000..6bee7d9b0bba
--- /dev/null
+++ b/java-maps-mapsplatformdatasets/.OwlBot.yaml
@@ -0,0 +1,36 @@
+# Copyright 2022 Google LLC
+#
+# Licensed under the Apache License, Version 2.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-mapsplatformdatasets/grpc-google-.*/src"
+- "/java-maps-mapsplatformdatasets/proto-google-.*/src"
+- "/java-maps-mapsplatformdatasets/google-.*/src"
+- "/java-maps-mapsplatformdatasets/samples/snippets/generated"
+
+deep-preserve-regex:
+- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
+
+deep-copy-regex:
+- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/proto-google-.*/src"
+ dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/proto-google-maps-mapsplatformdatasets-$1/src"
+- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/grpc-google-.*/src"
+ dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/grpc-google-maps-mapsplatformdatasets-$1/src"
+- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/gapic-google-.*/src"
+ dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/google-maps-mapsplatformdatasets/src"
+- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/samples/snippets/generated"
+ dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/samples/snippets/generated"
+
+
+api-name: maps-mapsplatformdatasets
\ No newline at end of file
diff --git a/java-maps-mapsplatformdatasets/.repo-metadata.json b/java-maps-mapsplatformdatasets/.repo-metadata.json
new file mode 100644
index 000000000000..1f8132184201
--- /dev/null
+++ b/java-maps-mapsplatformdatasets/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "api_shortname": "maps-mapsplatformdatasets",
+ "name_pretty": "Maps Platform Datasets API",
+ "product_documentation": "https://developers.google.com/maps/documentation",
+ "api_description": "The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets\n that they can use to enrich their experience of Maps Platform solutions (e.g. styling, routing).",
+ "client_documentation": "https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview",
+ "release_level": "preview",
+ "transport": "grpc",
+ "language": "java",
+ "repo": "googleapis/java-maps-mapsplatformdatasets",
+ "repo_short": "java-maps-mapsplatformdatasets",
+ "distribution_name": "com.google.maps:google-maps-mapsplatformdatasets",
+ "api_id": "mapsplatformdatasets.googleapis.com",
+ "library_type": "GAPIC_AUTO",
+ "requires_billing": true
+}
\ No newline at end of file
diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md
new file mode 100644
index 000000000000..e12b92bb954b
--- /dev/null
+++ b/java-maps-mapsplatformdatasets/README.md
@@ -0,0 +1,202 @@
+# Google Maps Platform Datasets API Client for Java
+
+Java idiomatic client for [Maps Platform Datasets 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
+
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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ProjectName parent = ProjectName.of("[PROJECT]"); + * Dataset dataset = Dataset.newBuilder().build(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.createDataset(parent, dataset); + * } + * }+ * + *
Note: close() needs to be called on the MapsPlatformDatasetsV1AlphaClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
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 + * MapsPlatformDatasetsV1AlphaSettings 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 + * MapsPlatformDatasetsV1AlphaSettings mapsPlatformDatasetsV1AlphaSettings = + * MapsPlatformDatasetsV1AlphaSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create(mapsPlatformDatasetsV1AlphaSettings); + * }+ * + *
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 + * MapsPlatformDatasetsV1AlphaSettings mapsPlatformDatasetsV1AlphaSettings = + * MapsPlatformDatasetsV1AlphaSettings.newBuilder().setEndpoint(myEndpoint).build(); + * MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create(mapsPlatformDatasetsV1AlphaSettings); + * }+ * + *
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 + * MapsPlatformDatasetsV1AlphaSettings mapsPlatformDatasetsV1AlphaSettings = + * MapsPlatformDatasetsV1AlphaSettings.newHttpJsonBuilder().build(); + * MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create(mapsPlatformDatasetsV1AlphaSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class MapsPlatformDatasetsV1AlphaClient implements BackgroundResource { + private final MapsPlatformDatasetsV1AlphaSettings settings; + private final MapsPlatformDatasetsV1AlphaStub stub; + + /** Constructs an instance of MapsPlatformDatasetsV1AlphaClient with default settings. */ + public static final MapsPlatformDatasetsV1AlphaClient create() throws IOException { + return create(MapsPlatformDatasetsV1AlphaSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MapsPlatformDatasetsV1AlphaClient, 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 MapsPlatformDatasetsV1AlphaClient create( + MapsPlatformDatasetsV1AlphaSettings settings) throws IOException { + return new MapsPlatformDatasetsV1AlphaClient(settings); + } + + /** + * Constructs an instance of MapsPlatformDatasetsV1AlphaClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(MapsPlatformDatasetsV1AlphaSettings). + */ + public static final MapsPlatformDatasetsV1AlphaClient create( + MapsPlatformDatasetsV1AlphaStub stub) { + return new MapsPlatformDatasetsV1AlphaClient(stub); + } + + /** + * Constructs an instance of MapsPlatformDatasetsV1AlphaClient, 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 MapsPlatformDatasetsV1AlphaClient(MapsPlatformDatasetsV1AlphaSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((MapsPlatformDatasetsV1AlphaStubSettings) settings.getStubSettings()).createStub(); + } + + protected MapsPlatformDatasetsV1AlphaClient(MapsPlatformDatasetsV1AlphaStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MapsPlatformDatasetsV1AlphaSettings getSettings() { + return settings; + } + + public MapsPlatformDatasetsV1AlphaStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new dataset for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ProjectName parent = ProjectName.of("[PROJECT]"); + * Dataset dataset = Dataset.newBuilder().build(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.createDataset(parent, dataset); + * } + * }+ * + * @param parent Required. Parent project that will own the dataset. Format: + * projects/{$project_number} + * @param dataset Required. The dataset version to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset createDataset(ProjectName parent, Dataset dataset) { + CreateDatasetRequest request = + CreateDatasetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataset(dataset) + .build(); + return createDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new dataset for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * String parent = ProjectName.of("[PROJECT]").toString(); + * Dataset dataset = Dataset.newBuilder().build(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.createDataset(parent, dataset); + * } + * }+ * + * @param parent Required. Parent project that will own the dataset. Format: + * projects/{$project_number} + * @param dataset Required. The dataset version to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset createDataset(String parent, Dataset dataset) { + CreateDatasetRequest request = + CreateDatasetRequest.newBuilder().setParent(parent).setDataset(dataset).build(); + return createDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new dataset for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * CreateDatasetRequest request = + * CreateDatasetRequest.newBuilder() + * .setParent(ProjectName.of("[PROJECT]").toString()) + * .setDataset(Dataset.newBuilder().build()) + * .build(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.createDataset(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 Dataset createDataset(CreateDatasetRequest request) { + return createDatasetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new dataset for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * CreateDatasetRequest request = + * CreateDatasetRequest.newBuilder() + * .setParent(ProjectName.of("[PROJECT]").toString()) + * .setDataset(Dataset.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.createDatasetCallable().futureCall(request); + * // Do something. + * Dataset response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * Dataset dataset = Dataset.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Dataset response = + * mapsPlatformDatasetsV1AlphaClient.updateDatasetMetadata(dataset, updateMask); + * } + * }+ * + * @param dataset Required. The dataset to update. The dataset's name is used to identify the + * dataset to be updated. The name has the format: projects/{project}/datasets/{dataset_id} + * @param updateMask The list of fields to be updated. Support the value "*" for full + * replacement. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset updateDatasetMetadata(Dataset dataset, FieldMask updateMask) { + UpdateDatasetMetadataRequest request = + UpdateDatasetMetadataRequest.newBuilder() + .setDataset(dataset) + .setUpdateMask(updateMask) + .build(); + return updateDatasetMetadata(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the metadata for the dataset. To update the data use: UploadDataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * UpdateDatasetMetadataRequest request = + * UpdateDatasetMetadataRequest.newBuilder() + * .setDataset(Dataset.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.updateDatasetMetadata(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 Dataset updateDatasetMetadata(UpdateDatasetMetadataRequest request) { + return updateDatasetMetadataCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the metadata for the dataset. To update the data use: UploadDataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * UpdateDatasetMetadataRequest request = + * UpdateDatasetMetadataRequest.newBuilder() + * .setDataset(Dataset.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.updateDatasetMetadataCallable().futureCall(request); + * // Do something. + * Dataset response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.getDataset(name); + * } + * }+ * + * @param name Required. Resource name. Can also fetch a specified version + * projects/{project}/datasets/{dataset_id} + * projects/{project}/datasets/{dataset_id}{@literal @}{version-id} + *
In order to retrieve a previous version of the dataset, also provide the version ID. + * Example: projects/123/datasets/assisted-driving-preferences{@literal @}c7cfa2a8 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset getDataset(DatasetName name) { + GetDatasetRequest request = + GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the published or latest version of the dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.getDataset(name); + * } + * }+ * + * @param name Required. Resource name. Can also fetch a specified version + * projects/{project}/datasets/{dataset_id} + * projects/{project}/datasets/{dataset_id}{@literal @}{version-id} + *
In order to retrieve a previous version of the dataset, also provide the version ID. + * Example: projects/123/datasets/assisted-driving-preferences{@literal @}c7cfa2a8 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset getDataset(String name) { + GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name).build(); + return getDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the published or latest version of the dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * GetDatasetRequest request = + * GetDatasetRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setPublishedUsage(Usage.forNumber(0)) + * .build(); + * Dataset response = mapsPlatformDatasetsV1AlphaClient.getDataset(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 Dataset getDataset(GetDatasetRequest request) { + return getDatasetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the published or latest version of the dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * GetDatasetRequest request = + * GetDatasetRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setPublishedUsage(Usage.forNumber(0)) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.getDatasetCallable().futureCall(request); + * // Do something. + * Dataset response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); + * for (Dataset element : + * mapsPlatformDatasetsV1AlphaClient.listDatasetVersions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the dataset to list all the versions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetVersionsPagedResponse listDatasetVersions(DatasetName name) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listDatasetVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all the versions of a dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); + * for (Dataset element : + * mapsPlatformDatasetsV1AlphaClient.listDatasetVersions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the dataset to list all the versions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetVersionsPagedResponse listDatasetVersions(String name) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder().setName(name).build(); + return listDatasetVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all the versions of a dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ListDatasetVersionsRequest request = + * ListDatasetVersionsRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Dataset element : + * mapsPlatformDatasetsV1AlphaClient.listDatasetVersions(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 ListDatasetVersionsPagedResponse listDatasetVersions( + ListDatasetVersionsRequest request) { + return listDatasetVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all the versions of a dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ListDatasetVersionsRequest request = + * ListDatasetVersionsRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.listDatasetVersionsPagedCallable().futureCall(request); + * // Do something. + * for (Dataset element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ListDatasetVersionsRequest request = + * ListDatasetVersionsRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDatasetVersionsResponse response = + * mapsPlatformDatasetsV1AlphaClient.listDatasetVersionsCallable().call(request); + * for (Dataset element : response.getDatasetsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ProjectName parent = ProjectName.of("[PROJECT]"); + * for (Dataset element : mapsPlatformDatasetsV1AlphaClient.listDatasets(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of the project to list all the datasets for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetsPagedResponse listDatasets(ProjectName parent) { + ListDatasetsRequest request = + ListDatasetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDatasets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all the datasets for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * String parent = ProjectName.of("[PROJECT]").toString(); + * for (Dataset element : mapsPlatformDatasetsV1AlphaClient.listDatasets(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of the project to list all the datasets for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetsPagedResponse listDatasets(String parent) { + ListDatasetsRequest request = ListDatasetsRequest.newBuilder().setParent(parent).build(); + return listDatasets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all the datasets for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ListDatasetsRequest request = + * ListDatasetsRequest.newBuilder() + * .setParent(ProjectName.of("[PROJECT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Dataset element : mapsPlatformDatasetsV1AlphaClient.listDatasets(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 ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request) { + return listDatasetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all the datasets for the specified 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 (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ListDatasetsRequest request = + * ListDatasetsRequest.newBuilder() + * .setParent(ProjectName.of("[PROJECT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.listDatasetsPagedCallable().futureCall(request); + * // Do something. + * for (Dataset element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * ListDatasetsRequest request = + * ListDatasetsRequest.newBuilder() + * .setParent(ProjectName.of("[PROJECT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDatasetsResponse response = + * mapsPlatformDatasetsV1AlphaClient.listDatasetsCallable().call(request); + * for (Dataset element : response.getDatasetsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); + * mapsPlatformDatasetsV1AlphaClient.deleteDataset(name); + * } + * }+ * + * @param name Required. Format: projects/${project}/datasets/{dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataset(DatasetName name) { + DeleteDatasetRequest request = + DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the specified dataset and optionally all its corresponding versions. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); + * mapsPlatformDatasetsV1AlphaClient.deleteDataset(name); + * } + * }+ * + * @param name Required. Format: projects/${project}/datasets/{dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataset(String name) { + DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name).build(); + deleteDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the specified dataset and optionally all its corresponding versions. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DeleteDatasetRequest request = + * DeleteDatasetRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setForce(true) + * .build(); + * mapsPlatformDatasetsV1AlphaClient.deleteDataset(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 deleteDataset(DeleteDatasetRequest request) { + deleteDatasetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the specified dataset and optionally all its corresponding versions. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DeleteDatasetRequest request = + * DeleteDatasetRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .setForce(true) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.deleteDatasetCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); + * mapsPlatformDatasetsV1AlphaClient.deleteDatasetVersion(name); + * } + * }+ * + * @param name Required. Format: projects/${project}/datasets/{dataset_id}{@literal @}{version-id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDatasetVersion(DatasetName name) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDatasetVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a specific version of the dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); + * mapsPlatformDatasetsV1AlphaClient.deleteDatasetVersion(name); + * } + * }+ * + * @param name Required. Format: projects/${project}/datasets/{dataset_id}{@literal @}{version-id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDatasetVersion(String name) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder().setName(name).build(); + deleteDatasetVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a specific version of the dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DeleteDatasetVersionRequest request = + * DeleteDatasetVersionRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .build(); + * mapsPlatformDatasetsV1AlphaClient.deleteDatasetVersion(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 deleteDatasetVersion(DeleteDatasetVersionRequest request) { + deleteDatasetVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a specific version of the dataset. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient = + * MapsPlatformDatasetsV1AlphaClient.create()) { + * DeleteDatasetVersionRequest request = + * DeleteDatasetVersionRequest.newBuilder() + * .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * mapsPlatformDatasetsV1AlphaClient.deleteDatasetVersionCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
The default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of createDataset to 30 seconds: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * MapsPlatformDatasetsV1AlphaSettings.Builder mapsPlatformDatasetsV1AlphaSettingsBuilder = + * MapsPlatformDatasetsV1AlphaSettings.newBuilder(); + * mapsPlatformDatasetsV1AlphaSettingsBuilder + * .createDatasetSettings() + * .setRetrySettings( + * mapsPlatformDatasetsV1AlphaSettingsBuilder + * .createDatasetSettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * MapsPlatformDatasetsV1AlphaSettings mapsPlatformDatasetsV1AlphaSettings = + * mapsPlatformDatasetsV1AlphaSettingsBuilder.build(); + * }+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class MapsPlatformDatasetsV1AlphaSettings + extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= MapsPlatformDatasetsV1AlphaClient =======================
+ *
+ * Service Description: Service definition for the Maps Platform Datasets API.
+ *
+ * Sample for MapsPlatformDatasetsV1AlphaClient:
+ *
+ * This class is for advanced usage.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcMapsPlatformDatasetsV1AlphaCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcMapsPlatformDatasetsV1AlphaStub extends MapsPlatformDatasetsV1AlphaStub {
+ private static final MethodDescriptor This class is for advanced usage.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class HttpJsonMapsPlatformDatasetsV1AlphaCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class HttpJsonMapsPlatformDatasetsV1AlphaStub extends MapsPlatformDatasetsV1AlphaStub {
+ private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
+
+ private static final ApiMethodDescriptor This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class MapsPlatformDatasetsV1AlphaStub implements BackgroundResource {
+
+ public UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (MapsPlatformDatasetsV1AlphaClient mapsPlatformDatasetsV1AlphaClient =
+ * MapsPlatformDatasetsV1AlphaClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * Dataset dataset = Dataset.newBuilder().build();
+ * Dataset response = mapsPlatformDatasetsV1AlphaClient.createDataset(parent, dataset);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.maps.mapsplatformdatasets.v1alpha;
+
+import javax.annotation.Generated;
diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1alpha/stub/GrpcMapsPlatformDatasetsV1AlphaCallableFactory.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1alpha/stub/GrpcMapsPlatformDatasetsV1AlphaCallableFactory.java
new file mode 100644
index 000000000000..89317c1e39bf
--- /dev/null
+++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1alpha/stub/GrpcMapsPlatformDatasetsV1AlphaCallableFactory.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS 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.mapsplatformdatasets.v1alpha.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the MapsPlatformDatasetsV1Alpha service API.
+ *
+ *