Skip to content

Commit c31f551

Browse files
feat: Generate BigQueryStorage v1beta library (#2962)
* feat: Generate BigQueryStorage v1beta library * chore: generate libraries at Mon May 5 18:41:59 UTC 2025 * chore: Resolve dependency issue * chore: Resolve dependency issue --------- Co-authored-by: cloud-java-bot <[email protected]>
1 parent 4cd94d4 commit c31f551

File tree

66 files changed

+32290
-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.

66 files changed

+32290
-0
lines changed

generation_config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ libraries:
2424
- proto_path: google/cloud/bigquery/storage/v1alpha
2525
- proto_path: google/cloud/bigquery/storage/v1beta1
2626
- proto_path: google/cloud/bigquery/storage/v1beta2
27+
- proto_path: google/cloud/bigquery/storage/v1beta

google-cloud-bigquerystorage-bom/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
<artifactId>grpc-google-cloud-bigquerystorage-v1alpha</artifactId>
7575
<version>3.13.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1alpha:current} -->
7676
</dependency>
77+
<dependency>
78+
<groupId>com.google.api.grpc</groupId>
79+
<artifactId>grpc-google-cloud-bigquerystorage-v1beta</artifactId>
80+
<version>3.13.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1beta:current} -->
81+
</dependency>
7782
<dependency>
7883
<groupId>com.google.api.grpc</groupId>
7984
<artifactId>proto-google-cloud-bigquerystorage-v1beta1</artifactId>
@@ -94,6 +99,11 @@
9499
<artifactId>proto-google-cloud-bigquerystorage-v1alpha</artifactId>
95100
<version>3.13.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1alpha:current} -->
96101
</dependency>
102+
<dependency>
103+
<groupId>com.google.api.grpc</groupId>
104+
<artifactId>proto-google-cloud-bigquerystorage-v1beta</artifactId>
105+
<version>3.13.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1beta:current} -->
106+
</dependency>
97107
</dependencies>
98108
</dependencyManagement>
99109

google-cloud-bigquerystorage/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
<groupId>com.google.api.grpc</groupId>
9898
<artifactId>proto-google-common-protos</artifactId>
9999
</dependency>
100+
<dependency>
101+
<groupId>com.google.api.grpc</groupId>
102+
<artifactId>proto-google-cloud-bigquerystorage-v1beta</artifactId>
103+
</dependency>
100104
<dependency>
101105
<groupId>com.google.api.grpc</groupId>
102106
<artifactId>proto-google-cloud-bigquerystorage-v1alpha</artifactId>
@@ -240,6 +244,11 @@
240244
<groupId>com.google.api.grpc</groupId>
241245
<artifactId>grpc-google-cloud-bigquerystorage-v1beta1</artifactId>
242246
</dependency>
247+
<dependency>
248+
<groupId>com.google.api.grpc</groupId>
249+
<artifactId>grpc-google-cloud-bigquerystorage-v1beta</artifactId>
250+
<scope>test</scope>
251+
</dependency>
243252
<dependency>
244253
<groupId>com.google.api.grpc</groupId>
245254
<artifactId>grpc-google-cloud-bigquerystorage-v1alpha</artifactId>

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceClient.java

Lines changed: 634 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
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.bigquery.storage.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.rpc.ApiClientHeaderProvider;
25+
import com.google.api.gax.rpc.ClientContext;
26+
import com.google.api.gax.rpc.ClientSettings;
27+
import com.google.api.gax.rpc.StreamingCallSettings;
28+
import com.google.api.gax.rpc.TransportChannelProvider;
29+
import com.google.api.gax.rpc.UnaryCallSettings;
30+
import com.google.cloud.bigquery.storage.v1beta.stub.MetastorePartitionServiceStubSettings;
31+
import com.google.protobuf.Empty;
32+
import java.io.IOException;
33+
import java.util.List;
34+
import javax.annotation.Generated;
35+
36+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
37+
/**
38+
* Settings class to configure an instance of {@link MetastorePartitionServiceClient}.
39+
*
40+
* <p>The default instance has everything set to sensible defaults:
41+
*
42+
* <ul>
43+
* <li>The default service address (bigquerystorage.googleapis.com) and default port (443) are
44+
* 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 batchCreateMetastorePartitions:
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+
* MetastorePartitionServiceSettings.Builder metastorePartitionServiceSettingsBuilder =
63+
* MetastorePartitionServiceSettings.newBuilder();
64+
* metastorePartitionServiceSettingsBuilder
65+
* .batchCreateMetastorePartitionsSettings()
66+
* .setRetrySettings(
67+
* metastorePartitionServiceSettingsBuilder
68+
* .batchCreateMetastorePartitionsSettings()
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+
* MetastorePartitionServiceSettings metastorePartitionServiceSettings =
81+
* metastorePartitionServiceSettingsBuilder.build();
82+
* }</pre>
83+
*
84+
* Please refer to the [Client Side Retry
85+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
86+
* additional support in setting retries.
87+
*/
88+
@BetaApi
89+
@Generated("by gapic-generator-java")
90+
public class MetastorePartitionServiceSettings
91+
extends ClientSettings<MetastorePartitionServiceSettings> {
92+
93+
/** Returns the object with the settings used for calls to batchCreateMetastorePartitions. */
94+
public UnaryCallSettings<
95+
BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse>
96+
batchCreateMetastorePartitionsSettings() {
97+
return ((MetastorePartitionServiceStubSettings) getStubSettings())
98+
.batchCreateMetastorePartitionsSettings();
99+
}
100+
101+
/** Returns the object with the settings used for calls to batchDeleteMetastorePartitions. */
102+
public UnaryCallSettings<BatchDeleteMetastorePartitionsRequest, Empty>
103+
batchDeleteMetastorePartitionsSettings() {
104+
return ((MetastorePartitionServiceStubSettings) getStubSettings())
105+
.batchDeleteMetastorePartitionsSettings();
106+
}
107+
108+
/** Returns the object with the settings used for calls to batchUpdateMetastorePartitions. */
109+
public UnaryCallSettings<
110+
BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse>
111+
batchUpdateMetastorePartitionsSettings() {
112+
return ((MetastorePartitionServiceStubSettings) getStubSettings())
113+
.batchUpdateMetastorePartitionsSettings();
114+
}
115+
116+
/** Returns the object with the settings used for calls to listMetastorePartitions. */
117+
public UnaryCallSettings<ListMetastorePartitionsRequest, ListMetastorePartitionsResponse>
118+
listMetastorePartitionsSettings() {
119+
return ((MetastorePartitionServiceStubSettings) getStubSettings())
120+
.listMetastorePartitionsSettings();
121+
}
122+
123+
/** Returns the object with the settings used for calls to streamMetastorePartitions. */
124+
public StreamingCallSettings<StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse>
125+
streamMetastorePartitionsSettings() {
126+
return ((MetastorePartitionServiceStubSettings) getStubSettings())
127+
.streamMetastorePartitionsSettings();
128+
}
129+
130+
public static final MetastorePartitionServiceSettings create(
131+
MetastorePartitionServiceStubSettings stub) throws IOException {
132+
return new MetastorePartitionServiceSettings.Builder(stub.toBuilder()).build();
133+
}
134+
135+
/** Returns a builder for the default ExecutorProvider for this service. */
136+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
137+
return MetastorePartitionServiceStubSettings.defaultExecutorProviderBuilder();
138+
}
139+
140+
/** Returns the default service endpoint. */
141+
public static String getDefaultEndpoint() {
142+
return MetastorePartitionServiceStubSettings.getDefaultEndpoint();
143+
}
144+
145+
/** Returns the default service scopes. */
146+
public static List<String> getDefaultServiceScopes() {
147+
return MetastorePartitionServiceStubSettings.getDefaultServiceScopes();
148+
}
149+
150+
/** Returns a builder for the default credentials for this service. */
151+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
152+
return MetastorePartitionServiceStubSettings.defaultCredentialsProviderBuilder();
153+
}
154+
155+
/** Returns a builder for the default ChannelProvider for this service. */
156+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
157+
return MetastorePartitionServiceStubSettings.defaultGrpcTransportProviderBuilder();
158+
}
159+
160+
public static TransportChannelProvider defaultTransportChannelProvider() {
161+
return MetastorePartitionServiceStubSettings.defaultTransportChannelProvider();
162+
}
163+
164+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
165+
return MetastorePartitionServiceStubSettings.defaultApiClientHeaderProviderBuilder();
166+
}
167+
168+
/** Returns a new builder for this class. */
169+
public static Builder newBuilder() {
170+
return Builder.createDefault();
171+
}
172+
173+
/** Returns a new builder for this class. */
174+
public static Builder newBuilder(ClientContext clientContext) {
175+
return new Builder(clientContext);
176+
}
177+
178+
/** Returns a builder containing all the values of this settings class. */
179+
public Builder toBuilder() {
180+
return new Builder(this);
181+
}
182+
183+
protected MetastorePartitionServiceSettings(Builder settingsBuilder) throws IOException {
184+
super(settingsBuilder);
185+
}
186+
187+
/** Builder for MetastorePartitionServiceSettings. */
188+
public static class Builder
189+
extends ClientSettings.Builder<MetastorePartitionServiceSettings, Builder> {
190+
191+
protected Builder() throws IOException {
192+
this(((ClientContext) null));
193+
}
194+
195+
protected Builder(ClientContext clientContext) {
196+
super(MetastorePartitionServiceStubSettings.newBuilder(clientContext));
197+
}
198+
199+
protected Builder(MetastorePartitionServiceSettings settings) {
200+
super(settings.getStubSettings().toBuilder());
201+
}
202+
203+
protected Builder(MetastorePartitionServiceStubSettings.Builder stubSettings) {
204+
super(stubSettings);
205+
}
206+
207+
private static Builder createDefault() {
208+
return new Builder(MetastorePartitionServiceStubSettings.newBuilder());
209+
}
210+
211+
public MetastorePartitionServiceStubSettings.Builder getStubSettingsBuilder() {
212+
return ((MetastorePartitionServiceStubSettings.Builder) getStubSettings());
213+
}
214+
215+
/**
216+
* Applies the given settings updater function to all of the unary API methods in this service.
217+
*
218+
* <p>Note: This method does not support applying settings to streaming methods.
219+
*/
220+
public Builder applyToAllUnaryMethods(
221+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
222+
super.applyToAllUnaryMethods(
223+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
224+
return this;
225+
}
226+
227+
/** Returns the builder for the settings used for calls to batchCreateMetastorePartitions. */
228+
public UnaryCallSettings.Builder<
229+
BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse>
230+
batchCreateMetastorePartitionsSettings() {
231+
return getStubSettingsBuilder().batchCreateMetastorePartitionsSettings();
232+
}
233+
234+
/** Returns the builder for the settings used for calls to batchDeleteMetastorePartitions. */
235+
public UnaryCallSettings.Builder<BatchDeleteMetastorePartitionsRequest, Empty>
236+
batchDeleteMetastorePartitionsSettings() {
237+
return getStubSettingsBuilder().batchDeleteMetastorePartitionsSettings();
238+
}
239+
240+
/** Returns the builder for the settings used for calls to batchUpdateMetastorePartitions. */
241+
public UnaryCallSettings.Builder<
242+
BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse>
243+
batchUpdateMetastorePartitionsSettings() {
244+
return getStubSettingsBuilder().batchUpdateMetastorePartitionsSettings();
245+
}
246+
247+
/** Returns the builder for the settings used for calls to listMetastorePartitions. */
248+
public UnaryCallSettings.Builder<
249+
ListMetastorePartitionsRequest, ListMetastorePartitionsResponse>
250+
listMetastorePartitionsSettings() {
251+
return getStubSettingsBuilder().listMetastorePartitionsSettings();
252+
}
253+
254+
/** Returns the builder for the settings used for calls to streamMetastorePartitions. */
255+
public StreamingCallSettings.Builder<
256+
StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse>
257+
streamMetastorePartitionsSettings() {
258+
return getStubSettingsBuilder().streamMetastorePartitionsSettings();
259+
}
260+
261+
@Override
262+
public MetastorePartitionServiceSettings build() throws IOException {
263+
return new MetastorePartitionServiceSettings(this);
264+
}
265+
}
266+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.bigquery.storage.v1beta",
6+
"libraryPackage": "com.google.cloud.bigquery.storage.v1beta",
7+
"services": {
8+
"MetastorePartitionService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "MetastorePartitionServiceClient",
12+
"rpcs": {
13+
"BatchCreateMetastorePartitions": {
14+
"methods": ["batchCreateMetastorePartitions", "batchCreateMetastorePartitionsCallable"]
15+
},
16+
"BatchDeleteMetastorePartitions": {
17+
"methods": ["batchDeleteMetastorePartitions", "batchDeleteMetastorePartitionsCallable"]
18+
},
19+
"BatchUpdateMetastorePartitions": {
20+
"methods": ["batchUpdateMetastorePartitions", "batchUpdateMetastorePartitionsCallable"]
21+
},
22+
"ListMetastorePartitions": {
23+
"methods": ["listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitionsCallable"]
24+
},
25+
"StreamMetastorePartitions": {
26+
"methods": ["streamMetastorePartitionsCallable"]
27+
}
28+
}
29+
}
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)