Skip to content

Commit a4a47da

Browse files
authored
feat(google/cloud/backupdr/v1beta): add backupdr (#14410)
Onboard google/cloud/backupdr/v1beta API (backupdr). Internal tracking bug http://b/561460918 ## Debug Info ### System Details - Java version: openjdk version "17.0.20.1" 2026-08-18 - OS: Linux 6.18.14-1rodete4-amd64 x86_64 - Librarian version: v0.44.0 ### Commands Executed - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 install` - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 add google/cloud/backupdr/v1beta` - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 generate -v backupdr` - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 tidy` - `git add .` - `git commit -m "feat(google/cloud/backupdr/v1beta): add backupdr"`
1 parent 21c4955 commit a4a47da

675 files changed

Lines changed: 380333 additions & 1 deletion

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-backupdr/google-cloud-backupdr-bom/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@
3434
<artifactId>grpc-google-cloud-backupdr-v1</artifactId>
3535
<version>0.57.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-backupdr-v1:current} -->
3636
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>grpc-google-cloud-backupdr-v1beta</artifactId>
40+
<version>0.57.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-backupdr-v1beta:current} -->
41+
</dependency>
3742
<dependency>
3843
<groupId>com.google.api.grpc</groupId>
3944
<artifactId>proto-google-cloud-backupdr-v1</artifactId>
4045
<version>0.57.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-backupdr-v1:current} -->
4146
</dependency>
47+
<dependency>
48+
<groupId>com.google.api.grpc</groupId>
49+
<artifactId>proto-google-cloud-backupdr-v1beta</artifactId>
50+
<version>0.57.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-backupdr-v1beta:current} -->
51+
</dependency>
4252
<!-- {x-generated-dependencies-end} -->
4353
</dependencies>
4454
</dependencyManagement>

java-backupdr/google-cloud-backupdr/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
<groupId>com.google.api.grpc</groupId>
4747
<artifactId>proto-google-cloud-backupdr-v1</artifactId>
4848
</dependency>
49+
<dependency>
50+
<groupId>com.google.api.grpc</groupId>
51+
<artifactId>proto-google-cloud-backupdr-v1beta</artifactId>
52+
</dependency>
4953
<!-- {x-generated-proto-dependencies-end} -->
5054
<dependency>
5155
<groupId>com.google.guava</groupId>
@@ -95,6 +99,11 @@
9599
<artifactId>grpc-google-cloud-backupdr-v1</artifactId>
96100
<scope>test</scope>
97101
</dependency>
102+
<dependency>
103+
<groupId>com.google.api.grpc</groupId>
104+
<artifactId>grpc-google-cloud-backupdr-v1beta</artifactId>
105+
<scope>test</scope>
106+
</dependency>
98107
<!-- {x-generated-grpc-dependencies-end} -->
99108
<!-- Need testing utility classes for generated gRPC clients tests -->
100109
<dependency>

java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDRClient.java

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

java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDRSettings.java

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

java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDrProtectionSummaryClient.java

Lines changed: 1096 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 299 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,299 @@
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.cloud.backupdr.v1beta;
18+
19+
import static com.google.cloud.backupdr.v1beta.BackupDrProtectionSummaryClient.ListLocationsPagedResponse;
20+
import static com.google.cloud.backupdr.v1beta.BackupDrProtectionSummaryClient.ListResourceBackupConfigsPagedResponse;
21+
22+
import com.google.api.core.ApiFunction;
23+
import com.google.api.core.BetaApi;
24+
import com.google.api.gax.core.GoogleCredentialsProvider;
25+
import com.google.api.gax.core.InstantiatingExecutorProvider;
26+
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
27+
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
28+
import com.google.api.gax.rpc.ApiClientHeaderProvider;
29+
import com.google.api.gax.rpc.ClientContext;
30+
import com.google.api.gax.rpc.ClientSettings;
31+
import com.google.api.gax.rpc.PagedCallSettings;
32+
import com.google.api.gax.rpc.TransportChannelProvider;
33+
import com.google.api.gax.rpc.UnaryCallSettings;
34+
import com.google.cloud.backupdr.v1beta.stub.BackupDrProtectionSummaryStubSettings;
35+
import com.google.cloud.location.GetLocationRequest;
36+
import com.google.cloud.location.ListLocationsRequest;
37+
import com.google.cloud.location.ListLocationsResponse;
38+
import com.google.cloud.location.Location;
39+
import com.google.iam.v1.GetIamPolicyRequest;
40+
import com.google.iam.v1.Policy;
41+
import com.google.iam.v1.SetIamPolicyRequest;
42+
import com.google.iam.v1.TestIamPermissionsRequest;
43+
import com.google.iam.v1.TestIamPermissionsResponse;
44+
import java.io.IOException;
45+
import java.util.List;
46+
import javax.annotation.Generated;
47+
import org.jspecify.annotations.NullMarked;
48+
import org.jspecify.annotations.Nullable;
49+
50+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
51+
/**
52+
* Settings class to configure an instance of {@link BackupDrProtectionSummaryClient}.
53+
*
54+
* <p>The default instance has everything set to sensible defaults:
55+
*
56+
* <ul>
57+
* <li>The default service address (backupdr.googleapis.com) and default port (443) are used.
58+
* <li>Credentials are acquired automatically through Application Default Credentials.
59+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
60+
* </ul>
61+
*
62+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
63+
* build() is called, the tree of builders is called to create the complete settings object.
64+
*
65+
* <p>For example, to set the
66+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
67+
* of getLocation:
68+
*
69+
* <pre>{@code
70+
* // This snippet has been automatically generated and should be regarded as a code template only.
71+
* // It will require modifications to work:
72+
* // - It may require correct/in-range values for request initialization.
73+
* // - It may require specifying regional endpoints when creating the service client as shown in
74+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
75+
* BackupDrProtectionSummarySettings.Builder backupDrProtectionSummarySettingsBuilder =
76+
* BackupDrProtectionSummarySettings.newBuilder();
77+
* backupDrProtectionSummarySettingsBuilder
78+
* .getLocationSettings()
79+
* .setRetrySettings(
80+
* backupDrProtectionSummarySettingsBuilder
81+
* .getLocationSettings()
82+
* .getRetrySettings()
83+
* .toBuilder()
84+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
85+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
86+
* .setMaxAttempts(5)
87+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
88+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
89+
* .setRetryDelayMultiplier(1.3)
90+
* .setRpcTimeoutMultiplier(1.5)
91+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
92+
* .build());
93+
* BackupDrProtectionSummarySettings backupDrProtectionSummarySettings =
94+
* backupDrProtectionSummarySettingsBuilder.build();
95+
* }</pre>
96+
*
97+
* Please refer to the [Client Side Retry
98+
* Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
99+
* retries.
100+
*/
101+
@NullMarked
102+
@BetaApi
103+
@Generated("by gapic-generator-java")
104+
public class BackupDrProtectionSummarySettings
105+
extends ClientSettings<BackupDrProtectionSummarySettings> {
106+
107+
/** Returns the object with the settings used for calls to listResourceBackupConfigs. */
108+
public PagedCallSettings<
109+
ListResourceBackupConfigsRequest,
110+
ListResourceBackupConfigsResponse,
111+
ListResourceBackupConfigsPagedResponse>
112+
listResourceBackupConfigsSettings() {
113+
return ((BackupDrProtectionSummaryStubSettings) getStubSettings())
114+
.listResourceBackupConfigsSettings();
115+
}
116+
117+
/** Returns the object with the settings used for calls to listLocations. */
118+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
119+
listLocationsSettings() {
120+
return ((BackupDrProtectionSummaryStubSettings) getStubSettings()).listLocationsSettings();
121+
}
122+
123+
/** Returns the object with the settings used for calls to getLocation. */
124+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
125+
return ((BackupDrProtectionSummaryStubSettings) getStubSettings()).getLocationSettings();
126+
}
127+
128+
/** Returns the object with the settings used for calls to setIamPolicy. */
129+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
130+
return ((BackupDrProtectionSummaryStubSettings) getStubSettings()).setIamPolicySettings();
131+
}
132+
133+
/** Returns the object with the settings used for calls to getIamPolicy. */
134+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
135+
return ((BackupDrProtectionSummaryStubSettings) getStubSettings()).getIamPolicySettings();
136+
}
137+
138+
/** Returns the object with the settings used for calls to testIamPermissions. */
139+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
140+
testIamPermissionsSettings() {
141+
return ((BackupDrProtectionSummaryStubSettings) getStubSettings()).testIamPermissionsSettings();
142+
}
143+
144+
public static final BackupDrProtectionSummarySettings create(
145+
BackupDrProtectionSummaryStubSettings stub) throws IOException {
146+
return new BackupDrProtectionSummarySettings.Builder(stub.toBuilder()).build();
147+
}
148+
149+
/** Returns a builder for the default ExecutorProvider for this service. */
150+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
151+
return BackupDrProtectionSummaryStubSettings.defaultExecutorProviderBuilder();
152+
}
153+
154+
/** Returns the default service endpoint. */
155+
public static String getDefaultEndpoint() {
156+
return BackupDrProtectionSummaryStubSettings.getDefaultEndpoint();
157+
}
158+
159+
/** Returns the default service scopes. */
160+
public static List<String> getDefaultServiceScopes() {
161+
return BackupDrProtectionSummaryStubSettings.getDefaultServiceScopes();
162+
}
163+
164+
/** Returns a builder for the default credentials for this service. */
165+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
166+
return BackupDrProtectionSummaryStubSettings.defaultCredentialsProviderBuilder();
167+
}
168+
169+
/** Returns a builder for the default gRPC ChannelProvider for this service. */
170+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
171+
return BackupDrProtectionSummaryStubSettings.defaultGrpcTransportProviderBuilder();
172+
}
173+
174+
/** Returns a builder for the default REST ChannelProvider for this service. */
175+
@BetaApi
176+
public static InstantiatingHttpJsonChannelProvider.Builder
177+
defaultHttpJsonTransportProviderBuilder() {
178+
return BackupDrProtectionSummaryStubSettings.defaultHttpJsonTransportProviderBuilder();
179+
}
180+
181+
public static TransportChannelProvider defaultTransportChannelProvider() {
182+
return BackupDrProtectionSummaryStubSettings.defaultTransportChannelProvider();
183+
}
184+
185+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
186+
return BackupDrProtectionSummaryStubSettings.defaultApiClientHeaderProviderBuilder();
187+
}
188+
189+
/** Returns a new gRPC builder for this class. */
190+
public static Builder newBuilder() {
191+
return Builder.createDefault();
192+
}
193+
194+
/** Returns a new REST builder for this class. */
195+
public static Builder newHttpJsonBuilder() {
196+
return Builder.createHttpJsonDefault();
197+
}
198+
199+
/** Returns a new builder for this class. */
200+
public static Builder newBuilder(@Nullable ClientContext clientContext) {
201+
return new Builder(clientContext);
202+
}
203+
204+
/** Returns a builder containing all the values of this settings class. */
205+
public Builder toBuilder() {
206+
return new Builder(this);
207+
}
208+
209+
protected BackupDrProtectionSummarySettings(Builder settingsBuilder) throws IOException {
210+
super(settingsBuilder);
211+
}
212+
213+
/** Builder for BackupDrProtectionSummarySettings. */
214+
public static class Builder
215+
extends ClientSettings.Builder<BackupDrProtectionSummarySettings, Builder> {
216+
217+
protected Builder() throws IOException {
218+
this(((ClientContext) null));
219+
}
220+
221+
protected Builder(@Nullable ClientContext clientContext) {
222+
super(BackupDrProtectionSummaryStubSettings.newBuilder(clientContext));
223+
}
224+
225+
protected Builder(BackupDrProtectionSummarySettings settings) {
226+
super(settings.getStubSettings().toBuilder());
227+
}
228+
229+
protected Builder(BackupDrProtectionSummaryStubSettings.Builder stubSettings) {
230+
super(stubSettings);
231+
}
232+
233+
private static Builder createDefault() {
234+
return new Builder(BackupDrProtectionSummaryStubSettings.newBuilder());
235+
}
236+
237+
private static Builder createHttpJsonDefault() {
238+
return new Builder(BackupDrProtectionSummaryStubSettings.newHttpJsonBuilder());
239+
}
240+
241+
public BackupDrProtectionSummaryStubSettings.Builder getStubSettingsBuilder() {
242+
return ((BackupDrProtectionSummaryStubSettings.Builder) getStubSettings());
243+
}
244+
245+
/**
246+
* Applies the given settings updater function to all of the unary API methods in this service.
247+
*
248+
* <p>Note: This method does not support applying settings to streaming methods.
249+
*/
250+
public Builder applyToAllUnaryMethods(
251+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
252+
super.applyToAllUnaryMethods(
253+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
254+
return this;
255+
}
256+
257+
/** Returns the builder for the settings used for calls to listResourceBackupConfigs. */
258+
public PagedCallSettings.Builder<
259+
ListResourceBackupConfigsRequest,
260+
ListResourceBackupConfigsResponse,
261+
ListResourceBackupConfigsPagedResponse>
262+
listResourceBackupConfigsSettings() {
263+
return getStubSettingsBuilder().listResourceBackupConfigsSettings();
264+
}
265+
266+
/** Returns the builder for the settings used for calls to listLocations. */
267+
public PagedCallSettings.Builder<
268+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
269+
listLocationsSettings() {
270+
return getStubSettingsBuilder().listLocationsSettings();
271+
}
272+
273+
/** Returns the builder for the settings used for calls to getLocation. */
274+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
275+
return getStubSettingsBuilder().getLocationSettings();
276+
}
277+
278+
/** Returns the builder for the settings used for calls to setIamPolicy. */
279+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
280+
return getStubSettingsBuilder().setIamPolicySettings();
281+
}
282+
283+
/** Returns the builder for the settings used for calls to getIamPolicy. */
284+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
285+
return getStubSettingsBuilder().getIamPolicySettings();
286+
}
287+
288+
/** Returns the builder for the settings used for calls to testIamPermissions. */
289+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
290+
testIamPermissionsSettings() {
291+
return getStubSettingsBuilder().testIamPermissionsSettings();
292+
}
293+
294+
@Override
295+
public BackupDrProtectionSummarySettings build() throws IOException {
296+
return new BackupDrProtectionSummarySettings(this);
297+
}
298+
}
299+
}

0 commit comments

Comments
 (0)