Skip to content

Commit b13b15c

Browse files
docs: Minor formatting (#476)
* docs: Minor formatting chore: Update gapic-generator-python to v1.11.5 build: Update rules_python to 0.24.0 PiperOrigin-RevId: 563436317 Source-Link: googleapis/googleapis@42fd37b Source-Link: googleapis/googleapis-gen@280264c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjgwMjY0Y2EwMmZiOTMxNmI0MjM3YTk2ZDBhZjFhMjM0M2E4MWE1NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 997a434 commit b13b15c

File tree

18 files changed

+33
-14
lines changed

18 files changed

+33
-14
lines changed

google/cloud/datastore_admin_v1/services/datastore_admin/async_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from google.cloud.datastore_admin_v1.services.datastore_admin import pagers
4848
from google.cloud.datastore_admin_v1.types import datastore_admin
4949
from google.cloud.datastore_admin_v1.types import index
50-
from google.longrunning import operations_pb2
50+
from google.longrunning import operations_pb2 # type: ignore
5151
from google.protobuf import empty_pb2 # type: ignore
5252
from .transports.base import DatastoreAdminTransport, DEFAULT_CLIENT_INFO
5353
from .transports.grpc_asyncio import DatastoreAdminGrpcAsyncIOTransport
@@ -56,13 +56,16 @@
5656

5757
class DatastoreAdminAsyncClient:
5858
"""Google Cloud Datastore Admin API
59+
5960
The Datastore Admin API provides several admin services for
6061
Cloud Datastore.
62+
6163
Concepts: Project, namespace, kind, and entity as defined in the
6264
Google Cloud Datastore API.
6365
6466
Operation: An Operation represents work being performed in the
6567
background.
68+
6669
EntityFilter: Allows specifying a subset of entities in a
6770
project. This is specified as a combination of kinds and
6871
namespaces (either or both of which may be all).

google/cloud/datastore_admin_v1/services/datastore_admin/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from google.cloud.datastore_admin_v1.services.datastore_admin import pagers
5252
from google.cloud.datastore_admin_v1.types import datastore_admin
5353
from google.cloud.datastore_admin_v1.types import index
54-
from google.longrunning import operations_pb2
54+
from google.longrunning import operations_pb2 # type: ignore
5555
from google.protobuf import empty_pb2 # type: ignore
5656
from .transports.base import DatastoreAdminTransport, DEFAULT_CLIENT_INFO
5757
from .transports.grpc import DatastoreAdminGrpcTransport
@@ -98,13 +98,16 @@ def get_transport_class(
9898

9999
class DatastoreAdminClient(metaclass=DatastoreAdminClientMeta):
100100
"""Google Cloud Datastore Admin API
101+
101102
The Datastore Admin API provides several admin services for
102103
Cloud Datastore.
104+
103105
Concepts: Project, namespace, kind, and entity as defined in the
104106
Google Cloud Datastore API.
105107
106108
Operation: An Operation represents work being performed in the
107109
background.
110+
108111
EntityFilter: Allows specifying a subset of entities in a
109112
project. This is specified as a combination of kinds and
110113
namespaces (either or both of which may be all).

google/cloud/datastore_admin_v1/services/datastore_admin/transports/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
from google.cloud.datastore_admin_v1.types import datastore_admin
3131
from google.cloud.datastore_admin_v1.types import index
32-
from google.longrunning import operations_pb2
3332
from google.longrunning import operations_pb2 # type: ignore
3433

3534
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(

google/cloud/datastore_admin_v1/services/datastore_admin/transports/grpc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
from google.cloud.datastore_admin_v1.types import datastore_admin
2929
from google.cloud.datastore_admin_v1.types import index
30-
from google.longrunning import operations_pb2
3130
from google.longrunning import operations_pb2 # type: ignore
3231
from .base import DatastoreAdminTransport, DEFAULT_CLIENT_INFO
3332

@@ -36,13 +35,16 @@ class DatastoreAdminGrpcTransport(DatastoreAdminTransport):
3635
"""gRPC backend transport for DatastoreAdmin.
3736
3837
Google Cloud Datastore Admin API
38+
3939
The Datastore Admin API provides several admin services for
4040
Cloud Datastore.
41+
4142
Concepts: Project, namespace, kind, and entity as defined in the
4243
Google Cloud Datastore API.
4344
4445
Operation: An Operation represents work being performed in the
4546
background.
47+
4648
EntityFilter: Allows specifying a subset of entities in a
4749
project. This is specified as a combination of kinds and
4850
namespaces (either or both of which may be all).

google/cloud/datastore_admin_v1/services/datastore_admin/transports/grpc_asyncio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
from google.cloud.datastore_admin_v1.types import datastore_admin
2929
from google.cloud.datastore_admin_v1.types import index
30-
from google.longrunning import operations_pb2
3130
from google.longrunning import operations_pb2 # type: ignore
3231
from .base import DatastoreAdminTransport, DEFAULT_CLIENT_INFO
3332
from .grpc import DatastoreAdminGrpcTransport
@@ -37,13 +36,16 @@ class DatastoreAdminGrpcAsyncIOTransport(DatastoreAdminTransport):
3736
"""gRPC AsyncIO backend transport for DatastoreAdmin.
3837
3938
Google Cloud Datastore Admin API
39+
4040
The Datastore Admin API provides several admin services for
4141
Cloud Datastore.
42+
4243
Concepts: Project, namespace, kind, and entity as defined in the
4344
Google Cloud Datastore API.
4445
4546
Operation: An Operation represents work being performed in the
4647
background.
48+
4749
EntityFilter: Allows specifying a subset of entities in a
4850
project. This is specified as a combination of kinds and
4951
namespaces (either or both of which may be all).

google/cloud/datastore_admin_v1/services/datastore_admin/transports/rest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
from google.protobuf import json_format
3030
from google.api_core import operations_v1
31-
from google.longrunning import operations_pb2
3231
from requests import __version__ as requests_version
3332
import dataclasses
3433
import re
@@ -363,13 +362,16 @@ class DatastoreAdminRestTransport(DatastoreAdminTransport):
363362
"""REST backend transport for DatastoreAdmin.
364363
365364
Google Cloud Datastore Admin API
365+
366366
The Datastore Admin API provides several admin services for
367367
Cloud Datastore.
368+
368369
Concepts: Project, namespace, kind, and entity as defined in the
369370
Google Cloud Datastore API.
370371
371372
Operation: An Operation represents work being performed in the
372373
background.
374+
373375
EntityFilter: Allows specifying a subset of entities in a
374376
project. This is specified as a combination of kinds and
375377
namespaces (either or both of which may be all).

google/cloud/datastore_admin_v1/types/datastore_admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ class EntityFilter(proto.Message):
429429
An empty list represents all namespaces. This
430430
is the preferred usage for projects that don't
431431
use namespaces.
432+
432433
An empty string element represents the default
433434
namespace. This should be used if the project
434435
has data in non-default namespaces, but doesn't

google/cloud/datastore_v1/services/datastore/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from google.cloud.datastore_v1.types import datastore
4747
from google.cloud.datastore_v1.types import entity
4848
from google.cloud.datastore_v1.types import query
49-
from google.longrunning import operations_pb2
49+
from google.longrunning import operations_pb2 # type: ignore
5050
from google.protobuf import timestamp_pb2 # type: ignore
5151
from .transports.base import DatastoreTransport, DEFAULT_CLIENT_INFO
5252
from .transports.grpc_asyncio import DatastoreGrpcAsyncIOTransport

google/cloud/datastore_v1/services/datastore/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
from google.cloud.datastore_v1.types import datastore
5151
from google.cloud.datastore_v1.types import entity
5252
from google.cloud.datastore_v1.types import query
53-
from google.longrunning import operations_pb2
53+
from google.longrunning import operations_pb2 # type: ignore
5454
from google.protobuf import timestamp_pb2 # type: ignore
5555
from .transports.base import DatastoreTransport, DEFAULT_CLIENT_INFO
5656
from .transports.grpc import DatastoreGrpcTransport

google/cloud/datastore_v1/services/datastore/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from google.oauth2 import service_account # type: ignore
2828

2929
from google.cloud.datastore_v1.types import datastore
30-
from google.longrunning import operations_pb2
30+
from google.longrunning import operations_pb2 # type: ignore
3131

3232
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
3333
gapic_version=package_version.__version__

google/cloud/datastore_v1/services/datastore/transports/grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import grpc # type: ignore
2626

2727
from google.cloud.datastore_v1.types import datastore
28-
from google.longrunning import operations_pb2
28+
from google.longrunning import operations_pb2 # type: ignore
2929
from .base import DatastoreTransport, DEFAULT_CLIENT_INFO
3030

3131

google/cloud/datastore_v1/services/datastore/transports/grpc_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from grpc.experimental import aio # type: ignore
2626

2727
from google.cloud.datastore_v1.types import datastore
28-
from google.longrunning import operations_pb2
28+
from google.longrunning import operations_pb2 # type: ignore
2929
from .base import DatastoreTransport, DEFAULT_CLIENT_INFO
3030
from .grpc import DatastoreGrpcTransport
3131

google/cloud/datastore_v1/services/datastore/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from google.api_core import gapic_v1
2828

2929
from google.protobuf import json_format
30-
from google.longrunning import operations_pb2
3130
from requests import __version__ as requests_version
3231
import dataclasses
3332
import re
@@ -41,6 +40,7 @@
4140

4241

4342
from google.cloud.datastore_v1.types import datastore
43+
from google.longrunning import operations_pb2 # type: ignore
4444

4545
from .base import DatastoreTransport, DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO
4646

google/cloud/datastore_v1/types/aggregation_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class AggregationResultBatch(proto.Message):
7474
``NO_MORE_RESULTS``.
7575
read_time (google.protobuf.timestamp_pb2.Timestamp):
7676
Read timestamp this batch was returned from.
77+
7778
In a single transaction, subsequent query result
7879
batches for the same query can have a greater
7980
timestamp. Each batch's read timestamp is valid

google/cloud/datastore_v1/types/datastore.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ class ReadOptions(proto.Message):
861861
Reads entities as they were at the given
862862
time. This value is only supported for Cloud
863863
Firestore in Datastore mode.
864+
864865
This must be a microsecond precision timestamp
865866
within the past one hour, or if Point-in-Time
866867
Recovery is enabled, can additionally be a whole
@@ -957,6 +958,7 @@ class ReadOnly(proto.Message):
957958
Attributes:
958959
read_time (google.protobuf.timestamp_pb2.Timestamp):
959960
Reads entities at the given time.
961+
960962
This must be a microsecond precision timestamp
961963
within the past one hour, or if Point-in-Time
962964
Recovery is enabled, can additionally be a whole

google/cloud/datastore_v1/types/entity.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class Key(proto.Message):
120120

121121
class PathElement(proto.Message):
122122
r"""A (kind, ID/name) pair used to construct a key path.
123+
123124
If either name or ID is set, the element is complete. If neither
124125
is set, the element is incomplete.
125126
@@ -143,6 +144,7 @@ class PathElement(proto.Message):
143144
base-64 encoding of the bytes.
144145
id (int):
145146
The auto-allocated ID of the entity.
147+
146148
Never equal to zero. Values less than zero are
147149
discouraged and may not be supported in the
148150
future.
@@ -264,6 +266,7 @@ class Value(proto.Message):
264266
This field is a member of `oneof`_ ``value_type``.
265267
entity_value (google.cloud.datastore_v1.types.Entity):
266268
An entity value.
269+
267270
- May have no key.
268271
- May have a key with an incomplete key path.
269272
- May have a reserved/read-only key.
@@ -356,6 +359,7 @@ class Value(proto.Message):
356359

357360
class Entity(proto.Message):
358361
r"""A Datastore data object.
362+
359363
Must not exceed 1 MiB - 4 bytes.
360364
361365
Attributes:

tests/unit/gapic/datastore_admin_v1/test_datastore_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
from google.cloud.datastore_admin_v1.services.datastore_admin import transports
5959
from google.cloud.datastore_admin_v1.types import datastore_admin
6060
from google.cloud.datastore_admin_v1.types import index
61-
from google.longrunning import operations_pb2
61+
from google.longrunning import operations_pb2 # type: ignore
6262
from google.oauth2 import service_account
6363
from google.protobuf import empty_pb2 # type: ignore
6464
import google.auth

tests/unit/gapic/datastore_v1/test_datastore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from google.cloud.datastore_v1.types import datastore
5252
from google.cloud.datastore_v1.types import entity
5353
from google.cloud.datastore_v1.types import query
54-
from google.longrunning import operations_pb2
54+
from google.longrunning import operations_pb2 # type: ignore
5555
from google.oauth2 import service_account
5656
from google.protobuf import struct_pb2 # type: ignore
5757
from google.protobuf import timestamp_pb2 # type: ignore

0 commit comments

Comments
 (0)