GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: improve documentation for write client (#403) · googleapis/google-cloud-python@770da17

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1
    • services/big_query_write
      • async_client.py
      • client.py
      • transports
        • grpc.py
        • grpc_asyncio.py
    • types
      • storage.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/async_client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/async_client.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,13 @@ def append_rows(
381381
rpc), and the stream is explicitly committed via the
382382
``BatchCommitWriteStreams`` rpc.
383383
384+
Note: For users coding against the gRPC api directly, it may be
385+
necessary to supply the x-goog-request-params system parameter
386+
with ``write_stream=<full_write_stream_name>``.
387+
388+
More information about system parameters:
389+
https://cloud.google.com/apis/docs/system-parameters
390+
384391
385392
.. code-block:: python
386393
Collapse file

‎packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/client.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,13 @@ def append_rows(
570570
rpc), and the stream is explicitly committed via the
571571
``BatchCommitWriteStreams`` rpc.
572572
573+
Note: For users coding against the gRPC api directly, it may be
574+
necessary to supply the x-goog-request-params system parameter
575+
with ``write_stream=<full_write_stream_name>``.
576+
577+
More information about system parameters:
578+
https://cloud.google.com/apis/docs/system-parameters
579+
573580
574581
.. code-block:: python
575582
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/transports/grpc.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,13 @@ def append_rows(
305305
rpc), and the stream is explicitly committed via the
306306
``BatchCommitWriteStreams`` rpc.
307307
308+
Note: For users coding against the gRPC api directly, it may be
309+
necessary to supply the x-goog-request-params system parameter
310+
with ``write_stream=<full_write_stream_name>``.
311+
312+
More information about system parameters:
313+
https://cloud.google.com/apis/docs/system-parameters
314+
308315
Returns:
309316
Callable[[~.AppendRowsRequest],
310317
~.AppendRowsResponse]:
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/services/big_query_write/transports/grpc_asyncio.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,13 @@ def append_rows(
307307
rpc), and the stream is explicitly committed via the
308308
``BatchCommitWriteStreams`` rpc.
309309
310+
Note: For users coding against the gRPC api directly, it may be
311+
necessary to supply the x-goog-request-params system parameter
312+
with ``write_stream=<full_write_stream_name>``.
313+
314+
More information about system parameters:
315+
https://cloud.google.com/apis/docs/system-parameters
316+
310317
Returns:
311318
Callable[[~.AppendRowsRequest],
312319
Awaitable[~.AppendRowsResponse]]:
Collapse file

‎packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/types/storage.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/types/storage.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,12 @@ class AppendRowsRequest(proto.Message):
280280
request.
281281
282282
For explicitly created write streams, the format is:
283-
``projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}``
283+
284+
- ``projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}``
284285
285286
For the special default stream, the format is:
286-
``projects/{project}/datasets/{dataset}/tables/{table}/_default``.
287+
288+
- ``projects/{project}/datasets/{dataset}/tables/{table}/streams/_default``.
287289
offset (google.protobuf.wrappers_pb2.Int64Value):
288290
If present, the write is only performed if the next append
289291
offset is same as the provided value. If not present, the
@@ -529,6 +531,8 @@ class StorageErrorCode(proto.Enum):
529531
INVALID_STREAM_STATE = 5
530532
STREAM_FINALIZED = 6
531533
SCHEMA_MISMATCH_EXTRA_FIELDS = 7
534+
OFFSET_ALREADY_EXISTS = 8
535+
OFFSET_OUT_OF_RANGE = 9
532536

533537
code = proto.Field(proto.ENUM, number=1, enum=StorageErrorCode,)
534538
entity = proto.Field(proto.STRING, number=2,)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.