Skip to content

Commit bca52d5

Browse files
1 parent 7bfa2bb commit bca52d5

File tree

213 files changed

+48
-45013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+48
-45013
lines changed

Diff for: β€Žgoogle/cloud/bigquery_storage_v1/types/storage.py

+40
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ class AppendRowsRequest(proto.Message):
389389
size. Requests larger than this return an error, typically
390390
``INVALID_ARGUMENT``.
391391
392+
This message has `oneof`_ fields (mutually exclusive fields).
393+
For each oneof, at most one member field can be set at the same time.
394+
Setting any member of the oneof automatically clears all other
395+
members.
392396
393397
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
394398
@@ -436,6 +440,11 @@ class AppendRowsRequest(proto.Message):
436440
proto_rows (google.cloud.bigquery_storage_v1.types.AppendRowsRequest.ProtoData):
437441
Rows in proto format.
438442
443+
This field is a member of `oneof`_ ``rows``.
444+
arrow_rows (google.cloud.bigquery_storage_v1.types.AppendRowsRequest.ArrowData):
445+
Rows in arrow format. This is an experimental
446+
feature only selected for allowlisted customers.
447+
439448
This field is a member of `oneof`_ ``rows``.
440449
trace_id (str):
441450
Id set by client to annotate its identity.
@@ -496,6 +505,31 @@ class MissingValueInterpretation(proto.Enum):
496505
NULL_VALUE = 1
497506
DEFAULT_VALUE = 2
498507

508+
class ArrowData(proto.Message):
509+
r"""Arrow schema and data.
510+
Arrow format is an experimental feature only selected for
511+
allowlisted customers.
512+
513+
Attributes:
514+
writer_schema (google.cloud.bigquery_storage_v1.types.ArrowSchema):
515+
Optional. Arrow Schema used to serialize the
516+
data.
517+
rows (google.cloud.bigquery_storage_v1.types.ArrowRecordBatch):
518+
Required. Serialized row data in Arrow
519+
format.
520+
"""
521+
522+
writer_schema: arrow.ArrowSchema = proto.Field(
523+
proto.MESSAGE,
524+
number=1,
525+
message=arrow.ArrowSchema,
526+
)
527+
rows: arrow.ArrowRecordBatch = proto.Field(
528+
proto.MESSAGE,
529+
number=2,
530+
message=arrow.ArrowRecordBatch,
531+
)
532+
499533
class ProtoData(proto.Message):
500534
r"""ProtoData contains the data rows and schema when constructing
501535
append requests.
@@ -544,6 +578,12 @@ class ProtoData(proto.Message):
544578
oneof="rows",
545579
message=ProtoData,
546580
)
581+
arrow_rows: ArrowData = proto.Field(
582+
proto.MESSAGE,
583+
number=5,
584+
oneof="rows",
585+
message=ArrowData,
586+
)
547587
trace_id: str = proto.Field(
548588
proto.STRING,
549589
number=6,

Diff for: β€Žowl-bot-staging/v1/.coveragerc

-13
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/.flake8

-33
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/MANIFEST.in

-2
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/README.rst

-49
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/docs/_static/custom.css

-3
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/docs/bigquery_storage_v1/big_query_read.rst

-6
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/docs/bigquery_storage_v1/big_query_write.rst

-6
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/docs/bigquery_storage_v1/services_.rst

-7
This file was deleted.

Diff for: β€Žowl-bot-staging/v1/docs/bigquery_storage_v1/types_.rst

-6
This file was deleted.

0 commit comments

Comments
Β (0)