google-cloud-bigquery-storage-v1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed905012b34daf40390799c856e279222070606fedf9c51b345da2e15fbc4353
4
- data.tar.gz: 572eda37e8f290262dc0fabef7e83a20d63aeef3d8963aa33c6e4fee03f92a9c
3
+ metadata.gz: 9f16f932acabcf736ff195242717342d80dee16b62faa790c5d6f7ce23c40b89
4
+ data.tar.gz: 4894a0ad7424c2e7d24639c069e7bb80140b9854bc6c1b56e71f872c10072c83
5
5
  SHA512:
6
- metadata.gz: 1c191d59cd1822b686d87ab0b24f4d0be952fb254085837fcba6f553f869dee7bea3b2ab451881bb7774875152d083ce2c8d42de1f045147c6e6b3c8032eda1a
7
- data.tar.gz: 3bbf29f41727f2323e2903590243ad50916227b7bca3cb55c8ef5001947575e7addb31946965a4dad120b1faf2c9b53a6cedb3d2c63f996fc3ac5b89fcf3d2f5
6
+ metadata.gz: 13a538f360ae2a6dc9b093bb66447afdb814dd5a90b494b231e4791ea0cfcef08123e60471c2f2d798cefbe4a707665f05506b5fa0430c47a2f20329358366b3
7
+ data.tar.gz: 164b534f35f72ef96d3c5ce91de1bf4f5fc1ff0f63eee7d9eb7c50d86d4882bd4bdb58da9cc1c272b127eb936bc397dec256837f1b5c1c41b640a312ec70d3db
@@ -12,6 +12,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :serialized_record_batch, :bytes, 1
13
13
  optional :row_count, :int64, 2
14
14
  end
15
+ add_message "google.cloud.bigquery.storage.v1.ArrowSerializationOptions" do
16
+ optional :buffer_compression, :enum, 2, "google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec"
17
+ end
18
+ add_enum "google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec" do
19
+ value :COMPRESSION_UNSPECIFIED, 0
20
+ value :LZ4_FRAME, 1
21
+ end
15
22
  end
16
23
  end
17
24
 
@@ -22,6 +29,8 @@ module Google
22
29
  module V1
23
30
  ArrowSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.ArrowSchema").msgclass
24
31
  ArrowRecordBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.ArrowRecordBatch").msgclass
32
+ ArrowSerializationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.ArrowSerializationOptions").msgclass
33
+ ArrowSerializationOptions::CompressionCodec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec").enummodule
25
34
  end
26
35
  end
27
36
  end
@@ -39,6 +39,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
39
39
  optional :avro_rows, :message, 3, "google.cloud.bigquery.storage.v1.AvroRows"
40
40
  optional :arrow_record_batch, :message, 4, "google.cloud.bigquery.storage.v1.ArrowRecordBatch"
41
41
  end
42
+ oneof :schema do
43
+ optional :avro_schema, :message, 7, "google.cloud.bigquery.storage.v1.AvroSchema"
44
+ optional :arrow_schema, :message, 8, "google.cloud.bigquery.storage.v1.ArrowSchema"
45
+ end
42
46
  end
43
47
  add_message "google.cloud.bigquery.storage.v1.SplitReadStreamRequest" do
44
48
  optional :name, :string, 1
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/bigquery/storage/v1/storage.proto for package 'google.cloud.bigquery.storage.v1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2021 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/bigquery/storage/v1/storage_pb'
@@ -29,6 +29,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
29
29
  add_message "google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions" do
30
30
  repeated :selected_fields, :string, 1
31
31
  optional :row_restriction, :string, 2
32
+ oneof :output_format_serialization_options do
33
+ optional :arrow_serialization_options, :message, 3, "google.cloud.bigquery.storage.v1.ArrowSerializationOptions"
34
+ end
32
35
  end
33
36
  add_message "google.cloud.bigquery.storage.v1.ReadStream" do
34
37
  optional :name, :string, 1
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Storage
24
24
  module V1
25
- VERSION = "0.4.0"
25
+ VERSION = "0.5.0"
26
26
  end
27
27
  end
28
28
  end
@@ -47,6 +47,25 @@ module Google
47
47
  include ::Google::Protobuf::MessageExts
48
48
  extend ::Google::Protobuf::MessageExts::ClassMethods
49
49
  end
50
+
51
+ # Contains options specific to Arrow Serialization.
52
+ # @!attribute [rw] buffer_compression
53
+ # @return [::Google::Cloud::Bigquery::Storage::V1::ArrowSerializationOptions::CompressionCodec]
54
+ # The compression codec to use for Arrow buffers in serialized record
55
+ # batches.
56
+ class ArrowSerializationOptions
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+
60
+ # Compression codec's supported by Arrow.
61
+ module CompressionCodec
62
+ # If unspecified no compression will be used.
63
+ COMPRESSION_UNSPECIFIED = 0
64
+
65
+ # LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md)
66
+ LZ4_FRAME = 1
67
+ end
68
+ end
50
69
  end
51
70
  end
52
71
  end
@@ -119,6 +119,12 @@ module Google
119
119
  # @return [::Google::Cloud::Bigquery::Storage::V1::ThrottleState]
120
120
  # Throttling state. If unset, the latest response still describes
121
121
  # the current throttling status.
122
+ # @!attribute [r] avro_schema
123
+ # @return [::Google::Cloud::Bigquery::Storage::V1::AvroSchema]
124
+ # Output only. Avro schema.
125
+ # @!attribute [r] arrow_schema
126
+ # @return [::Google::Cloud::Bigquery::Storage::V1::ArrowSchema]
127
+ # Output only. Arrow schema.
122
128
  class ReadRowsResponse
123
129
  include ::Google::Protobuf::MessageExts
124
130
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -29,9 +29,10 @@ module Google
29
29
  # `projects/{project_id}/locations/{location}/sessions/{session_id}`.
30
30
  # @!attribute [r] expire_time
31
31
  # @return [::Google::Protobuf::Timestamp]
32
- # Output only. Time at which the session becomes invalid. After this time, subsequent
33
- # requests to read this Session will return errors. The expire_time is
34
- # automatically assigned and currently cannot be specified or updated.
32
+ # Output only. Time at which the session becomes invalid. After this time,
33
+ # subsequent requests to read this Session will return errors. The
34
+ # expire_time is automatically assigned and currently cannot be specified or
35
+ # updated.
35
36
  # @!attribute [rw] data_format
36
37
  # @return [::Google::Cloud::Bigquery::Storage::V1::DataFormat]
37
38
  # Immutable. Data format of the output data.
@@ -47,7 +48,8 @@ module Google
47
48
  # `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
48
49
  # @!attribute [rw] table_modifiers
49
50
  # @return [::Google::Cloud::Bigquery::Storage::V1::ReadSession::TableModifiers]
50
- # Optional. Any modifiers which are applied when reading from the specified table.
51
+ # Optional. Any modifiers which are applied when reading from the specified
52
+ # table.
51
53
  # @!attribute [rw] read_options
52
54
  # @return [::Google::Cloud::Bigquery::Storage::V1::ReadSession::TableReadOptions]
53
55
  # Optional. Read options for this session (e.g. column selection, filters).
@@ -89,6 +91,10 @@ module Google
89
91
  # "nullable_field is not NULL"
90
92
  # "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))"
91
93
  # "numeric_field BETWEEN 1.0 AND 5.0"
94
+ #
95
+ # Restricted to a maximum length for 1 MB.
96
+ # @!attribute [rw] arrow_serialization_options
97
+ # @return [::Google::Cloud::Bigquery::Storage::V1::ArrowSerializationOptions]
92
98
  class TableReadOptions
93
99
  include ::Google::Protobuf::MessageExts
94
100
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-storage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.3'
26
+ version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement