Skip to content

Commit

Permalink
feat: add ResourceExhausted to retryable error for Write API unary ca…
Browse files Browse the repository at this point in the history
…lls (#6422)

docs: add multiplexing documentation
PiperOrigin-RevId: 545839491
Source-Link: googleapis/googleapis@2b006af
Source-Link: googleapis/googleapis-gen@0d52d38
Copy-Tag: eyJwIjoiQmlnUXVlcnlTdG9yYWdlLy5Pd2xCb3QueWFtbCIsImgiOiIwZDUyZDM4NWJkNGU3OGM3YjJjODM3NTUwMTNmZTEwM2U4MDRjMzg0In0=
  • Loading branch information
gcf-owl-bot[bot] authored Jul 6, 2023
1 parent d59ca76 commit debf9c4
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 62 deletions.
30 changes: 25 additions & 5 deletions BigQueryStorage/samples/V1/BigQueryWriteClient/append_rows.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,38 @@
* finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
* committed via the `BatchCommitWriteStreams` rpc.
*
* @param string $formattedWriteStream The write_stream identifies the target of the append operation,
* and only needs to be specified as part of the first request on the gRPC
* connection. If provided for subsequent requests, it must match the value of
* the first request.
* @param string $formattedWriteStream The write_stream identifies the append operation. It must be
* provided in the following scenarios:
*
* * In the first request to an AppendRows connection.
*
* * In all subsequent requests to an AppendRows connection, if you use the
* same connection to write to multiple tables or change the input schema for
* default streams.
*
* For explicitly created write streams, the format is:
*
* * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}`
*
* For the special default stream, the format is:
*
* * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`. Please see
* * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
*
* An example of a possible sequence of requests with write_stream fields
* within a single connection:
*
* * r1: {write_stream: stream_name_1}
*
* * r2: {write_stream: /*omit*/}
*
* * r3: {write_stream: /*omit*/}
*
* * r4: {write_stream: stream_name_2}
*
* * r5: {write_stream: stream_name_2}
*
* The destination changed in request_4, so the write_stream field must be
* populated in all subsequent requests in this stream. Please see
* {@see BigQueryWriteClient::writeStreamName()} for help formatting this field.
*/
function append_rows_sample(string $formattedWriteStream): void
Expand Down
113 changes: 89 additions & 24 deletions BigQueryStorage/src/V1/AppendRowsRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 20 additions & 12 deletions BigQueryStorage/src/V1/AppendRowsRequest/ProtoData.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit debf9c4

Please sign in to comment.