Skip to content

Commit 271fcbd

Browse files
committed
feat(google/maps/mapmanagement/v2): onboard a new library
1 parent b4b41d9 commit 271fcbd

142 files changed

Lines changed: 48122 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@
2929
<artifactId>google-maps-mapmanagement</artifactId>
3030
<version>0.5.0-SNAPSHOT</version><!-- {x-version-update:google-maps-mapmanagement:current} -->
3131
</dependency>
32+
<dependency>
33+
<groupId>com.google.maps.api.grpc</groupId>
34+
<artifactId>grpc-google-maps-mapmanagement-v2</artifactId>
35+
<version>0.5.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-maps-mapmanagement-v2:current} -->
36+
</dependency>
3237
<dependency>
3338
<groupId>com.google.maps.api.grpc</groupId>
3439
<artifactId>grpc-google-maps-mapmanagement-v2beta</artifactId>
3540
<version>0.5.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-maps-mapmanagement-v2beta:current} -->
3641
</dependency>
42+
<dependency>
43+
<groupId>com.google.maps.api.grpc</groupId>
44+
<artifactId>proto-google-maps-mapmanagement-v2</artifactId>
45+
<version>0.5.0-SNAPSHOT</version><!-- {x-version-update:proto-google-maps-mapmanagement-v2:current} -->
46+
</dependency>
3747
<dependency>
3848
<groupId>com.google.maps.api.grpc</groupId>
3949
<artifactId>proto-google-maps-mapmanagement-v2beta</artifactId>

java-maps-mapmanagement/google-maps-mapmanagement/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
</dependency>
4343

4444
<!-- {x-generated-proto-dependencies-start} -->
45+
<dependency>
46+
<groupId>com.google.maps.api.grpc</groupId>
47+
<artifactId>proto-google-maps-mapmanagement-v2</artifactId>
48+
</dependency>
4549
<dependency>
4650
<groupId>com.google.maps.api.grpc</groupId>
4751
<artifactId>proto-google-maps-mapmanagement-v2beta</artifactId>
@@ -90,6 +94,11 @@
9094
</dependency>
9195

9296
<!-- {x-generated-grpc-dependencies-start} -->
97+
<dependency>
98+
<groupId>com.google.maps.api.grpc</groupId>
99+
<artifactId>grpc-google-maps-mapmanagement-v2</artifactId>
100+
<scope>test</scope>
101+
</dependency>
93102
<dependency>
94103
<groupId>com.google.maps.api.grpc</groupId>
95104
<artifactId>grpc-google-maps-mapmanagement-v2beta</artifactId>

java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2/MapManagementClient.java

Lines changed: 2629 additions & 0 deletions
Large diffs are not rendered by default.

java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2/MapManagementSettings.java

Lines changed: 388 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
4+
"language": "java",
5+
"protoPackage": "google.maps.mapmanagement.v2",
6+
"libraryPackage": "com.google.maps.mapmanagement.v2",
7+
"services": {
8+
"MapManagement": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "MapManagementClient",
12+
"rpcs": {
13+
"CreateMapConfig": {
14+
"methods": ["createMapConfig", "createMapConfig", "createMapConfig", "createMapConfigCallable"]
15+
},
16+
"CreateMapContextConfig": {
17+
"methods": ["createMapContextConfig", "createMapContextConfig", "createMapContextConfig", "createMapContextConfigCallable"]
18+
},
19+
"CreateStyleConfig": {
20+
"methods": ["createStyleConfig", "createStyleConfig", "createStyleConfig", "createStyleConfigCallable"]
21+
},
22+
"DeleteMapConfig": {
23+
"methods": ["deleteMapConfig", "deleteMapConfig", "deleteMapConfig", "deleteMapConfigCallable"]
24+
},
25+
"DeleteMapContextConfig": {
26+
"methods": ["deleteMapContextConfig", "deleteMapContextConfig", "deleteMapContextConfig", "deleteMapContextConfigCallable"]
27+
},
28+
"DeleteStyleConfig": {
29+
"methods": ["deleteStyleConfig", "deleteStyleConfig", "deleteStyleConfig", "deleteStyleConfigCallable"]
30+
},
31+
"GetMapConfig": {
32+
"methods": ["getMapConfig", "getMapConfig", "getMapConfig", "getMapConfigCallable"]
33+
},
34+
"GetMapContextConfig": {
35+
"methods": ["getMapContextConfig", "getMapContextConfig", "getMapContextConfig", "getMapContextConfigCallable"]
36+
},
37+
"GetStyleConfig": {
38+
"methods": ["getStyleConfig", "getStyleConfig", "getStyleConfig", "getStyleConfigCallable"]
39+
},
40+
"ListMapConfigs": {
41+
"methods": ["listMapConfigs", "listMapConfigs", "listMapConfigs", "listMapConfigsPagedCallable", "listMapConfigsCallable"]
42+
},
43+
"ListMapContextConfigs": {
44+
"methods": ["listMapContextConfigs", "listMapContextConfigs", "listMapContextConfigs", "listMapContextConfigsPagedCallable", "listMapContextConfigsCallable"]
45+
},
46+
"ListStyleConfigs": {
47+
"methods": ["listStyleConfigs", "listStyleConfigs", "listStyleConfigs", "listStyleConfigsPagedCallable", "listStyleConfigsCallable"]
48+
},
49+
"UpdateMapConfig": {
50+
"methods": ["updateMapConfig", "updateMapConfig", "updateMapConfigCallable"]
51+
},
52+
"UpdateMapContextConfig": {
53+
"methods": ["updateMapContextConfig", "updateMapContextConfig", "updateMapContextConfigCallable"]
54+
},
55+
"UpdateStyleConfig": {
56+
"methods": ["updateStyleConfig", "updateStyleConfig", "updateStyleConfigCallable"]
57+
}
58+
}
59+
}
60+
}
61+
}
62+
}
63+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A client to Map Management API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
21+
*
22+
* <p>======================= MapManagementClient =======================
23+
*
24+
* <p>Service Description: The Map Management API uses your inputs to create and manage Google Cloud
25+
* based styling resources for Google Maps.
26+
*
27+
* <p>Using this API, you can can create and manage MapConfigs (Map IDs), StyleConfigs (JSON-based
28+
* styling), and MapContextConfigs (associations between styles, datasets, and map variants).
29+
*
30+
* <p>This API offers features through three channels:
31+
*
32+
* <ul>
33+
* <li>`v2alpha`: Experimental features.
34+
* <li>`v2beta`: Preview features, recommended for early adoption.
35+
* <li>`v2`: General Availability (GA) features.
36+
* </ul>
37+
*
38+
* <p>Capabilities described here are generally available across both the v2alpha and v2beta
39+
* endpoints.
40+
*
41+
* <p>Sample for MapManagementClient:
42+
*
43+
* <pre>{@code
44+
* // This snippet has been automatically generated and should be regarded as a code template only.
45+
* // It will require modifications to work:
46+
* // - It may require correct/in-range values for request initialization.
47+
* // - It may require specifying regional endpoints when creating the service client as shown in
48+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
49+
* try (MapManagementClient mapManagementClient = MapManagementClient.create()) {
50+
* ProjectName parent = ProjectName.of("[PROJECT]");
51+
* MapConfig mapConfig = MapConfig.newBuilder().build();
52+
* MapConfig response = mapManagementClient.createMapConfig(parent, mapConfig);
53+
* }
54+
* }</pre>
55+
*/
56+
@Generated("by gapic-generator-java")
57+
package com.google.maps.mapmanagement.v2;
58+
59+
import javax.annotation.Generated;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.maps.mapmanagement.v2.stub;
18+
19+
import com.google.api.gax.grpc.GrpcCallSettings;
20+
import com.google.api.gax.grpc.GrpcCallableFactory;
21+
import com.google.api.gax.grpc.GrpcStubCallableFactory;
22+
import com.google.api.gax.rpc.BatchingCallSettings;
23+
import com.google.api.gax.rpc.BidiStreamingCallable;
24+
import com.google.api.gax.rpc.ClientContext;
25+
import com.google.api.gax.rpc.ClientStreamingCallable;
26+
import com.google.api.gax.rpc.OperationCallSettings;
27+
import com.google.api.gax.rpc.OperationCallable;
28+
import com.google.api.gax.rpc.PagedCallSettings;
29+
import com.google.api.gax.rpc.ServerStreamingCallSettings;
30+
import com.google.api.gax.rpc.ServerStreamingCallable;
31+
import com.google.api.gax.rpc.StreamingCallSettings;
32+
import com.google.api.gax.rpc.UnaryCallSettings;
33+
import com.google.api.gax.rpc.UnaryCallable;
34+
import com.google.longrunning.Operation;
35+
import com.google.longrunning.stub.OperationsStub;
36+
import javax.annotation.Generated;
37+
import org.jspecify.annotations.NullMarked;
38+
39+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
40+
/**
41+
* gRPC callable factory implementation for the MapManagement service API.
42+
*
43+
* <p>This class is for advanced usage.
44+
*/
45+
@NullMarked
46+
@Generated("by gapic-generator-java")
47+
public class GrpcMapManagementCallableFactory implements GrpcStubCallableFactory {
48+
49+
@Override
50+
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
51+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
52+
UnaryCallSettings<RequestT, ResponseT> callSettings,
53+
ClientContext clientContext) {
54+
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
55+
}
56+
57+
@Override
58+
public <RequestT, ResponseT, PagedListResponseT>
59+
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
60+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
61+
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
62+
ClientContext clientContext) {
63+
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
64+
}
65+
66+
@Override
67+
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
68+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
69+
BatchingCallSettings<RequestT, ResponseT> callSettings,
70+
ClientContext clientContext) {
71+
return GrpcCallableFactory.createBatchingCallable(
72+
grpcCallSettings, callSettings, clientContext);
73+
}
74+
75+
@Override
76+
public <RequestT, ResponseT, MetadataT>
77+
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
78+
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
79+
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
80+
ClientContext clientContext,
81+
OperationsStub operationsStub) {
82+
return GrpcCallableFactory.createOperationCallable(
83+
grpcCallSettings, callSettings, clientContext, operationsStub);
84+
}
85+
86+
@Override
87+
public <RequestT, ResponseT>
88+
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
89+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
90+
StreamingCallSettings<RequestT, ResponseT> callSettings,
91+
ClientContext clientContext) {
92+
return GrpcCallableFactory.createBidiStreamingCallable(
93+
grpcCallSettings, callSettings, clientContext);
94+
}
95+
96+
@Override
97+
public <RequestT, ResponseT>
98+
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
99+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
100+
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
101+
ClientContext clientContext) {
102+
return GrpcCallableFactory.createServerStreamingCallable(
103+
grpcCallSettings, callSettings, clientContext);
104+
}
105+
106+
@Override
107+
public <RequestT, ResponseT>
108+
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
109+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
110+
StreamingCallSettings<RequestT, ResponseT> callSettings,
111+
ClientContext clientContext) {
112+
return GrpcCallableFactory.createClientStreamingCallable(
113+
grpcCallSettings, callSettings, clientContext);
114+
}
115+
}

0 commit comments

Comments
 (0)