Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit e5f6198

Browse files
authored
feat: add clients for v1beta2 endpoint (#113)
This is 100% autogenerated code. Subsequent PRs will cover manual classes. Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery-storage/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕 TODO: - [x] docs build successful - [x] unit tests pass (need to remove `test_append_rows_flattened_*` tests, as there are no flattened arguments for `append_rows`)
1 parent c6c7a1a commit e5f6198

38 files changed

Lines changed: 10498 additions & 15 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
BigQueryRead
2+
------------------------------
3+
4+
.. automodule:: google.cloud.bigquery_storage_v1beta2.services.big_query_read
5+
:members:
6+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
BigQueryWrite
2+
-------------------------------
3+
4+
.. automodule:: google.cloud.bigquery_storage_v1beta2.services.big_query_write
5+
:members:
6+
:inherited-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Services for Google Cloud Bigquery Storage v1beta2 API
2+
======================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
big_query_read
7+
big_query_write
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Bigquery Storage v1beta2 API
2+
===================================================
3+
4+
.. automodule:: google.cloud.bigquery_storage_v1beta2.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ API Reference
2121
bigquery_storage_v1/library
2222
bigquery_storage_v1/services
2323
bigquery_storage_v1/types
24+
bigquery_storage_v1beta2/services
25+
bigquery_storage_v1beta2/types
2426

2527

2628
Migration Guide
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Copyright 2020 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+
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta2;storage";
20+
option java_multiple_files = true;
21+
option java_outer_classname = "ArrowProto";
22+
option java_package = "com.google.cloud.bigquery.storage.v1beta2";
23+
24+
// Arrow schema as specified in
25+
// https://arrow.apache.org/docs/python/api/datatypes.html
26+
// and serialized to bytes using IPC:
27+
// https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc
28+
//
29+
// See code samples on how this message can be deserialized.
30+
message ArrowSchema {
31+
// IPC serialized Arrow schema.
32+
bytes serialized_schema = 1;
33+
}
34+
35+
// Arrow RecordBatch.
36+
message ArrowRecordBatch {
37+
// IPC-serialized Arrow RecordBatch.
38+
bytes serialized_record_batch = 1;
39+
}
40+
41+
// Contains options specific to Arrow Serialization.
42+
message ArrowSerializationOptions {
43+
// The IPC format to use when serializing Arrow streams.
44+
enum Format {
45+
// If unspecied the IPC format as of 0.15 release will be used.
46+
FORMAT_UNSPECIFIED = 0;
47+
48+
// Use the legacy IPC message format as of Apache Arrow Release 0.14.
49+
ARROW_0_14 = 1;
50+
51+
// Use the message format as of Apache Arrow Release 0.15.
52+
ARROW_0_15 = 2;
53+
}
54+
55+
// The Arrow IPC format to use.
56+
Format format = 1;
57+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 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+
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta2;storage";
20+
option java_multiple_files = true;
21+
option java_outer_classname = "AvroProto";
22+
option java_package = "com.google.cloud.bigquery.storage.v1beta2";
23+
24+
// Avro schema.
25+
message AvroSchema {
26+
// Json serialized schema, as described at
27+
// https://avro.apache.org/docs/1.8.1/spec.html.
28+
string schema = 1;
29+
}
30+
31+
// Avro rows.
32+
message AvroRows {
33+
// Binary serialized rows in a block.
34+
bytes serialized_binary_rows = 1;
35+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright 2020 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 = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta2;storage";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "ProtoBufProto";
24+
option java_package = "com.google.cloud.bigquery.storage.v1beta2";
25+
26+
// Protobuf schema is an API presentation the proto buffer schema.
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+
// Protobuf rows.
35+
message ProtoRows {
36+
// A sequence of rows serialized as a Protocol Buffer.
37+
//
38+
// See https://developers.google.com/protocol-buffers/docs/overview for more
39+
// information on deserializing this field.
40+
repeated bytes serialized_rows = 1;
41+
}

0 commit comments

Comments
 (0)