31 | * IPC serialized Arrow schema. 32 | *33 | * 34 | *
bytes serialized_schema = 1;
35 | *
36 | * @return The serializedSchema.
37 | */
38 | com.google.protobuf.ByteString getSerializedSchema();
39 | }
40 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface FlushRowsResponseOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsResponse)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * The rows before this offset (including this offset) are flushed. 32 | *33 | * 34 | *
int64 offset = 1;
35 | *
36 | * @return The offset.
37 | */
38 | long getOffset();
39 | }
40 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Singletons.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2024 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 | package com.google.cloud.bigquery.storage.v1;
17 |
18 | import io.opentelemetry.api.GlobalOpenTelemetry;
19 | import io.opentelemetry.api.OpenTelemetry;
20 | import java.util.logging.Logger;
21 |
22 | /** Container for global singleton objects. */
23 | public class Singletons {
24 |
25 | private static final Logger log = Logger.getLogger(Singletons.class.getName());
26 |
27 | // Global OpenTelemetry instance
28 | private static OpenTelemetry openTelemetry = null;
29 |
30 | public static OpenTelemetry getOpenTelemetry() {
31 | if (openTelemetry == null) {
32 | openTelemetry = GlobalOpenTelemetry.get();
33 | log.info("BigQueryStorage initialized Open Telemetry");
34 | }
35 | return openTelemetry;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface FinalizeWriteStreamResponseOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Number of rows in the finalized stream. 32 | *33 | * 34 | *
int64 row_count = 1;
35 | *
36 | * @return The rowCount.
37 | */
38 | long getRowCount();
39 | }
40 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 |
5 | ---
6 |
7 | Thanks for stopping by to let us know something could be better!
8 |
9 | **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10 |
11 | Please run down the following list and make sure you've tried the usual "quick fixes":
12 |
13 | - Search the issues already opened: https://github.com/googleapis/java-bigquerystorage/issues
14 | - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform
15 |
16 | If you are still having issues, please include as much information as possible:
17 |
18 | #### Environment details
19 |
20 | 1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
21 | General, Core, and Other are also allowed as types
22 | 2. OS type and version:
23 | 3. Java version:
24 | 4. version(s):
25 |
26 | #### Steps to reproduce
27 |
28 | 1. ?
29 | 2. ?
30 |
31 | #### Code example
32 |
33 | ```java
34 | // example
35 | ```
36 |
37 | #### Stack trace
38 | ```
39 | Any relevant stacktrace here.
40 | ```
41 |
42 | #### External references such as API reference guides
43 |
44 | - ?
45 |
46 | #### Any additional information below
47 |
48 |
49 | Following these steps guarantees the quickest resolution possible.
50 |
51 | Thanks!
52 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/FakeClock.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 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 | package com.google.cloud.bigquery.storage.v1;
17 |
18 | import com.google.api.core.ApiClock;
19 | import java.util.concurrent.TimeUnit;
20 | import java.util.concurrent.atomic.AtomicLong;
21 |
22 | /** A Clock to help with testing time-based logic. */
23 | public class FakeClock implements ApiClock {
24 |
25 | private final AtomicLong millis = new AtomicLong();
26 |
27 | // Advances the clock value by {@code time} in {@code timeUnit}.
28 | public void advance(long time, TimeUnit timeUnit) {
29 | millis.addAndGet(timeUnit.toMillis(time));
30 | }
31 |
32 | @Override
33 | public long nanoTime() {
34 | return millisTime() * 1000_000L;
35 | }
36 |
37 | @Override
38 | public long millisTime() {
39 | return millis.get();
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/arrow.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface ArrowSchemaOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSchema)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * IPC serialized Arrow schema. 32 | *33 | * 34 | *
bytes serialized_schema = 1;
35 | *
36 | * @return The serializedSchema.
37 | */
38 | com.google.protobuf.ByteString getSerializedSchema();
39 | }
40 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface FlushRowsResponseOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * The rows before this offset (including this offset) are flushed. 32 | *33 | * 34 | *
int64 offset = 1;
35 | *
36 | * @return The offset.
37 | */
38 | long getOffset();
39 | }
40 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/gapic_metadata.json:
--------------------------------------------------------------------------------
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.v1alpha",
6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1alpha",
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 | }
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/gapic_metadata.json:
--------------------------------------------------------------------------------
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 | }
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/avro.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface AvroRowsOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroRows)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Binary serialized rows in a block. 32 | *33 | * 34 | *
bytes serialized_binary_rows = 1;
35 | *
36 | * @return The serializedBinaryRows.
37 | */
38 | com.google.protobuf.ByteString getSerializedBinaryRows();
39 | }
40 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface FinalizeWriteStreamResponseOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Number of rows in the finalized stream. 32 | *33 | * 34 | *
int64 row_count = 1;
35 | *
36 | * @return The rowCount.
37 | */
38 | long getRowCount();
39 | }
40 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface ThrottleStateOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ThrottleState)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * How much this connection is being throttled. Zero means no throttling, 32 | * 100 means fully throttled. 33 | *34 | * 35 | *
int32 throttle_percent = 1;
36 | *
37 | * @return The throttlePercent.
38 | */
39 | int getThrottlePercent();
40 | }
41 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/arrow.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface ArrowRecordBatchOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * IPC-serialized Arrow RecordBatch. 32 | *33 | * 34 | *
bytes serialized_record_batch = 1;
35 | *
36 | * @return The serializedRecordBatch.
37 | */
38 | com.google.protobuf.ByteString getSerializedRecordBatch();
39 | }
40 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface ThrottleStateOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ThrottleState)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * How much this connection is being throttled. Zero means no throttling, 32 | * 100 means fully throttled. 33 | *34 | * 35 | *
int32 throttle_percent = 1;
36 | *
37 | * @return The throttlePercent.
38 | */
39 | int getThrottlePercent();
40 | }
41 |
--------------------------------------------------------------------------------
/generation_config.yaml:
--------------------------------------------------------------------------------
1 | gapic_generator_version: 2.64.1
2 | googleapis_commitish: 5342712986262b93211b136eb4bd6fb79b3764af
3 | libraries_bom_version: 26.71.0
4 | libraries:
5 | - api_shortname: bigquerystorage
6 | name_pretty: BigQuery Storage
7 | product_documentation: https://cloud.google.com/bigquery/docs/reference/storage/
8 | client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history
9 | api_description: is an API for reading data stored in BigQuery. This API provides direct, high-throughput read access to existing BigQuery tables, supports parallel access with automatic liquid sharding, and allows fine-grained control over what data is returned.
10 | issue_tracker: https://issuetracker.google.com/savedsearches/559654
11 | release_level: stable
12 | language: java
13 | repo: googleapis/java-bigquerystorage
14 | repo_short: java-bigquerystorage
15 | distribution_name: com.google.cloud:google-cloud-bigquerystorage
16 | codeowner_team: '@googleapis/api-bigquery'
17 | api_id: bigquerystorage.googleapis.com
18 | transport: grpc
19 | requires_billing: true
20 | library_type: GAPIC_COMBO
21 | recommended_package: com.google.cloud.bigquery.storage.v1
22 | GAPICs:
23 | - proto_path: google/cloud/bigquery/storage/v1
24 | - proto_path: google/cloud/bigquery/storage/v1alpha
25 | - proto_path: google/cloud/bigquery/storage/v1beta1
26 | - proto_path: google/cloud/bigquery/storage/v1beta2
27 | - proto_path: google/cloud/bigquery/storage/v1beta
28 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2025 Google LLC
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | syntax = "proto3";
16 |
17 | package google.cloud.bigquery.storage.v1beta1;
18 |
19 | import "google/protobuf/timestamp.proto";
20 |
21 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb;storagepb";
22 | option java_outer_classname = "TableReferenceProto";
23 | option java_package = "com.google.cloud.bigquery.storage.v1beta1";
24 |
25 | // Table reference that includes just the 3 strings needed to identify a table.
26 | message TableReference {
27 | // The assigned project ID of the project.
28 | string project_id = 1;
29 |
30 | // The ID of the dataset in the above project.
31 | string dataset_id = 2;
32 |
33 | // The ID of the table in the above dataset.
34 | string table_id = 3;
35 | }
36 |
37 | // All fields in this message optional.
38 | message TableModifiers {
39 | // The snapshot time of the table. If not set, interpreted as now.
40 | google.protobuf.Timestamp snapshot_time = 1;
41 | }
42 |
--------------------------------------------------------------------------------
/.kokoro/populate-secrets.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Copyright 2020 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 | # http://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 | set -eo pipefail
17 |
18 | function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;}
19 | function msg { println "$*" >&2 ;}
20 | function println { printf '%s\n' "$(now) $*" ;}
21 |
22 |
23 | # Populates requested secrets set in SECRET_MANAGER_KEYS from service account:
24 | # kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com
25 | SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager"
26 | msg "Creating folder on disk for secrets: ${SECRET_LOCATION}"
27 | mkdir -p ${SECRET_LOCATION}
28 | for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g")
29 | do
30 | msg "Retrieving secret ${key}"
31 | docker run --entrypoint=gcloud \
32 | --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \
33 | gcr.io/google.com/cloudsdktool/cloud-sdk \
34 | secrets versions access latest \
35 | --project cloud-devrel-kokoro-resources \
36 | --secret ${key} > \
37 | "${SECRET_LOCATION}/${key}"
38 | if [[ $? == 0 ]]; then
39 | msg "Secret written to ${SECRET_LOCATION}/${key}"
40 | else
41 | msg "Error retrieving secret ${key}"
42 | fi
43 | done
44 |
--------------------------------------------------------------------------------
/owlbot.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021 Google LLC
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # https://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | import synthtool as s
16 | from synthtool.languages import java
17 |
18 |
19 | for library in s.get_staging_dirs():
20 | # put any special-case replacements here
21 | s.move(library)
22 |
23 | s.remove_staging_dirs()
24 | java.common_templates(
25 | excludes=[
26 | "renovate.json",
27 | ".kokoro/build.sh",
28 | ".kokoro/nightly/retry_non_quota.cfg",
29 | ".kokoro/nightly/retry_quota.cfg",
30 | ".kokoro/nightly/samples.cfg",
31 | ".kokoro/presubmit/samples.cfg",
32 | ".kokoro/presubmit/graalvm-native-17.cfg",
33 | ".kokoro/presubmit/graalvm-native.cfg",
34 | ".kokoro/presubmit/graalvm-native-a.cfg",
35 | ".kokoro/presubmit/graalvm-native-b.cfg",
36 | ".kokoro/presubmit/graalvm-native-c.cfg",
37 | ".kokoro/dependencies.sh",
38 | ".github/workflows/approve-readme.yaml",
39 | ".github/workflows/auto-release.yaml",
40 | ".github/workflows/ci.yaml",
41 | ".github/workflows/samples.yaml"
42 | ".kokoro/requirements.in",
43 | ".kokoro/requirements.txt"
44 | ]
45 | )
46 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/pom.xml:
--------------------------------------------------------------------------------
1 | 31 | * Json serialized schema, as described at 32 | * https://avro.apache.org/docs/1.8.1/spec.html. 33 | *34 | * 35 | *
string schema = 1;
36 | *
37 | * @return The schema.
38 | */
39 | java.lang.String getSchema();
40 |
41 | /**
42 | *
43 | *
44 | * 45 | * Json serialized schema, as described at 46 | * https://avro.apache.org/docs/1.8.1/spec.html. 47 | *48 | * 49 | *
string schema = 1;
50 | *
51 | * @return The bytes for schema.
52 | */
53 | com.google.protobuf.ByteString getSchemaBytes();
54 | }
55 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2025 Google LLC
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | syntax = "proto3";
16 |
17 | package google.cloud.bigquery.storage.v1beta2;
18 |
19 | import "google/protobuf/descriptor.proto";
20 |
21 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb;storagepb";
22 | option java_multiple_files = true;
23 | option java_outer_classname = "ProtoBufProto";
24 | option java_package = "com.google.cloud.bigquery.storage.v1beta2";
25 |
26 | // ProtoSchema describes the schema of the serialized protocol buffer data rows.
27 | message ProtoSchema {
28 | // Descriptor for input message. The descriptor has to be self contained,
29 | // including all the nested types, excepted for proto buffer well known types
30 | // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf).
31 | google.protobuf.DescriptorProto proto_descriptor = 1;
32 | }
33 |
34 | message ProtoRows {
35 | // A sequence of rows serialized as a Protocol Buffer.
36 | //
37 | // See https://developers.google.com/protocol-buffers/docs/overview for more
38 | // information on deserializing this field.
39 | repeated bytes serialized_rows = 1;
40 | }
41 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/avro.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface AvroSchemaOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroSchema)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Json serialized schema, as described at 32 | * https://avro.apache.org/docs/1.8.1/spec.html. 33 | *34 | * 35 | *
string schema = 1;
36 | *
37 | * @return The schema.
38 | */
39 | java.lang.String getSchema();
40 |
41 | /**
42 | *
43 | *
44 | * 45 | * Json serialized schema, as described at 46 | * https://avro.apache.org/docs/1.8.1/spec.html. 47 | *48 | * 49 | *
string schema = 1;
50 | *
51 | * @return The bytes for schema.
52 | */
53 | com.google.protobuf.ByteString getSchemaBytes();
54 | }
55 |
--------------------------------------------------------------------------------
/.github/workflows/update_generation_config.yaml:
--------------------------------------------------------------------------------
1 | # Copyright 2024 Google LLC
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 | # GitHub action job to test core java library features on
15 | # downstream client libraries before they are released.
16 | name: Update generation configuration
17 | on:
18 | schedule:
19 | - cron: '0 2 * * *'
20 | workflow_dispatch:
21 |
22 | jobs:
23 | update-generation-config:
24 | runs-on: ubuntu-24.04
25 | env:
26 | # the branch into which the pull request is merged
27 | base_branch: main
28 | steps:
29 | - uses: actions/checkout@v4
30 | with:
31 | fetch-depth: 0
32 | token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
33 | - name: Install Dependencies
34 | shell: bash
35 | run: sudo apt-get update && sudo apt-get install -y libxml2-utils
36 | - name: Update params in generation config to latest
37 | shell: bash
38 | run: |
39 | set -x
40 | [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com"
41 | [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot"
42 | bash .github/scripts/update_generation_config.sh \
43 | --base_branch "${base_branch}" \
44 | --repo ${{ github.repository }}
45 | env:
46 | GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
47 |
48 |
--------------------------------------------------------------------------------
/.github/workflows/hermetic_library_generation.yaml:
--------------------------------------------------------------------------------
1 | # Copyright 2024 Google LLC
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 | # GitHub action job to test core java library features on
15 | # downstream client libraries before they are released.
16 | name: Hermetic library generation upon generation config change through pull requests
17 | on:
18 | pull_request:
19 |
20 | env:
21 | REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
22 | GITHUB_REPOSITORY: ${{ github.repository }}
23 | jobs:
24 | library_generation:
25 | runs-on: ubuntu-latest
26 | steps:
27 | - name: Determine whether the pull request comes from a fork
28 | run: |
29 | if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then
30 | echo "This PR comes from a fork. Skip library generation."
31 | echo "SHOULD_RUN=false" >> $GITHUB_ENV
32 | else
33 | echo "SHOULD_RUN=true" >> $GITHUB_ENV
34 | fi
35 | - uses: actions/checkout@v4
36 | if: env.SHOULD_RUN == 'true'
37 | with:
38 | fetch-depth: 0
39 | token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
40 | - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.2
41 | if: env.SHOULD_RUN == 'true'
42 | with:
43 | base_ref: ${{ github.base_ref }}
44 | head_ref: ${{ github.head_ref }}
45 | token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
46 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java:
--------------------------------------------------------------------------------
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.v1;
18 |
19 | import com.google.api.core.BetaApi;
20 | import com.google.api.gax.grpc.testing.MockGrpcService;
21 | import com.google.protobuf.AbstractMessage;
22 | import io.grpc.ServerServiceDefinition;
23 | import java.util.List;
24 | import javax.annotation.Generated;
25 |
26 | @BetaApi
27 | @Generated("by gapic-generator-java")
28 | public class MockBigQueryRead implements MockGrpcService {
29 | private final MockBigQueryReadImpl serviceImpl;
30 |
31 | public MockBigQueryRead() {
32 | serviceImpl = new MockBigQueryReadImpl();
33 | }
34 |
35 | @Override
36 | public List31 | * The Arrow IPC format to use. 32 | *33 | * 34 | *
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1;
35 | *
36 | *
37 | * @return The enum numeric value on the wire for format.
38 | */
39 | int getFormatValue();
40 |
41 | /**
42 | *
43 | *
44 | * 45 | * The Arrow IPC format to use. 46 | *47 | * 48 | *
.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1;
49 | *
50 | *
51 | * @return The format.
52 | */
53 | com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat();
54 | }
55 |
--------------------------------------------------------------------------------
/.kokoro/dependencies.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Copyright 2019 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 | # http://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 | set -eo pipefail
17 | shopt -s nullglob
18 |
19 | ## Get the directory of the build script
20 | scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
21 | ## cd to the parent directory, i.e. the root of the git repo
22 | cd ${scriptDir}/..
23 |
24 | # include common functions
25 | source ${scriptDir}/common.sh
26 |
27 | # Print out Java
28 | java -version
29 | echo $JOB_TYPE
30 |
31 | function determineMavenOpts() {
32 | local javaVersion=$(
33 | # filter down to the version line, then pull out the version between quotes,
34 | # then trim the version number down to its minimal number (removing any
35 | # update or suffix number).
36 | java -version 2>&1 | grep "version" \
37 | | sed -E 's/^.*"(.*?)".*$/\1/g' \
38 | | sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
39 | )
40 |
41 | if [[ $javaVersion == 17* ]]
42 | then
43 | # MaxPermSize is no longer supported as of jdk 17
44 | echo -n "-Xmx1024m"
45 | else
46 | echo -n "-Xmx1024m -XX:MaxPermSize=128m"
47 | fi
48 | }
49 |
50 | export MAVEN_OPTS=$(determineMavenOpts)
51 |
52 | # this should run maven enforcer
53 | retry_with_backoff 3 10 \
54 | mvn install -B -V -ntp \
55 | -DskipTests=true \
56 | -Dmaven.javadoc.skip=true \
57 | -Dclirr.skip=true
58 |
59 | mvn -B dependency:analyze -DfailOnWarning=true
60 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java:
--------------------------------------------------------------------------------
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.v1beta1;
18 |
19 | import com.google.api.core.BetaApi;
20 | import com.google.api.gax.grpc.testing.MockGrpcService;
21 | import com.google.protobuf.AbstractMessage;
22 | import io.grpc.ServerServiceDefinition;
23 | import java.util.List;
24 | import javax.annotation.Generated;
25 |
26 | @BetaApi
27 | @Generated("by gapic-generator-java")
28 | public class MockBigQueryStorage implements MockGrpcService {
29 | private final MockBigQueryStorageImpl serviceImpl;
30 |
31 | public MockBigQueryStorage() {
32 | serviceImpl = new MockBigQueryStorageImpl();
33 | }
34 |
35 | @Override
36 | public List
31 | * Output only. Name of the stream, in the form
32 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 | *
34 | *
35 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
36 | *
37 | * @return The name.
38 | */
39 | java.lang.String getName();
40 |
41 | /**
42 | *
43 | *
44 | *
45 | * Output only. Name of the stream, in the form
46 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
47 | *
48 | *
49 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
50 | *
51 | * @return The bytes for name.
52 | */
53 | com.google.protobuf.ByteString getNameBytes();
54 | }
55 |
--------------------------------------------------------------------------------
/grpc-google-cloud-bigquerystorage-v1/pom.xml:
--------------------------------------------------------------------------------
1 | 31 | * Binary serialized rows in a block. 32 | *33 | * 34 | *
bytes serialized_binary_rows = 1;
35 | *
36 | * @return The serializedBinaryRows.
37 | */
38 | com.google.protobuf.ByteString getSerializedBinaryRows();
39 |
40 | /**
41 | *
42 | *
43 | * 44 | * [Deprecated] The count of rows in the returning block. 45 | * Please use the format-independent ReadRowsResponse.row_count instead. 46 | *47 | * 48 | *
int64 row_count = 2 [deprecated = true];
49 | *
50 | * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See
51 | * google/cloud/bigquery/storage/v1/avro.proto;l=39
52 | * @return The rowCount.
53 | */
54 | @java.lang.Deprecated
55 | long getRowCount();
56 | }
57 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/stream.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface ReadStreamOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadStream)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Output only. Name of the stream, in the form
32 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 | *
34 | *
35 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
36 | *
37 | * @return The name.
38 | */
39 | java.lang.String getName();
40 |
41 | /**
42 | *
43 | *
44 | *
45 | * Output only. Name of the stream, in the form
46 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
47 | *
48 | *
49 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
50 | *
51 | * @return The bytes for name.
52 | */
53 | com.google.protobuf.ByteString getNameBytes();
54 | }
55 |
--------------------------------------------------------------------------------
/samples/snippets/src/test/java/com/example/bigquerystorage/QuickstartSampleIT.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2019 Google Inc.
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 | * http://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.example.bigquerystorage;
18 |
19 | import static com.google.common.truth.Truth.assertThat;
20 |
21 | import java.io.ByteArrayOutputStream;
22 | import java.io.PrintStream;
23 | import org.junit.After;
24 | import org.junit.Before;
25 | import org.junit.Test;
26 | import org.junit.runner.RunWith;
27 | import org.junit.runners.JUnit4;
28 |
29 | /** Tests for quickstart sample. */
30 | @RunWith(JUnit4.class)
31 | @SuppressWarnings("checkstyle:abbreviationaswordinname")
32 | public class QuickstartSampleIT {
33 | private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT");
34 |
35 | private ByteArrayOutputStream bout;
36 | private PrintStream out;
37 |
38 | @Before
39 | public void setUp() {
40 | bout = new ByteArrayOutputStream();
41 | out = new PrintStream(bout);
42 | System.setOut(out);
43 | }
44 |
45 | @After
46 | public void tearDown() {
47 | System.setOut(null);
48 | }
49 |
50 | @Test
51 | public void testQuickstart() throws Exception {
52 | StorageSample.main(PROJECT_ID);
53 | String got = bout.toString();
54 | // Ensure at least 1k of output generated and a specific token was present in the output.
55 | assertThat(bout.size()).isGreaterThan(1024);
56 | assertThat(got).contains("Zayvion");
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionService.java:
--------------------------------------------------------------------------------
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.v1alpha;
18 |
19 | import com.google.api.core.BetaApi;
20 | import com.google.api.gax.grpc.testing.MockGrpcService;
21 | import com.google.protobuf.AbstractMessage;
22 | import io.grpc.ServerServiceDefinition;
23 | import java.util.List;
24 | import javax.annotation.Generated;
25 |
26 | @BetaApi
27 | @Generated("by gapic-generator-java")
28 | public class MockMetastorePartitionService implements MockGrpcService {
29 | private final MockMetastorePartitionServiceImpl serviceImpl;
30 |
31 | public MockMetastorePartitionService() {
32 | serviceImpl = new MockMetastorePartitionServiceImpl();
33 | }
34 |
35 | @Override
36 | public List31 | * IPC-serialized Arrow RecordBatch. 32 | *33 | * 34 | *
bytes serialized_record_batch = 1;
35 | *
36 | * @return The serializedRecordBatch.
37 | */
38 | com.google.protobuf.ByteString getSerializedRecordBatch();
39 |
40 | /**
41 | *
42 | *
43 | * 44 | * [Deprecated] The count of rows in `serialized_record_batch`. 45 | * Please use the format-independent ReadRowsResponse.row_count instead. 46 | *47 | * 48 | *
int64 row_count = 2 [deprecated = true];
49 | *
50 | * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See
51 | * google/cloud/bigquery/storage/v1/arrow.proto;l=43
52 | * @return The rowCount.
53 | */
54 | @java.lang.Deprecated
55 | long getRowCount();
56 | }
57 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface FinalizeWriteStreamRequestOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Required. Name of the stream to finalize, in the form of
32 | * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
33 | *
34 | *
35 | *
36 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
37 | *
38 | *
39 | * @return The name.
40 | */
41 | java.lang.String getName();
42 |
43 | /**
44 | *
45 | *
46 | *
47 | * Required. Name of the stream to finalize, in the form of
48 | * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
49 | *
50 | *
51 | *
52 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
53 | *
54 | *
55 | * @return The bytes for name.
56 | */
57 | com.google.protobuf.ByteString getNameBytes();
58 | }
59 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface GetWriteStreamRequestOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Required. Name of the stream to get, in the form of
32 | * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
33 | *
34 | *
35 | *
36 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
37 | *
38 | *
39 | * @return The name.
40 | */
41 | java.lang.String getName();
42 |
43 | /**
44 | *
45 | *
46 | *
47 | * Required. Name of the stream to get, in the form of
48 | * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
49 | *
50 | *
51 | *
52 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
53 | *
54 | *
55 | * @return The bytes for name.
56 | */
57 | com.google.protobuf.ByteString getNameBytes();
58 | }
59 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/ReadStreamOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta/partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta;
21 |
22 | public interface ReadStreamOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.ReadStream)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Output only. Identifier. Name of the stream, in the form
32 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 | *
34 | *
35 | *
36 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
37 | *
38 | *
39 | * @return The name.
40 | */
41 | java.lang.String getName();
42 |
43 | /**
44 | *
45 | *
46 | *
47 | * Output only. Identifier. Name of the stream, in the form
48 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
49 | *
50 | *
51 | *
52 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
53 | *
54 | *
55 | * @return The bytes for name.
56 | */
57 | com.google.protobuf.ByteString getNameBytes();
58 | }
59 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/StreamMetastorePartitionsResponseOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta/metastore_partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta;
21 |
22 | public interface StreamMetastorePartitionsResponseOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.StreamMetastorePartitionsResponse)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Total count of partitions streamed by the client during the lifetime of the 32 | * stream. This is only set in the final response message before closing the 33 | * stream. 34 | *35 | * 36 | *
int64 total_partitions_streamed_count = 2;
37 | *
38 | * @return The totalPartitionsStreamedCount.
39 | */
40 | long getTotalPartitionsStreamedCount();
41 |
42 | /**
43 | *
44 | *
45 | * 46 | * Total count of partitions inserted by the server during the lifetime of the 47 | * stream. This is only set in the final response message before closing the 48 | * stream. 49 | *50 | * 51 | *
int64 total_partitions_inserted_count = 3;
52 | *
53 | * @return The totalPartitionsInsertedCount.
54 | */
55 | long getTotalPartitionsInsertedCount();
56 | }
57 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStreamOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1alpha/partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1alpha;
21 |
22 | public interface ReadStreamOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.ReadStream)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Output only. Identifier. Name of the stream, in the form
32 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 | *
34 | *
35 | *
36 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
37 | *
38 | *
39 | * @return The name.
40 | */
41 | java.lang.String getName();
42 |
43 | /**
44 | *
45 | *
46 | *
47 | * Output only. Identifier. Name of the stream, in the form
48 | * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
49 | *
50 | *
51 | *
52 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
53 | *
54 | *
55 | * @return The bytes for name.
56 | */
57 | com.google.protobuf.ByteString getNameBytes();
58 | }
59 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponseOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1alpha;
21 |
22 | public interface StreamMetastorePartitionsResponseOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Total count of partitions streamed by the client during the lifetime of the 32 | * stream. This is only set in the final response message before closing the 33 | * stream. 34 | *35 | * 36 | *
int64 total_partitions_streamed_count = 2;
37 | *
38 | * @return The totalPartitionsStreamedCount.
39 | */
40 | long getTotalPartitionsStreamedCount();
41 |
42 | /**
43 | *
44 | *
45 | * 46 | * Total count of partitions inserted by the server during the lifetime of the 47 | * stream. This is only set in the final response message before closing the 48 | * stream. 49 | *50 | * 51 | *
int64 total_partitions_inserted_count = 3;
52 | *
53 | * @return The totalPartitionsInsertedCount.
54 | */
55 | long getTotalPartitionsInsertedCount();
56 | }
57 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json:
--------------------------------------------------------------------------------
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.v1beta2",
6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1beta2",
7 | "services": {
8 | "BigQueryRead": {
9 | "clients": {
10 | "grpc": {
11 | "libraryClient": "BaseBigQueryReadClient",
12 | "rpcs": {
13 | "CreateReadSession": {
14 | "methods": ["createReadSession", "createReadSession", "createReadSession", "createReadSessionCallable"]
15 | },
16 | "ReadRows": {
17 | "methods": ["readRowsCallable"]
18 | },
19 | "SplitReadStream": {
20 | "methods": ["splitReadStream", "splitReadStreamCallable"]
21 | }
22 | }
23 | }
24 | }
25 | },
26 | "BigQueryWrite": {
27 | "clients": {
28 | "grpc": {
29 | "libraryClient": "BigQueryWriteClient",
30 | "rpcs": {
31 | "AppendRows": {
32 | "methods": ["appendRowsCallable"]
33 | },
34 | "BatchCommitWriteStreams": {
35 | "methods": ["batchCommitWriteStreams", "batchCommitWriteStreams", "batchCommitWriteStreamsCallable"]
36 | },
37 | "CreateWriteStream": {
38 | "methods": ["createWriteStream", "createWriteStream", "createWriteStream", "createWriteStreamCallable"]
39 | },
40 | "FinalizeWriteStream": {
41 | "methods": ["finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStreamCallable"]
42 | },
43 | "FlushRows": {
44 | "methods": ["flushRows", "flushRows", "flushRows", "flushRowsCallable"]
45 | },
46 | "GetWriteStream": {
47 | "methods": ["getWriteStream", "getWriteStream", "getWriteStream", "getWriteStreamCallable"]
48 | }
49 | }
50 | }
51 | }
52 | }
53 | }
54 | }
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface FinalizeWriteStreamRequestOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Required. Name of the stream to finalize, in the form of
32 | * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
33 | *
34 | *
35 | *
36 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
37 | *
38 | *
39 | * @return The name.
40 | */
41 | java.lang.String getName();
42 |
43 | /**
44 | *
45 | *
46 | *
47 | * Required. Name of the stream to finalize, in the form of
48 | * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
49 | *
50 | *
51 | *
52 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
53 | *
54 | *
55 | * @return The bytes for name.
56 | */
57 | com.google.protobuf.ByteString getNameBytes();
58 | }
59 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json:
--------------------------------------------------------------------------------
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.v1",
6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1",
7 | "services": {
8 | "BigQueryRead": {
9 | "clients": {
10 | "grpc": {
11 | "libraryClient": "BaseBigQueryReadClient",
12 | "rpcs": {
13 | "CreateReadSession": {
14 | "methods": ["createReadSession", "createReadSession", "createReadSession", "createReadSessionCallable"]
15 | },
16 | "ReadRows": {
17 | "methods": ["readRowsCallable"]
18 | },
19 | "SplitReadStream": {
20 | "methods": ["splitReadStream", "splitReadStreamCallable"]
21 | }
22 | }
23 | }
24 | }
25 | },
26 | "BigQueryWrite": {
27 | "clients": {
28 | "grpc": {
29 | "libraryClient": "BigQueryWriteClient",
30 | "rpcs": {
31 | "AppendRows": {
32 | "methods": ["appendRowsCallable"]
33 | },
34 | "BatchCommitWriteStreams": {
35 | "methods": ["batchCommitWriteStreams", "batchCommitWriteStreams", "batchCommitWriteStreams", "batchCommitWriteStreamsCallable"]
36 | },
37 | "CreateWriteStream": {
38 | "methods": ["createWriteStream", "createWriteStream", "createWriteStream", "createWriteStreamCallable"]
39 | },
40 | "FinalizeWriteStream": {
41 | "methods": ["finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStreamCallable"]
42 | },
43 | "FlushRows": {
44 | "methods": ["flushRows", "flushRows", "flushRows", "flushRowsCallable"]
45 | },
46 | "GetWriteStream": {
47 | "methods": ["getWriteStream", "getWriteStream", "getWriteStream", "getWriteStreamCallable"]
48 | }
49 | }
50 | }
51 | }
52 | }
53 | }
54 | }
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface StreamStatsOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StreamStats)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Represents the progress of the current stream. 32 | *33 | * 34 | *
.google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2;
35 | *
36 | * @return Whether the progress field is set.
37 | */
38 | boolean hasProgress();
39 |
40 | /**
41 | *
42 | *
43 | * 44 | * Represents the progress of the current stream. 45 | *46 | * 47 | *
.google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2;
48 | *
49 | * @return The progress.
50 | */
51 | com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress();
52 |
53 | /**
54 | *
55 | *
56 | * 57 | * Represents the progress of the current stream. 58 | *59 | * 60 | *
.google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2;
61 | */
62 | com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getProgressOrBuilder();
63 | }
64 |
--------------------------------------------------------------------------------
/.github/workflows/approve-readme.yaml:
--------------------------------------------------------------------------------
1 | on:
2 | pull_request:
3 | paths-ignore:
4 | - 'tutorials/**'
5 | name: auto-merge-readme
6 | jobs:
7 | approve:
8 | runs-on: ubuntu-latest
9 | if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
10 | steps:
11 | - uses: actions/github-script@v7
12 | with:
13 | github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
14 | script: |
15 | // only approve PRs from yoshi-automation
16 | if (context.payload.pull_request.user.login !== "yoshi-automation") {
17 | return;
18 | }
19 |
20 | // only approve PRs like "chore: release 31 | * Represents the progress of the current stream. 32 | *33 | * 34 | *
.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2;
35 | *
36 | * @return Whether the progress field is set.
37 | */
38 | boolean hasProgress();
39 |
40 | /**
41 | *
42 | *
43 | * 44 | * Represents the progress of the current stream. 45 | *46 | * 47 | *
.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2;
48 | *
49 | * @return The progress.
50 | */
51 | com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress();
52 |
53 | /**
54 | *
55 | *
56 | * 57 | * Represents the progress of the current stream. 58 | *59 | * 60 | *
.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2;
61 | */
62 | com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder getProgressOrBuilder();
63 | }
64 |
--------------------------------------------------------------------------------
/samples/snippets/src/test/resources/NewCustomers.json:
--------------------------------------------------------------------------------
1 | {"Customer_ID":1,"Customer_Enrollment_Date":19301,"Customer_Name":"Nick","Customer_Address":"1600AmphitheatrePkwy,MountainView,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Internet_Subscription\":\"Trial\",\"Music_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"}
2 | {"Customer_ID":2,"Customer_Enrollment_Date":19318,"Customer_Name":"Heather","Customer_Address":"350FifthAvenue,NewYork,NY","Customer_Tier":"Commercial","Active_Subscriptions":"{}","_CHANGE_TYPE":"UPSERT"}
3 | {"Customer_ID":3,"Customer_Enrollment_Date":19250,"Customer_Name":"Lyle","Customer_Address":"10DowningStreet,London,England","Customer_Tier":"Enterprise","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\",\"Music_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"}
4 | {"Customer_ID":4,"Customer_Enrollment_Date":19140,"Customer_Name":"Heidi","Customer_Address":"4059MtLeeDr.,Hollywood,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"TV_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"}
5 | {"Customer_ID":5,"Customer_Enrollment_Date":19299,"Customer_Name":"Paul","Customer_Address":"221BBakerSt,London,England","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Music_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"}
6 | {"Customer_ID":6,"Customer_Enrollment_Date":19329,"Customer_Name":"Dylan","Customer_Address":"1DrCarltonBGoodlettPl,SanFrancisco,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"TV_Subscription\":\"Trial\"}","_CHANGE_TYPE":"UPSERT"}
7 | {"Customer_ID":7,"Customer_Enrollment_Date":19400,"Customer_Name":"Monica","Customer_Address":"PiazzadelColosseo,1,00184RomaRM,Italy","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"}
8 | {"Customer_ID":8,"Customer_Enrollment_Date":19377,"Customer_Name":"Katie","Customer_Address":"11WallStreet,NewYork,NY","Customer_Tier":"Enterprise","Active_Subscriptions":"{\"Music_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"}
9 | {"Customer_ID":9,"Customer_Enrollment_Date":19410,"Customer_Name":"Jeremy","Customer_Address":"1600PennsylvaniaAvenue,WashingtonDC","Customer_Tier":"Enterprise","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\",\"TV_Subscription\":\"Paid\",\"Music_Subscription\":\"Trial\"}","_CHANGE_TYPE":"UPSERT"}
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2025 Google LLC
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | syntax = "proto3";
16 |
17 | package google.cloud.bigquery.storage.v1;
18 |
19 | import "google/protobuf/descriptor.proto";
20 |
21 | option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1";
22 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb";
23 | option java_multiple_files = true;
24 | option java_outer_classname = "ProtoBufProto";
25 | option java_package = "com.google.cloud.bigquery.storage.v1";
26 | option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1";
27 |
28 | // ProtoSchema describes the schema of the serialized protocol buffer data rows.
29 | message ProtoSchema {
30 | // Descriptor for input message. The provided descriptor must be self
31 | // contained, such that data rows sent can be fully decoded using only the
32 | // single descriptor. For data rows that are compositions of multiple
33 | // independent messages, this means the descriptor may need to be transformed
34 | // to only use nested types:
35 | // https://developers.google.com/protocol-buffers/docs/proto#nested
36 | //
37 | // For additional information for how proto types and values map onto BigQuery
38 | // see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
39 | google.protobuf.DescriptorProto proto_descriptor = 1;
40 | }
41 |
42 | message ProtoRows {
43 | // A sequence of rows serialized as a Protocol Buffer.
44 | //
45 | // See https://developers.google.com/protocol-buffers/docs/overview for more
46 | // information on deserializing this field.
47 | repeated bytes serialized_rows = 1;
48 | }
49 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/BatchSizeTooLargeErrorOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta/metastore_partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta;
21 |
22 | public interface BatchSizeTooLargeErrorOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.BatchSizeTooLargeError)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * The maximum number of items that are supported in a single batch. This is 32 | * returned as a hint to the client to adjust the batch size. 33 | *34 | * 35 | *
int64 max_batch_size = 1;
36 | *
37 | * @return The maxBatchSize.
38 | */
39 | long getMaxBatchSize();
40 |
41 | /**
42 | *
43 | *
44 | * 45 | * Optional. The error message that is returned to the client. 46 | *47 | * 48 | *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
49 | *
50 | * @return The errorMessage.
51 | */
52 | java.lang.String getErrorMessage();
53 |
54 | /**
55 | *
56 | *
57 | * 58 | * Optional. The error message that is returned to the client. 59 | *60 | * 61 | *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
62 | *
63 | * @return The bytes for errorMessage.
64 | */
65 | com.google.protobuf.ByteString getErrorMessageBytes();
66 | }
67 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeErrorOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1alpha;
21 |
22 | public interface BatchSizeTooLargeErrorOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * The maximum number of items that are supported in a single batch. This is 32 | * returned as a hint to the client to adjust the batch size. 33 | *34 | * 35 | *
int64 max_batch_size = 1;
36 | *
37 | * @return The maxBatchSize.
38 | */
39 | long getMaxBatchSize();
40 |
41 | /**
42 | *
43 | *
44 | * 45 | * Optional. The error message that is returned to the client. 46 | *47 | * 48 | *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
49 | *
50 | * @return The errorMessage.
51 | */
52 | java.lang.String getErrorMessage();
53 |
54 | /**
55 | *
56 | *
57 | * 58 | * Optional. The error message that is returned to the client. 59 | *60 | * 61 | *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
62 | *
63 | * @return The bytes for errorMessage.
64 | */
65 | com.google.protobuf.ByteString getErrorMessageBytes();
66 | }
67 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface ReadRowsRequestOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsRequest)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Required. Stream to read rows from. 32 | *33 | * 34 | *
35 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
36 | *
37 | *
38 | * @return The readStream.
39 | */
40 | java.lang.String getReadStream();
41 |
42 | /**
43 | *
44 | *
45 | * 46 | * Required. Stream to read rows from. 47 | *48 | * 49 | *
50 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
51 | *
52 | *
53 | * @return The bytes for readStream.
54 | */
55 | com.google.protobuf.ByteString getReadStreamBytes();
56 |
57 | /**
58 | *
59 | *
60 | * 61 | * The offset requested must be less than the last row read from Read. 62 | * Requesting a larger offset is undefined. If not specified, start reading 63 | * from offset zero. 64 | *65 | * 66 | *
int64 offset = 2;
67 | *
68 | * @return The offset.
69 | */
70 | long getOffset();
71 | }
72 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta2;
21 |
22 | public interface ReadRowsRequestOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | * 31 | * Required. Stream to read rows from. 32 | *33 | * 34 | *
35 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
36 | *
37 | *
38 | * @return The readStream.
39 | */
40 | java.lang.String getReadStream();
41 |
42 | /**
43 | *
44 | *
45 | * 46 | * Required. Stream to read rows from. 47 | *48 | * 49 | *
50 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
51 | *
52 | *
53 | * @return The bytes for readStream.
54 | */
55 | com.google.protobuf.ByteString getReadStreamBytes();
56 |
57 | /**
58 | *
59 | *
60 | * 61 | * The offset requested must be less than the last row read from Read. 62 | * Requesting a larger offset is undefined. If not specified, start reading 63 | * from offset zero. 64 | *65 | * 66 | *
int64 offset = 2;
67 | *
68 | * @return The offset.
69 | */
70 | long getOffset();
71 | }
72 |
--------------------------------------------------------------------------------
/grpc-google-cloud-bigquerystorage-v1beta/pom.xml:
--------------------------------------------------------------------------------
1 | This class is for advanced usage and reflects the underlying API directly.
35 | */
36 | @Generated("by gapic-generator-java")
37 | public abstract class BigQueryReadStub implements BackgroundResource {
38 |
39 | public UnaryCallable This class is for advanced usage and reflects the underlying API directly.
36 | */
37 | @BetaApi
38 | @Generated("by gapic-generator-java")
39 | public abstract class BigQueryReadStub implements BackgroundResource {
40 |
41 | public UnaryCallable The interfaces provided are listed below, along with usage samples.
21 | *
22 | * ======================= BaseBigQueryStorageClient =======================
23 | *
24 | * Service Description: BigQuery storage API.
25 | *
26 | * The BigQuery storage API can be used to read data stored in BigQuery.
27 | *
28 | * The v1beta1 API is not yet officially deprecated, and will go through a full deprecation cycle
29 | * (https://cloud.google.com/products#product-launch-stages) before the service is turned down.
30 | * However, new code should use the v1 API going forward.
31 | *
32 | * Sample for BaseBigQueryStorageClient:
33 | *
34 | * The interfaces provided are listed below, along with usage samples.
21 | *
22 | * ======================= MetastorePartitionServiceClient =======================
23 | *
24 | * Service Description: BigQuery Metastore Partition Service API. This service is used for
25 | * managing metastore partitions in BigQuery metastore. The service supports only batch operations
26 | * for write.
27 | *
28 | * Sample for MetastorePartitionServiceClient:
29 | *
30 | * The interfaces provided are listed below, along with usage samples.
21 | *
22 | * ======================= MetastorePartitionServiceClient =======================
23 | *
24 | * Service Description: BigQuery Metastore Partition Service API. This service is used for
25 | * managing metastore partitions in BigQuery metastore. The service supports only batch operations
26 | * for write.
27 | *
28 | * Sample for MetastorePartitionServiceClient:
29 | *
30 | * {@code
35 | * // This snippet has been automatically generated and should be regarded as a code template only.
36 | * // It will require modifications to work:
37 | * // - It may require correct/in-range values for request initialization.
38 | * // - It may require specifying regional endpoints when creating the service client as shown in
39 | * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
40 | * try (BaseBigQueryStorageClient baseBigQueryStorageClient = BaseBigQueryStorageClient.create()) {
41 | * TableReferenceProto.TableReference tableReference =
42 | * TableReferenceProto.TableReference.newBuilder().build();
43 | * ProjectName parent = ProjectName.of("[PROJECT]");
44 | * int requestedStreams = 1017221410;
45 | * Storage.ReadSession response =
46 | * baseBigQueryStorageClient.createReadSession(tableReference, parent, requestedStreams);
47 | * }
48 | * }
49 | */
50 | @Generated("by gapic-generator-java")
51 | package com.google.cloud.bigquery.storage.v1beta1;
52 |
53 | import javax.annotation.Generated;
54 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/util/TimeConversionUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2024 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.util;
18 |
19 | import com.google.api.core.InternalApi;
20 |
21 | /**
22 | * Convenience methods for conversions between {@link java.time} and {@link org.threeten.bp}
23 | * objects. This will be kept until this issue is solved.
25 | */
26 | @InternalApi("https://github.com/googleapis/sdk-platform-java/issues/3412")
27 | public class TimeConversionUtils {
28 | public static java.time.LocalDateTime toJavaTimeLocalDateTime(
29 | org.threeten.bp.LocalDateTime result) {
30 | return java.time.LocalDateTime.of(
31 | result.getYear(),
32 | java.time.Month.of(result.getMonth().getValue()),
33 | result.getDayOfMonth(),
34 | result.getHour(),
35 | result.getMinute(),
36 | result.getSecond(),
37 | result.getNano());
38 | }
39 |
40 | public static org.threeten.bp.LocalDateTime toThreetenLocalDateTime(
41 | java.time.LocalDateTime result) {
42 | return org.threeten.bp.LocalDateTime.of(
43 | result.getYear(),
44 | org.threeten.bp.Month.of(result.getMonth().getValue()),
45 | result.getDayOfMonth(),
46 | result.getHour(),
47 | result.getMinute(),
48 | result.getSecond(),
49 | result.getNano());
50 | }
51 |
52 | public static java.time.LocalTime toJavaTimeLocalTime(org.threeten.bp.LocalTime result) {
53 | return java.time.LocalTime.of(
54 | result.getHour(), result.getMinute(), result.getSecond(), result.getNano());
55 | }
56 |
57 | public static org.threeten.bp.LocalTime toThreetenLocalTime(java.time.LocalTime result) {
58 | return org.threeten.bp.LocalTime.of(
59 | result.getHour(), result.getMinute(), result.getSecond(), result.getNano());
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/package-info.java:
--------------------------------------------------------------------------------
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 | /**
18 | * A client to BigQuery Storage API
19 | *
20 | * {@code
31 | * // This snippet has been automatically generated and should be regarded as a code template only.
32 | * // It will require modifications to work:
33 | * // - It may require correct/in-range values for request initialization.
34 | * // - It may require specifying regional endpoints when creating the service client as shown in
35 | * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
36 | * try (MetastorePartitionServiceClient metastorePartitionServiceClient =
37 | * MetastorePartitionServiceClient.create()) {
38 | * BatchCreateMetastorePartitionsRequest request =
39 | * BatchCreateMetastorePartitionsRequest.newBuilder()
40 | * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
41 | * .addAllRequests(new ArrayList
49 | */
50 | @Generated("by gapic-generator-java")
51 | package com.google.cloud.bigquery.storage.v1alpha;
52 |
53 | import javax.annotation.Generated;
54 |
--------------------------------------------------------------------------------
/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/package-info.java:
--------------------------------------------------------------------------------
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 | /**
18 | * A client to BigQuery Storage API
19 | *
20 | * {@code
31 | * // This snippet has been automatically generated and should be regarded as a code template only.
32 | * // It will require modifications to work:
33 | * // - It may require correct/in-range values for request initialization.
34 | * // - It may require specifying regional endpoints when creating the service client as shown in
35 | * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
36 | * try (MetastorePartitionServiceClient metastorePartitionServiceClient =
37 | * MetastorePartitionServiceClient.create()) {
38 | * BatchCreateMetastorePartitionsRequest request =
39 | * BatchCreateMetastorePartitionsRequest.newBuilder()
40 | * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
41 | * .addAllRequests(new ArrayList
49 | */
50 | @Generated("by gapic-generator-java")
51 | package com.google.cloud.bigquery.storage.v1beta;
52 |
53 | import javax.annotation.Generated;
54 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1/protobuf.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1;
21 |
22 | public interface ProtoRowsOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ProtoRows)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * A sequence of rows serialized as a Protocol Buffer.
32 | *
33 | * See https://developers.google.com/protocol-buffers/docs/overview for more
34 | * information on deserializing this field.
35 | *
36 | *
37 | * repeated bytes serialized_rows = 1;
38 | *
39 | * @return A list containing the serializedRows.
40 | */
41 | java.util.List
47 | * A sequence of rows serialized as a Protocol Buffer.
48 | *
49 | * See https://developers.google.com/protocol-buffers/docs/overview for more
50 | * information on deserializing this field.
51 | *
52 | *
53 | * repeated bytes serialized_rows = 1;
54 | *
55 | * @return The count of serializedRows.
56 | */
57 | int getSerializedRowsCount();
58 |
59 | /**
60 | *
61 | *
62 | *
63 | * A sequence of rows serialized as a Protocol Buffer.
64 | *
65 | * See https://developers.google.com/protocol-buffers/docs/overview for more
66 | * information on deserializing this field.
67 | *
68 | *
69 | * repeated bytes serialized_rows = 1;
70 | *
71 | * @param index The index of the element to return.
72 | * @return The serializedRows at the given index.
73 | */
74 | com.google.protobuf.ByteString getSerializedRows(int index);
75 | }
76 |
--------------------------------------------------------------------------------
/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/FieldSchemaOrBuilder.java:
--------------------------------------------------------------------------------
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 | // Generated by the protocol buffer compiler. DO NOT EDIT!
17 | // source: google/cloud/bigquery/storage/v1beta/partition.proto
18 |
19 | // Protobuf Java Version: 3.25.8
20 | package com.google.cloud.bigquery.storage.v1beta;
21 |
22 | public interface FieldSchemaOrBuilder
23 | extends
24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.FieldSchema)
25 | com.google.protobuf.MessageOrBuilder {
26 |
27 | /**
28 | *
29 | *
30 | *
31 | * Required. The name of the column.
32 | * The maximum length of the name is 1024 characters
33 | *
34 | *
35 | * string name = 1 [(.google.api.field_behavior) = REQUIRED];
36 | *
37 | * @return The name.
38 | */
39 | java.lang.String getName();
40 |
41 | /**
42 | *
43 | *
44 | *
45 | * Required. The name of the column.
46 | * The maximum length of the name is 1024 characters
47 | *
48 | *
49 | * string name = 1 [(.google.api.field_behavior) = REQUIRED];
50 | *
51 | * @return The bytes for name.
52 | */
53 | com.google.protobuf.ByteString getNameBytes();
54 |
55 | /**
56 | *
57 | *
58 | *
59 | * Required. The type of the metastore partition column. Maximum allowed
60 | * length is 1024 characters.
61 | *
62 | *
63 | * string type = 2 [(.google.api.field_behavior) = REQUIRED];
64 | *
65 | * @return The type.
66 | */
67 | java.lang.String getType();
68 |
69 | /**
70 | *
71 | *
72 | *
73 | * Required. The type of the metastore partition column. Maximum allowed
74 | * length is 1024 characters.
75 | *
76 | *
77 | * string type = 2 [(.google.api.field_behavior) = REQUIRED];
78 | *
79 | * @return The bytes for type.
80 | */
81 | com.google.protobuf.ByteString getTypeBytes();
82 | }
83 |
--------------------------------------------------------------------------------