@@ -343,3 +343,90 @@ replacements:
343343 after : |
344344 __version__ = package_version.__version__
345345 count : 2
346+ # Given that this file is mostly handwritten, we could omit the file completely when we migrate to librarian
347+ # See `preserve_regex` in https://github.com/googleapis/librarian/blob/main/doc/language-onboarding.md#generate
348+ - paths : [
349+ packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2/__init__.py,
350+ ]
351+ before : |
352+ __version__ = package_version.__version__\n\n
353+ from .services.big_query_read import BigQueryReadAsyncClient, BigQueryReadClient
354+ from .services.big_query_write import BigQueryWriteAsyncClient, BigQueryWriteClient
355+ from .types.arrow import ArrowRecordBatch, ArrowSchema, ArrowSerializationOptions
356+ from .types.avro import AvroRows, AvroSchema
357+ from .types.protobuf import ProtoRows, ProtoSchema
358+ from .types.storage import \(
359+ AppendRowsRequest,
360+ AppendRowsResponse,
361+ BatchCommitWriteStreamsRequest,
362+ BatchCommitWriteStreamsResponse,
363+ CreateReadSessionRequest,
364+ CreateWriteStreamRequest,
365+ FinalizeWriteStreamRequest,
366+ FinalizeWriteStreamResponse,
367+ FlushRowsRequest,
368+ FlushRowsResponse,
369+ GetWriteStreamRequest,
370+ ReadRowsRequest,
371+ ReadRowsResponse,
372+ SplitReadStreamRequest,
373+ SplitReadStreamResponse,
374+ StorageError,
375+ StreamStats,
376+ ThrottleState,
377+ \)
378+ from .types.stream import DataFormat, ReadSession, ReadStream, WriteStream
379+ from .types.table import TableFieldSchema, TableSchema\n
380+ __all__ = \(
381+ "BigQueryReadAsyncClient",
382+ "BigQueryWriteAsyncClient",
383+ "AppendRowsRequest",
384+ "AppendRowsResponse",
385+ "ArrowRecordBatch",
386+ "ArrowSchema",
387+ "ArrowSerializationOptions",
388+ "AvroRows",
389+ "AvroSchema",
390+ "BatchCommitWriteStreamsRequest",
391+ "BatchCommitWriteStreamsResponse",
392+ "BigQueryReadClient",
393+ "BigQueryWriteClient",
394+ "CreateReadSessionRequest",
395+ "CreateWriteStreamRequest",
396+ "DataFormat",
397+ "FinalizeWriteStreamRequest",
398+ "FinalizeWriteStreamResponse",
399+ "FlushRowsRequest",
400+ "FlushRowsResponse",
401+ "GetWriteStreamRequest",
402+ "ProtoRows",
403+ "ProtoSchema",
404+ "ReadRowsRequest",
405+ "ReadRowsResponse",
406+ "ReadSession",
407+ "ReadStream",
408+ "SplitReadStreamRequest",
409+ "SplitReadStreamResponse",
410+ "StorageError",
411+ "StreamStats",
412+ "TableFieldSchema",
413+ "TableSchema",
414+ "ThrottleState",
415+ "WriteStream",
416+ \)
417+ after : |
418+ __version__ = package_version.__version__\n
419+ from google.cloud.bigquery_storage_v1beta2 import client, types\n\n
420+ class BigQueryReadClient(client.BigQueryReadClient):
421+ __doc__ = client.BigQueryReadClient.__doc__\n\n
422+ class BigQueryWriteClient(client.BigQueryWriteClient):
423+ __doc__ = client.BigQueryWriteClient.__doc__\n\n
424+ __all__ = (
425+ # google.cloud.bigquery_storage_v1beta2
426+ "__version__",
427+ "types",
428+ # google.cloud.bigquery_storage_v1beta2.client
429+ "BigQueryReadClient",
430+ "BigQueryWriteClient",
431+ )
432+ count : 1
0 commit comments