diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py index 0402a96c05d5..608efd7f9950 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py @@ -16,6 +16,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.cloud.bigquery_storage_v1beta1.proto import ( avro_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2, ) @@ -41,6 +42,7 @@ ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2.DESCRIPTOR, google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2.DESCRIPTOR, google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2.DESCRIPTOR, diff --git a/bigquery_storage/setup.py b/bigquery_storage/setup.py index a36bcdcaeb85..f5cf6d5e94ed 100644 --- a/bigquery_storage/setup.py +++ b/bigquery_storage/setup.py @@ -25,6 +25,7 @@ release_status = 'Development Status :: 3 - Alpha' dependencies = [ 'google-api-core[grpc] >= 1.6.0, < 2.0.0dev', + 'googleapis-common-protos >= 1.5.9, < 2.0.0dev', 'enum34; python_version < "3.4"', ] extras = { diff --git a/bigquery_storage/synth.metadata b/bigquery_storage/synth.metadata index 2167ef7b8eb5..0938444a05c0 100644 --- a/bigquery_storage/synth.metadata +++ b/bigquery_storage/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-03-25T21:54:47.957767Z", + "updateTime": "2019-03-27T17:44:10.575389Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "git@github.com:googleapis/googleapis.git", - "sha": "e80435a132c53da26f46daf0787035ee63fb942b", - "internalRef": "239938670" + "sha": "d4d57d766601105478c661132f2687e6984b92d5", + "internalRef": "240469931" } } ], diff --git a/bigquery_storage/synth.py b/bigquery_storage/synth.py index 6940e1550e8f..252e4bc53b06 100644 --- a/bigquery_storage/synth.py +++ b/bigquery_storage/synth.py @@ -42,20 +42,6 @@ ], ) -# START: Remove unnecessary dependency on google.api.resource protos. -s.replace( - ["google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py"], - "from google.api import resource_pb2 as google_dot_api_dot_resource__pb2\n", - "", -) - -s.replace( - ["google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py"], - "google_dot_api_dot_resource__pb2.DESCRIPTOR,", - "", -) -# END: Remove unnecessary dependency on google.api.resource protos. - s.replace( [ "google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py",