google-cloud-bigtable 2.30.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google/cloud/bigtable/__init__.py +25 -0
- google/cloud/bigtable/app_profile.py +377 -0
- google/cloud/bigtable/backup.py +490 -0
- google/cloud/bigtable/batcher.py +414 -0
- google/cloud/bigtable/client.py +475 -0
- google/cloud/bigtable/cluster.py +541 -0
- google/cloud/bigtable/column_family.py +362 -0
- google/cloud/bigtable/data/__init__.py +103 -0
- google/cloud/bigtable/data/_async/__init__.py +25 -0
- google/cloud/bigtable/data/_async/_mutate_rows.py +226 -0
- google/cloud/bigtable/data/_async/_read_rows.py +363 -0
- google/cloud/bigtable/data/_async/client.py +1522 -0
- google/cloud/bigtable/data/_async/mutations_batcher.py +534 -0
- google/cloud/bigtable/data/_cross_sync/__init__.py +20 -0
- google/cloud/bigtable/data/_cross_sync/_decorators.py +441 -0
- google/cloud/bigtable/data/_cross_sync/_mapping_meta.py +64 -0
- google/cloud/bigtable/data/_cross_sync/cross_sync.py +334 -0
- google/cloud/bigtable/data/_helpers.py +249 -0
- google/cloud/bigtable/data/_sync_autogen/_mutate_rows.py +182 -0
- google/cloud/bigtable/data/_sync_autogen/_read_rows.py +304 -0
- google/cloud/bigtable/data/_sync_autogen/client.py +1293 -0
- google/cloud/bigtable/data/_sync_autogen/mutations_batcher.py +449 -0
- google/cloud/bigtable/data/exceptions.py +340 -0
- google/cloud/bigtable/data/execute_query/__init__.py +43 -0
- google/cloud/bigtable/data/execute_query/_async/__init__.py +13 -0
- google/cloud/bigtable/data/execute_query/_async/execute_query_iterator.py +291 -0
- google/cloud/bigtable/data/execute_query/_byte_cursor.py +123 -0
- google/cloud/bigtable/data/execute_query/_checksum.py +43 -0
- google/cloud/bigtable/data/execute_query/_parameters_formatting.py +155 -0
- google/cloud/bigtable/data/execute_query/_query_result_parsing_utils.py +134 -0
- google/cloud/bigtable/data/execute_query/_reader.py +122 -0
- google/cloud/bigtable/data/execute_query/_sync_autogen/execute_query_iterator.py +239 -0
- google/cloud/bigtable/data/execute_query/metadata.py +399 -0
- google/cloud/bigtable/data/execute_query/values.py +123 -0
- google/cloud/bigtable/data/mutations.py +380 -0
- google/cloud/bigtable/data/read_modify_write_rules.py +112 -0
- google/cloud/bigtable/data/read_rows_query.py +536 -0
- google/cloud/bigtable/data/row.py +535 -0
- google/cloud/bigtable/data/row_filters.py +968 -0
- google/cloud/bigtable/encryption_info.py +64 -0
- google/cloud/bigtable/enums.py +223 -0
- google/cloud/bigtable/error.py +64 -0
- google/cloud/bigtable/gapic_version.py +16 -0
- google/cloud/bigtable/helpers.py +31 -0
- google/cloud/bigtable/instance.py +789 -0
- google/cloud/bigtable/policy.py +255 -0
- google/cloud/bigtable/row.py +1267 -0
- google/cloud/bigtable/row_data.py +380 -0
- google/cloud/bigtable/row_filters.py +838 -0
- google/cloud/bigtable/row_merger.py +250 -0
- google/cloud/bigtable/row_set.py +213 -0
- google/cloud/bigtable/table.py +1409 -0
- google/cloud/bigtable_admin/__init__.py +410 -0
- google/cloud/bigtable_admin/gapic_version.py +16 -0
- google/cloud/bigtable_admin/py.typed +2 -0
- google/cloud/bigtable_admin_v2/__init__.py +250 -0
- google/cloud/bigtable_admin_v2/gapic_metadata.json +962 -0
- google/cloud/bigtable_admin_v2/gapic_version.py +16 -0
- google/cloud/bigtable_admin_v2/py.typed +2 -0
- google/cloud/bigtable_admin_v2/services/__init__.py +15 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/__init__.py +22 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py +3465 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py +3944 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/pagers.py +681 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/__init__.py +40 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py +751 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py +1249 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py +1579 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest.py +6820 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest_base.py +1746 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/__init__.py +22 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py +3472 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py +3949 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/pagers.py +669 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/__init__.py +40 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/base.py +708 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc.py +1257 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc_asyncio.py +1549 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest.py +6609 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest_base.py +1714 -0
- google/cloud/bigtable_admin_v2/types/__init__.py +248 -0
- google/cloud/bigtable_admin_v2/types/bigtable_instance_admin.py +1364 -0
- google/cloud/bigtable_admin_v2/types/bigtable_table_admin.py +1715 -0
- google/cloud/bigtable_admin_v2/types/common.py +81 -0
- google/cloud/bigtable_admin_v2/types/instance.py +819 -0
- google/cloud/bigtable_admin_v2/types/table.py +1028 -0
- google/cloud/bigtable_admin_v2/types/types.py +776 -0
- google/cloud/bigtable_v2/__init__.py +136 -0
- google/cloud/bigtable_v2/gapic_metadata.json +193 -0
- google/cloud/bigtable_v2/gapic_version.py +16 -0
- google/cloud/bigtable_v2/py.typed +2 -0
- google/cloud/bigtable_v2/services/__init__.py +15 -0
- google/cloud/bigtable_v2/services/bigtable/__init__.py +22 -0
- google/cloud/bigtable_v2/services/bigtable/async_client.py +1741 -0
- google/cloud/bigtable_v2/services/bigtable/client.py +2194 -0
- google/cloud/bigtable_v2/services/bigtable/transports/__init__.py +38 -0
- google/cloud/bigtable_v2/services/bigtable/transports/base.py +343 -0
- google/cloud/bigtable_v2/services/bigtable/transports/grpc.py +660 -0
- google/cloud/bigtable_v2/services/bigtable/transports/grpc_asyncio.py +762 -0
- google/cloud/bigtable_v2/services/bigtable/transports/rest.py +2489 -0
- google/cloud/bigtable_v2/services/bigtable/transports/rest_base.py +711 -0
- google/cloud/bigtable_v2/types/__init__.py +138 -0
- google/cloud/bigtable_v2/types/bigtable.py +1531 -0
- google/cloud/bigtable_v2/types/data.py +1612 -0
- google/cloud/bigtable_v2/types/feature_flags.py +119 -0
- google/cloud/bigtable_v2/types/request_stats.py +171 -0
- google/cloud/bigtable_v2/types/response_params.py +64 -0
- google/cloud/bigtable_v2/types/types.py +579 -0
- google_cloud_bigtable-2.30.0.data/scripts/fixup_bigtable_admin_v2_keywords.py +233 -0
- google_cloud_bigtable-2.30.0.data/scripts/fixup_bigtable_v2_keywords.py +186 -0
- google_cloud_bigtable-2.30.0.dist-info/LICENSE +202 -0
- google_cloud_bigtable-2.30.0.dist-info/METADATA +154 -0
- google_cloud_bigtable-2.30.0.dist-info/RECORD +115 -0
- google_cloud_bigtable-2.30.0.dist-info/WHEEL +5 -0
- google_cloud_bigtable-2.30.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
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
|
+
# 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
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from typing import MutableMapping, MutableSequence
|
|
19
|
+
|
|
20
|
+
import proto # type: ignore
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
__protobuf__ = proto.module(
|
|
24
|
+
package="google.bigtable.v2",
|
|
25
|
+
manifest={
|
|
26
|
+
"FeatureFlags",
|
|
27
|
+
},
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class FeatureFlags(proto.Message):
|
|
32
|
+
r"""Feature flags supported or enabled by a client. This is intended to
|
|
33
|
+
be sent as part of request metadata to assure the server that
|
|
34
|
+
certain behaviors are safe to enable. This proto is meant to be
|
|
35
|
+
serialized and websafe-base64 encoded under the
|
|
36
|
+
``bigtable-features`` metadata key. The value will remain constant
|
|
37
|
+
for the lifetime of a client and due to HTTP2's HPACK compression,
|
|
38
|
+
the request overhead will be tiny. This is an internal
|
|
39
|
+
implementation detail and should not be used by end users directly.
|
|
40
|
+
|
|
41
|
+
Attributes:
|
|
42
|
+
reverse_scans (bool):
|
|
43
|
+
Notify the server that the client supports
|
|
44
|
+
reverse scans. The server will reject
|
|
45
|
+
ReadRowsRequests with the reverse bit set when
|
|
46
|
+
this is absent.
|
|
47
|
+
mutate_rows_rate_limit (bool):
|
|
48
|
+
Notify the server that the client enables
|
|
49
|
+
batch write flow control by requesting
|
|
50
|
+
RateLimitInfo from MutateRowsResponse. Due to
|
|
51
|
+
technical reasons, this disables partial
|
|
52
|
+
retries.
|
|
53
|
+
mutate_rows_rate_limit2 (bool):
|
|
54
|
+
Notify the server that the client enables
|
|
55
|
+
batch write flow control by requesting
|
|
56
|
+
RateLimitInfo from MutateRowsResponse. With
|
|
57
|
+
partial retries enabled.
|
|
58
|
+
last_scanned_row_responses (bool):
|
|
59
|
+
Notify the server that the client supports the
|
|
60
|
+
last_scanned_row field in ReadRowsResponse for long-running
|
|
61
|
+
scans.
|
|
62
|
+
routing_cookie (bool):
|
|
63
|
+
Notify the server that the client supports
|
|
64
|
+
using encoded routing cookie strings to retry
|
|
65
|
+
requests with.
|
|
66
|
+
retry_info (bool):
|
|
67
|
+
Notify the server that the client supports
|
|
68
|
+
using retry info back off durations to retry
|
|
69
|
+
requests with.
|
|
70
|
+
client_side_metrics_enabled (bool):
|
|
71
|
+
Notify the server that the client has client
|
|
72
|
+
side metrics enabled.
|
|
73
|
+
traffic_director_enabled (bool):
|
|
74
|
+
Notify the server that the client using
|
|
75
|
+
Traffic Director endpoint.
|
|
76
|
+
direct_access_requested (bool):
|
|
77
|
+
Notify the server that the client explicitly
|
|
78
|
+
opted in for Direct Access.
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
reverse_scans: bool = proto.Field(
|
|
82
|
+
proto.BOOL,
|
|
83
|
+
number=1,
|
|
84
|
+
)
|
|
85
|
+
mutate_rows_rate_limit: bool = proto.Field(
|
|
86
|
+
proto.BOOL,
|
|
87
|
+
number=3,
|
|
88
|
+
)
|
|
89
|
+
mutate_rows_rate_limit2: bool = proto.Field(
|
|
90
|
+
proto.BOOL,
|
|
91
|
+
number=5,
|
|
92
|
+
)
|
|
93
|
+
last_scanned_row_responses: bool = proto.Field(
|
|
94
|
+
proto.BOOL,
|
|
95
|
+
number=4,
|
|
96
|
+
)
|
|
97
|
+
routing_cookie: bool = proto.Field(
|
|
98
|
+
proto.BOOL,
|
|
99
|
+
number=6,
|
|
100
|
+
)
|
|
101
|
+
retry_info: bool = proto.Field(
|
|
102
|
+
proto.BOOL,
|
|
103
|
+
number=7,
|
|
104
|
+
)
|
|
105
|
+
client_side_metrics_enabled: bool = proto.Field(
|
|
106
|
+
proto.BOOL,
|
|
107
|
+
number=8,
|
|
108
|
+
)
|
|
109
|
+
traffic_director_enabled: bool = proto.Field(
|
|
110
|
+
proto.BOOL,
|
|
111
|
+
number=9,
|
|
112
|
+
)
|
|
113
|
+
direct_access_requested: bool = proto.Field(
|
|
114
|
+
proto.BOOL,
|
|
115
|
+
number=10,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
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
|
+
# 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
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from typing import MutableMapping, MutableSequence
|
|
19
|
+
|
|
20
|
+
import proto # type: ignore
|
|
21
|
+
|
|
22
|
+
from google.protobuf import duration_pb2 # type: ignore
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
__protobuf__ = proto.module(
|
|
26
|
+
package="google.bigtable.v2",
|
|
27
|
+
manifest={
|
|
28
|
+
"ReadIterationStats",
|
|
29
|
+
"RequestLatencyStats",
|
|
30
|
+
"FullReadStatsView",
|
|
31
|
+
"RequestStats",
|
|
32
|
+
},
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class ReadIterationStats(proto.Message):
|
|
37
|
+
r"""ReadIterationStats captures information about the iteration
|
|
38
|
+
of rows or cells over the course of a read, e.g. how many
|
|
39
|
+
results were scanned in a read operation versus the results
|
|
40
|
+
returned.
|
|
41
|
+
|
|
42
|
+
Attributes:
|
|
43
|
+
rows_seen_count (int):
|
|
44
|
+
The rows seen (scanned) as part of the
|
|
45
|
+
request. This includes the count of rows
|
|
46
|
+
returned, as captured below.
|
|
47
|
+
rows_returned_count (int):
|
|
48
|
+
The rows returned as part of the request.
|
|
49
|
+
cells_seen_count (int):
|
|
50
|
+
The cells seen (scanned) as part of the
|
|
51
|
+
request. This includes the count of cells
|
|
52
|
+
returned, as captured below.
|
|
53
|
+
cells_returned_count (int):
|
|
54
|
+
The cells returned as part of the request.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
rows_seen_count: int = proto.Field(
|
|
58
|
+
proto.INT64,
|
|
59
|
+
number=1,
|
|
60
|
+
)
|
|
61
|
+
rows_returned_count: int = proto.Field(
|
|
62
|
+
proto.INT64,
|
|
63
|
+
number=2,
|
|
64
|
+
)
|
|
65
|
+
cells_seen_count: int = proto.Field(
|
|
66
|
+
proto.INT64,
|
|
67
|
+
number=3,
|
|
68
|
+
)
|
|
69
|
+
cells_returned_count: int = proto.Field(
|
|
70
|
+
proto.INT64,
|
|
71
|
+
number=4,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class RequestLatencyStats(proto.Message):
|
|
76
|
+
r"""RequestLatencyStats provides a measurement of the latency of
|
|
77
|
+
the request as it interacts with different systems over its
|
|
78
|
+
lifetime, e.g. how long the request took to execute within a
|
|
79
|
+
frontend server.
|
|
80
|
+
|
|
81
|
+
Attributes:
|
|
82
|
+
frontend_server_latency (google.protobuf.duration_pb2.Duration):
|
|
83
|
+
The latency measured by the frontend server
|
|
84
|
+
handling this request, from when the request was
|
|
85
|
+
received, to when this value is sent back in the
|
|
86
|
+
response. For more context on the component that
|
|
87
|
+
is measuring this latency, see:
|
|
88
|
+
https://cloud.google.com/bigtable/docs/overview
|
|
89
|
+
|
|
90
|
+
Note: This value may be slightly shorter than
|
|
91
|
+
the value reported into aggregate latency
|
|
92
|
+
metrics in Monitoring for this request
|
|
93
|
+
(https://cloud.google.com/bigtable/docs/monitoring-instance)
|
|
94
|
+
as this value needs to be sent in the response
|
|
95
|
+
before the latency measurement including that
|
|
96
|
+
transmission is finalized.
|
|
97
|
+
|
|
98
|
+
Note: This value includes the end-to-end latency
|
|
99
|
+
of contacting nodes in the targeted cluster,
|
|
100
|
+
e.g. measuring from when the first byte arrives
|
|
101
|
+
at the frontend server, to when this value is
|
|
102
|
+
sent back as the last value in the response,
|
|
103
|
+
including any latency incurred by contacting
|
|
104
|
+
nodes, waiting for results from nodes, and
|
|
105
|
+
finally sending results from nodes back to the
|
|
106
|
+
caller.
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
frontend_server_latency: duration_pb2.Duration = proto.Field(
|
|
110
|
+
proto.MESSAGE,
|
|
111
|
+
number=1,
|
|
112
|
+
message=duration_pb2.Duration,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class FullReadStatsView(proto.Message):
|
|
117
|
+
r"""FullReadStatsView captures all known information about a
|
|
118
|
+
read.
|
|
119
|
+
|
|
120
|
+
Attributes:
|
|
121
|
+
read_iteration_stats (google.cloud.bigtable_v2.types.ReadIterationStats):
|
|
122
|
+
Iteration stats describe how efficient the
|
|
123
|
+
read is, e.g. comparing rows seen vs. rows
|
|
124
|
+
returned or cells seen vs cells returned can
|
|
125
|
+
provide an indication of read efficiency (the
|
|
126
|
+
higher the ratio of seen to retuned the better).
|
|
127
|
+
request_latency_stats (google.cloud.bigtable_v2.types.RequestLatencyStats):
|
|
128
|
+
Request latency stats describe the time taken
|
|
129
|
+
to complete a request, from the server side.
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
read_iteration_stats: "ReadIterationStats" = proto.Field(
|
|
133
|
+
proto.MESSAGE,
|
|
134
|
+
number=1,
|
|
135
|
+
message="ReadIterationStats",
|
|
136
|
+
)
|
|
137
|
+
request_latency_stats: "RequestLatencyStats" = proto.Field(
|
|
138
|
+
proto.MESSAGE,
|
|
139
|
+
number=2,
|
|
140
|
+
message="RequestLatencyStats",
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class RequestStats(proto.Message):
|
|
145
|
+
r"""RequestStats is the container for additional information pertaining
|
|
146
|
+
to a single request, helpful for evaluating the performance of the
|
|
147
|
+
sent request. Currently, there are the following supported methods:
|
|
148
|
+
|
|
149
|
+
- google.bigtable.v2.ReadRows
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
153
|
+
|
|
154
|
+
Attributes:
|
|
155
|
+
full_read_stats_view (google.cloud.bigtable_v2.types.FullReadStatsView):
|
|
156
|
+
Available with the
|
|
157
|
+
ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL view,
|
|
158
|
+
see package google.bigtable.v2.
|
|
159
|
+
|
|
160
|
+
This field is a member of `oneof`_ ``stats_view``.
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
full_read_stats_view: "FullReadStatsView" = proto.Field(
|
|
164
|
+
proto.MESSAGE,
|
|
165
|
+
number=1,
|
|
166
|
+
oneof="stats_view",
|
|
167
|
+
message="FullReadStatsView",
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
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
|
+
# 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
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from typing import MutableMapping, MutableSequence
|
|
19
|
+
|
|
20
|
+
import proto # type: ignore
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
__protobuf__ = proto.module(
|
|
24
|
+
package="google.bigtable.v2",
|
|
25
|
+
manifest={
|
|
26
|
+
"ResponseParams",
|
|
27
|
+
},
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ResponseParams(proto.Message):
|
|
32
|
+
r"""Response metadata proto This is an experimental feature that will be
|
|
33
|
+
used to get zone_id and cluster_id from response trailers to tag the
|
|
34
|
+
metrics. This should not be used by customers directly
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
zone_id (str):
|
|
41
|
+
The cloud bigtable zone associated with the
|
|
42
|
+
cluster.
|
|
43
|
+
|
|
44
|
+
This field is a member of `oneof`_ ``_zone_id``.
|
|
45
|
+
cluster_id (str):
|
|
46
|
+
Identifier for a cluster that represents set
|
|
47
|
+
of bigtable resources.
|
|
48
|
+
|
|
49
|
+
This field is a member of `oneof`_ ``_cluster_id``.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
zone_id: str = proto.Field(
|
|
53
|
+
proto.STRING,
|
|
54
|
+
number=1,
|
|
55
|
+
optional=True,
|
|
56
|
+
)
|
|
57
|
+
cluster_id: str = proto.Field(
|
|
58
|
+
proto.STRING,
|
|
59
|
+
number=2,
|
|
60
|
+
optional=True,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|