Skip to content

Commit 31d2d02

Browse files
chore: Update gapic-generator-python to 1.24.1 (#924)
* chore: Update gapic-generator-python to 1.24.0 PiperOrigin-RevId: 747419463 Source-Link: googleapis/googleapis@340579b Source-Link: googleapis/googleapis-gen@e8997ec Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTg5OTdlYzUxMzZlY2I2ZWQ5YTk2OWE0YzJmMTNiM2FiNmExN2MxMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: increased the number of partitions can be written in a single request docs: updated the number of partitions (from 100 to 900) can be inserted, updated and deleted in a single request BREAKING CHANGE: remove `location` from http annotations in all of the service requests PiperOrigin-RevId: 747473743 Source-Link: googleapis/googleapis@1c153ad Source-Link: googleapis/googleapis-gen@b5aa0e8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjVhYTBlODkxZjQ1N2IxYzVjZTc1YjEyMGQxYjY1Yzg3Mzg3NzZiNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to 1.24.1 PiperOrigin-RevId: 748739072 Source-Link: googleapis/googleapis@b947e52 Source-Link: googleapis/googleapis-gen@8c5821a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGM1ODIxYWE2NWE5MjFkNTliM2Y3NjUzZDZmMzdjOWM2NzQxMGMyZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 08f942d commit 31d2d02

File tree

14 files changed

+82
-28
lines changed

14 files changed

+82
-28
lines changed

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_read/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
6969
f"Sending request for {client_call_details.method}",
7070
extra={
7171
"serviceName": "google.cloud.bigquery.storage.v1.BigQueryRead",
72-
"rpcName": client_call_details.method,
72+
"rpcName": str(client_call_details.method),
7373
"request": grpc_request,
7474
"metadata": grpc_request["metadata"],
7575
},
7676
)
77-
7877
response = continuation(client_call_details, request)
7978
if logging_enabled: # pragma: NO COVER
8079
response_metadata = response.trailing_metadata()

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
6969
f"Sending request for {client_call_details.method}",
7070
extra={
7171
"serviceName": "google.cloud.bigquery.storage.v1.BigQueryWrite",
72-
"rpcName": client_call_details.method,
72+
"rpcName": str(client_call_details.method),
7373
"request": grpc_request,
7474
"metadata": grpc_request["metadata"],
7575
},
7676
)
77-
7877
response = continuation(client_call_details, request)
7978
if logging_enabled: # pragma: NO COVER
8079
response_metadata = response.trailing_metadata()

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
class MetastorePartitionServiceAsyncClient:
6666
"""BigQuery Metastore Partition Service API.
6767
This service is used for managing metastore partitions in
68-
BigQuery metastore. The service supports only batch operations
68+
BigQuery metastore. The service supports only batch operations
6969
for write.
7070
"""
7171

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def get_transport_class(
108108
class MetastorePartitionServiceClient(metaclass=MetastorePartitionServiceClientMeta):
109109
"""BigQuery Metastore Partition Service API.
110110
This service is used for managing metastore partitions in
111-
BigQuery metastore. The service supports only batch operations
111+
BigQuery metastore. The service supports only batch operations
112112
for write.
113113
"""
114114

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/transports/grpc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7070
f"Sending request for {client_call_details.method}",
7171
extra={
7272
"serviceName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService",
73-
"rpcName": client_call_details.method,
73+
"rpcName": str(client_call_details.method),
7474
"request": grpc_request,
7575
"metadata": grpc_request["metadata"],
7676
},
7777
)
78-
7978
response = continuation(client_call_details, request)
8079
if logging_enabled: # pragma: NO COVER
8180
response_metadata = response.trailing_metadata()
@@ -114,7 +113,7 @@ class MetastorePartitionServiceGrpcTransport(MetastorePartitionServiceTransport)
114113
115114
BigQuery Metastore Partition Service API.
116115
This service is used for managing metastore partitions in
117-
BigQuery metastore. The service supports only batch operations
116+
BigQuery metastore. The service supports only batch operations
118117
for write.
119118
120119
This class defines the same methods as the primary client, so the

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/transports/grpc_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class MetastorePartitionServiceGrpcAsyncIOTransport(MetastorePartitionServiceTra
119119
120120
BigQuery Metastore Partition Service API.
121121
This service is used for managing metastore partitions in
122-
BigQuery metastore. The service supports only batch operations
122+
BigQuery metastore. The service supports only batch operations
123123
for write.
124124
125125
This class defines the same methods as the primary client, so the

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1alpha/types/metastore_partition.py

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,15 @@ class BatchCreateMetastorePartitionsRequest(proto.Message):
8686
add_partitions(..). If the flag is set to false, the server
8787
will return ALREADY_EXISTS if any partition already exists.
8888
If the flag is set to true, the server will skip existing
89-
partitions and insert only the non-existing partitions.
89+
partitions and insert only the non-existing partitions. A
90+
maximum of 900 partitions can be inserted in a batch.
91+
trace_id (str):
92+
Optional. Optional trace id to be used for debugging. It is
93+
expected that the client sets the same ``trace_id`` for all
94+
the batches in the same operation, so that it is possible to
95+
tie together the logs to all the batches in the same
96+
operation. Limited to 256 characters. This is expected, but
97+
not required, to be globally unique.
9098
"""
9199

92100
parent: str = proto.Field(
@@ -102,6 +110,10 @@ class BatchCreateMetastorePartitionsRequest(proto.Message):
102110
proto.BOOL,
103111
number=3,
104112
)
113+
trace_id: str = proto.Field(
114+
proto.STRING,
115+
number=4,
116+
)
105117

106118

107119
class BatchCreateMetastorePartitionsResponse(proto.Message):
@@ -135,8 +147,15 @@ class BatchDeleteMetastorePartitionsRequest(proto.Message):
135147
partition_values (MutableSequence[google.cloud.bigquery_storage_v1alpha.types.MetastorePartitionValues]):
136148
Required. The list of metastore partitions
137149
(identified by its values) to be deleted. A
138-
maximum of 100 partitions can be deleted in a
150+
maximum of 900 partitions can be deleted in a
139151
batch.
152+
trace_id (str):
153+
Optional. Optional trace id to be used for debugging. It is
154+
expected that the client sets the same ``trace_id`` for all
155+
the batches in the same operation, so that it is possible to
156+
tie together the logs to all the batches in the same
157+
operation. This is expected, but not required, to be
158+
globally unique.
140159
"""
141160

142161
parent: str = proto.Field(
@@ -150,6 +169,10 @@ class BatchDeleteMetastorePartitionsRequest(proto.Message):
150169
number=2,
151170
message=partition.MetastorePartitionValues,
152171
)
172+
trace_id: str = proto.Field(
173+
proto.STRING,
174+
number=4,
175+
)
153176

154177

155178
class UpdateMetastorePartitionRequest(proto.Message):
@@ -187,6 +210,13 @@ class BatchUpdateMetastorePartitionsRequest(proto.Message):
187210
requests (MutableSequence[google.cloud.bigquery_storage_v1alpha.types.UpdateMetastorePartitionRequest]):
188211
Required. Requests to update metastore
189212
partitions in the table.
213+
trace_id (str):
214+
Optional. Optional trace id to be used for debugging. It is
215+
expected that the client sets the same ``trace_id`` for all
216+
the batches in the same operation, so that it is possible to
217+
tie together the logs to all the batches in the same
218+
operation. This is expected, but not required, to be
219+
globally unique.
190220
"""
191221

192222
parent: str = proto.Field(
@@ -198,6 +228,10 @@ class BatchUpdateMetastorePartitionsRequest(proto.Message):
198228
number=2,
199229
message="UpdateMetastorePartitionRequest",
200230
)
231+
trace_id: str = proto.Field(
232+
proto.STRING,
233+
number=4,
234+
)
201235

202236

203237
class BatchUpdateMetastorePartitionsResponse(proto.Message):
@@ -206,7 +240,8 @@ class BatchUpdateMetastorePartitionsResponse(proto.Message):
206240
Attributes:
207241
partitions (MutableSequence[google.cloud.bigquery_storage_v1alpha.types.MetastorePartition]):
208242
The list of metastore partitions that have
209-
been updated.
243+
been updated. A maximum of 900 partitions can be
244+
updated in a batch.
210245
"""
211246

212247
partitions: MutableSequence[partition.MetastorePartition] = proto.RepeatedField(
@@ -234,6 +269,13 @@ class ListMetastorePartitionsRequest(proto.Message):
234269
DATE)" "nullable_field is not NULL" "st_equals(geo_field,
235270
st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0
236271
AND 5.0" Restricted to a maximum length for 1 MB.
272+
trace_id (str):
273+
Optional. Optional trace id to be used for debugging. It is
274+
expected that the client sets the same ``trace_id`` for all
275+
the batches in the same operation, so that it is possible to
276+
tie together the logs to all the batches in the same
277+
operation. Limited to 256 characters. This is expected, but
278+
not required, to be globally unique.
237279
"""
238280

239281
parent: str = proto.Field(
@@ -244,6 +286,10 @@ class ListMetastorePartitionsRequest(proto.Message):
244286
proto.STRING,
245287
number=2,
246288
)
289+
trace_id: str = proto.Field(
290+
proto.STRING,
291+
number=3,
292+
)
247293

248294

249295
class ListMetastorePartitionsResponse(proto.Message):

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
6969
f"Sending request for {client_call_details.method}",
7070
extra={
7171
"serviceName": "google.cloud.bigquery.storage.v1beta2.BigQueryRead",
72-
"rpcName": client_call_details.method,
72+
"rpcName": str(client_call_details.method),
7373
"request": grpc_request,
7474
"metadata": grpc_request["metadata"],
7575
},
7676
)
77-
7877
response = continuation(client_call_details, request)
7978
if logging_enabled: # pragma: NO COVER
8079
response_metadata = response.trailing_metadata()

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2/services/big_query_write/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
6969
f"Sending request for {client_call_details.method}",
7070
extra={
7171
"serviceName": "google.cloud.bigquery.storage.v1beta2.BigQueryWrite",
72-
"rpcName": client_call_details.method,
72+
"rpcName": str(client_call_details.method),
7373
"request": grpc_request,
7474
"metadata": grpc_request["metadata"],
7575
},
7676
)
77-
7877
response = continuation(client_call_details, request)
7978
if logging_enabled: # pragma: NO COVER
8079
response_metadata = response.trailing_metadata()

packages/google-cloud-bigquery-storage/samples/generated_samples/snippet_metadata_google.cloud.bigquery.storage.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-bigquery-storage",
11-
"version": "2.30.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)