Skip to content

Commit d626b56

Browse files
chore: generate libraries at Fri Apr 17 14:33:42 UTC 2026
1 parent 13b4b6a commit d626b56

59 files changed

Lines changed: 30188 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-os-login/google-cloud-os-login-bom/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,21 @@
3030
<artifactId>grpc-google-cloud-os-login-v1</artifactId>
3131
<version>2.90.0</version><!-- {x-version-update:grpc-google-cloud-os-login-v1:current} -->
3232
</dependency>
33+
<dependency>
34+
<groupId>com.google.api.grpc</groupId>
35+
<artifactId>grpc-google-cloud-os-login-v1beta</artifactId>
36+
<version>2.90.0</version><!-- {x-version-update:grpc-google-cloud-os-login-v1beta:current} -->
37+
</dependency>
3338
<dependency>
3439
<groupId>com.google.api.grpc</groupId>
3540
<artifactId>proto-google-cloud-os-login-v1</artifactId>
3641
<version>2.90.0</version><!-- {x-version-update:proto-google-cloud-os-login-v1:current} -->
3742
</dependency>
43+
<dependency>
44+
<groupId>com.google.api.grpc</groupId>
45+
<artifactId>proto-google-cloud-os-login-v1beta</artifactId>
46+
<version>2.90.0</version><!-- {x-version-update:proto-google-cloud-os-login-v1beta:current} -->
47+
</dependency>
3848
</dependencies>
3949
</dependencyManagement>
4050
</project>

java-os-login/google-cloud-os-login/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
<artifactId>proto-google-common-protos</artifactId>
4242
</dependency>
4343

44+
<dependency>
45+
<groupId>com.google.api.grpc</groupId>
46+
<artifactId>proto-google-cloud-os-login-v1beta</artifactId>
47+
</dependency>
4448
<dependency>
4549
<groupId>com.google.api.grpc</groupId>
4650
<artifactId>proto-google-cloud-os-login-v1</artifactId>
@@ -93,6 +97,11 @@
9397
<artifactId>grpc-google-cloud-os-login-v1</artifactId>
9498
<scope>test</scope>
9599
</dependency>
100+
<dependency>
101+
<groupId>com.google.api.grpc</groupId>
102+
<artifactId>grpc-google-cloud-os-login-v1beta</artifactId>
103+
<scope>test</scope>
104+
</dependency>
96105
<!-- Need testing utility classes for generated gRPC clients tests -->
97106
<dependency>
98107
<groupId>com.google.api</groupId>

java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1beta/OsLoginServiceClient.java

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

0 commit comments

Comments
 (0)