Skip to content

Commit ec47cb6

Browse files
chore: add v2beta to cloudsupport library (#11588)
* chore: add v2beta to cloudsupport library * chore: generate libraries at Thu May 15 17:11:39 UTC 2025 --------- Co-authored-by: cloud-java-bot <[email protected]>
1 parent 6645e51 commit ec47cb6

File tree

214 files changed

+67822
-0
lines changed

Some content is hidden

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

214 files changed

+67822
-0
lines changed

generation_config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ libraries:
567567
support offerings.
568568
GAPICs:
569569
- proto_path: google/cloud/support/v2
570+
- proto_path: google/cloud/support/v2beta
570571

571572
- api_shortname: compute
572573
name_pretty: Compute Engine

java-cloudsupport/google-cloud-cloudsupport-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-cloudsupport-v2</artifactId>
3535
<version>0.47.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-cloudsupport-v2:current} -->
3636
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>grpc-google-cloud-cloudsupport-v2beta</artifactId>
40+
<version>0.47.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-cloudsupport-v2beta:current} -->
41+
</dependency>
3742
<dependency>
3843
<groupId>com.google.api.grpc</groupId>
3944
<artifactId>proto-google-cloud-cloudsupport-v2</artifactId>
4045
<version>0.47.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-cloudsupport-v2:current} -->
4146
</dependency>
47+
<dependency>
48+
<groupId>com.google.api.grpc</groupId>
49+
<artifactId>proto-google-cloud-cloudsupport-v2beta</artifactId>
50+
<version>0.47.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-cloudsupport-v2beta:current} -->
51+
</dependency>
4252
</dependencies>
4353
</dependencyManagement>
4454
</project>

java-cloudsupport/google-cloud-cloudsupport/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-cloudsupport-v2beta</artifactId>
47+
</dependency>
4448
<dependency>
4549
<groupId>com.google.api.grpc</groupId>
4650
<artifactId>proto-google-cloud-cloudsupport-v2</artifactId>
@@ -66,6 +70,11 @@
6670
<artifactId>grpc-google-common-protos</artifactId>
6771
<scope>test</scope>
6872
</dependency>
73+
<dependency>
74+
<groupId>com.google.api.grpc</groupId>
75+
<artifactId>grpc-google-cloud-cloudsupport-v2beta</artifactId>
76+
<scope>test</scope>
77+
</dependency>
6978
<dependency>
7079
<groupId>com.google.api.grpc</groupId>
7180
<artifactId>proto-google-iam-v1</artifactId>

java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceClient.java

Lines changed: 569 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
/*
2+
* Copyright 2025 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.support.v2beta;
18+
19+
import static com.google.cloud.support.v2beta.CaseAttachmentServiceClient.ListAttachmentsPagedResponse;
20+
21+
import com.google.api.core.ApiFunction;
22+
import com.google.api.core.BetaApi;
23+
import com.google.api.gax.core.GoogleCredentialsProvider;
24+
import com.google.api.gax.core.InstantiatingExecutorProvider;
25+
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
26+
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
27+
import com.google.api.gax.rpc.ApiClientHeaderProvider;
28+
import com.google.api.gax.rpc.ClientContext;
29+
import com.google.api.gax.rpc.ClientSettings;
30+
import com.google.api.gax.rpc.PagedCallSettings;
31+
import com.google.api.gax.rpc.TransportChannelProvider;
32+
import com.google.api.gax.rpc.UnaryCallSettings;
33+
import com.google.cloud.support.v2beta.stub.CaseAttachmentServiceStubSettings;
34+
import java.io.IOException;
35+
import java.util.List;
36+
import javax.annotation.Generated;
37+
38+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
39+
/**
40+
* Settings class to configure an instance of {@link CaseAttachmentServiceClient}.
41+
*
42+
* <p>The default instance has everything set to sensible defaults:
43+
*
44+
* <ul>
45+
* <li>The default service address (cloudsupport.googleapis.com) and default port (443) are used.
46+
* <li>Credentials are acquired automatically through Application Default Credentials.
47+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
48+
* </ul>
49+
*
50+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
51+
* build() is called, the tree of builders is called to create the complete settings object.
52+
*
53+
* <p>For example, to set the
54+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
55+
* of listAttachments:
56+
*
57+
* <pre>{@code
58+
* // This snippet has been automatically generated and should be regarded as a code template only.
59+
* // It will require modifications to work:
60+
* // - It may require correct/in-range values for request initialization.
61+
* // - It may require specifying regional endpoints when creating the service client as shown in
62+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
63+
* CaseAttachmentServiceSettings.Builder caseAttachmentServiceSettingsBuilder =
64+
* CaseAttachmentServiceSettings.newBuilder();
65+
* caseAttachmentServiceSettingsBuilder
66+
* .listAttachmentsSettings()
67+
* .setRetrySettings(
68+
* caseAttachmentServiceSettingsBuilder
69+
* .listAttachmentsSettings()
70+
* .getRetrySettings()
71+
* .toBuilder()
72+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
73+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
74+
* .setMaxAttempts(5)
75+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
76+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
77+
* .setRetryDelayMultiplier(1.3)
78+
* .setRpcTimeoutMultiplier(1.5)
79+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
80+
* .build());
81+
* CaseAttachmentServiceSettings caseAttachmentServiceSettings =
82+
* caseAttachmentServiceSettingsBuilder.build();
83+
* }</pre>
84+
*
85+
* Please refer to the [Client Side Retry
86+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
87+
* additional support in setting retries.
88+
*/
89+
@BetaApi
90+
@Generated("by gapic-generator-java")
91+
public class CaseAttachmentServiceSettings extends ClientSettings<CaseAttachmentServiceSettings> {
92+
93+
/** Returns the object with the settings used for calls to listAttachments. */
94+
public PagedCallSettings<
95+
ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse>
96+
listAttachmentsSettings() {
97+
return ((CaseAttachmentServiceStubSettings) getStubSettings()).listAttachmentsSettings();
98+
}
99+
100+
public static final CaseAttachmentServiceSettings create(CaseAttachmentServiceStubSettings stub)
101+
throws IOException {
102+
return new CaseAttachmentServiceSettings.Builder(stub.toBuilder()).build();
103+
}
104+
105+
/** Returns a builder for the default ExecutorProvider for this service. */
106+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
107+
return CaseAttachmentServiceStubSettings.defaultExecutorProviderBuilder();
108+
}
109+
110+
/** Returns the default service endpoint. */
111+
public static String getDefaultEndpoint() {
112+
return CaseAttachmentServiceStubSettings.getDefaultEndpoint();
113+
}
114+
115+
/** Returns the default service scopes. */
116+
public static List<String> getDefaultServiceScopes() {
117+
return CaseAttachmentServiceStubSettings.getDefaultServiceScopes();
118+
}
119+
120+
/** Returns a builder for the default credentials for this service. */
121+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
122+
return CaseAttachmentServiceStubSettings.defaultCredentialsProviderBuilder();
123+
}
124+
125+
/** Returns a builder for the default gRPC ChannelProvider for this service. */
126+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
127+
return CaseAttachmentServiceStubSettings.defaultGrpcTransportProviderBuilder();
128+
}
129+
130+
/** Returns a builder for the default REST ChannelProvider for this service. */
131+
@BetaApi
132+
public static InstantiatingHttpJsonChannelProvider.Builder
133+
defaultHttpJsonTransportProviderBuilder() {
134+
return CaseAttachmentServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
135+
}
136+
137+
public static TransportChannelProvider defaultTransportChannelProvider() {
138+
return CaseAttachmentServiceStubSettings.defaultTransportChannelProvider();
139+
}
140+
141+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
142+
return CaseAttachmentServiceStubSettings.defaultApiClientHeaderProviderBuilder();
143+
}
144+
145+
/** Returns a new gRPC builder for this class. */
146+
public static Builder newBuilder() {
147+
return Builder.createDefault();
148+
}
149+
150+
/** Returns a new REST builder for this class. */
151+
public static Builder newHttpJsonBuilder() {
152+
return Builder.createHttpJsonDefault();
153+
}
154+
155+
/** Returns a new builder for this class. */
156+
public static Builder newBuilder(ClientContext clientContext) {
157+
return new Builder(clientContext);
158+
}
159+
160+
/** Returns a builder containing all the values of this settings class. */
161+
public Builder toBuilder() {
162+
return new Builder(this);
163+
}
164+
165+
protected CaseAttachmentServiceSettings(Builder settingsBuilder) throws IOException {
166+
super(settingsBuilder);
167+
}
168+
169+
/** Builder for CaseAttachmentServiceSettings. */
170+
public static class Builder
171+
extends ClientSettings.Builder<CaseAttachmentServiceSettings, Builder> {
172+
173+
protected Builder() throws IOException {
174+
this(((ClientContext) null));
175+
}
176+
177+
protected Builder(ClientContext clientContext) {
178+
super(CaseAttachmentServiceStubSettings.newBuilder(clientContext));
179+
}
180+
181+
protected Builder(CaseAttachmentServiceSettings settings) {
182+
super(settings.getStubSettings().toBuilder());
183+
}
184+
185+
protected Builder(CaseAttachmentServiceStubSettings.Builder stubSettings) {
186+
super(stubSettings);
187+
}
188+
189+
private static Builder createDefault() {
190+
return new Builder(CaseAttachmentServiceStubSettings.newBuilder());
191+
}
192+
193+
private static Builder createHttpJsonDefault() {
194+
return new Builder(CaseAttachmentServiceStubSettings.newHttpJsonBuilder());
195+
}
196+
197+
public CaseAttachmentServiceStubSettings.Builder getStubSettingsBuilder() {
198+
return ((CaseAttachmentServiceStubSettings.Builder) getStubSettings());
199+
}
200+
201+
/**
202+
* Applies the given settings updater function to all of the unary API methods in this service.
203+
*
204+
* <p>Note: This method does not support applying settings to streaming methods.
205+
*/
206+
public Builder applyToAllUnaryMethods(
207+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
208+
super.applyToAllUnaryMethods(
209+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
210+
return this;
211+
}
212+
213+
/** Returns the builder for the settings used for calls to listAttachments. */
214+
public PagedCallSettings.Builder<
215+
ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse>
216+
listAttachmentsSettings() {
217+
return getStubSettingsBuilder().listAttachmentsSettings();
218+
}
219+
220+
@Override
221+
public CaseAttachmentServiceSettings build() throws IOException {
222+
return new CaseAttachmentServiceSettings(this);
223+
}
224+
}
225+
}

0 commit comments

Comments
 (0)