File tree Expand file tree Collapse file tree 23 files changed +61
-15
lines changed Expand file tree Collapse file tree 23 files changed +61
-15
lines changed Original file line number Diff line number Diff line change 54
54
from google .cloud .firestore_admin_v1 .types import index as gfa_index
55
55
from google .cloud .firestore_admin_v1 .types import operation as gfa_operation
56
56
from google .cloud .location import locations_pb2 # type: ignore
57
- from google .longrunning import operations_pb2
57
+ from google .longrunning import operations_pb2 # type: ignore
58
58
from google .protobuf import empty_pb2 # type: ignore
59
59
from google .protobuf import field_mask_pb2 # type: ignore
60
60
from .transports .base import FirestoreAdminTransport , DEFAULT_CLIENT_INFO
@@ -1453,6 +1453,7 @@ async def sample_create_database():
1453
1453
database, which will become the final
1454
1454
component of the database's resource
1455
1455
name.
1456
+
1456
1457
The value must be set to "(default)".
1457
1458
1458
1459
This corresponds to the ``database_id`` field
Original file line number Diff line number Diff line change 58
58
from google .cloud .firestore_admin_v1 .types import index as gfa_index
59
59
from google .cloud .firestore_admin_v1 .types import operation as gfa_operation
60
60
from google .cloud .location import locations_pb2 # type: ignore
61
- from google .longrunning import operations_pb2
61
+ from google .longrunning import operations_pb2 # type: ignore
62
62
from google .protobuf import empty_pb2 # type: ignore
63
63
from google .protobuf import field_mask_pb2 # type: ignore
64
64
from .transports .base import FirestoreAdminTransport , DEFAULT_CLIENT_INFO
@@ -1684,6 +1684,7 @@ def sample_create_database():
1684
1684
database, which will become the final
1685
1685
component of the database's resource
1686
1686
name.
1687
+
1687
1688
The value must be set to "(default)".
1688
1689
1689
1690
This corresponds to the ``database_id`` field
Original file line number Diff line number Diff line change 32
32
from google .cloud .firestore_admin_v1 .types import firestore_admin
33
33
from google .cloud .firestore_admin_v1 .types import index
34
34
from google .cloud .location import locations_pb2 # type: ignore
35
- from google .longrunning import operations_pb2
36
35
from google .longrunning import operations_pb2 # type: ignore
37
36
from google .protobuf import empty_pb2 # type: ignore
38
37
Original file line number Diff line number Diff line change 30
30
from google .cloud .firestore_admin_v1 .types import firestore_admin
31
31
from google .cloud .firestore_admin_v1 .types import index
32
32
from google .cloud .location import locations_pb2 # type: ignore
33
- from google .longrunning import operations_pb2
34
33
from google .longrunning import operations_pb2 # type: ignore
35
34
from google .protobuf import empty_pb2 # type: ignore
36
35
from .base import FirestoreAdminTransport , DEFAULT_CLIENT_INFO
Original file line number Diff line number Diff line change 30
30
from google .cloud .firestore_admin_v1 .types import firestore_admin
31
31
from google .cloud .firestore_admin_v1 .types import index
32
32
from google .cloud .location import locations_pb2 # type: ignore
33
- from google .longrunning import operations_pb2
34
33
from google .longrunning import operations_pb2 # type: ignore
35
34
from google .protobuf import empty_pb2 # type: ignore
36
35
from .base import FirestoreAdminTransport , DEFAULT_CLIENT_INFO
Original file line number Diff line number Diff line change 29
29
from google .protobuf import json_format
30
30
from google .api_core import operations_v1
31
31
from google .cloud .location import locations_pb2 # type: ignore
32
- from google .longrunning import operations_pb2
33
32
from requests import __version__ as requests_version
34
33
import dataclasses
35
34
import re
46
45
from google .cloud .firestore_admin_v1 .types import field
47
46
from google .cloud .firestore_admin_v1 .types import firestore_admin
48
47
from google .cloud .firestore_admin_v1 .types import index
49
- from google .longrunning import operations_pb2 # type: ignore
50
48
from google .protobuf import empty_pb2 # type: ignore
49
+ from google .longrunning import operations_pb2 # type: ignore
51
50
52
51
from .base import (
53
52
FirestoreAdminTransport ,
Original file line number Diff line number Diff line change @@ -104,12 +104,14 @@ class ConcurrencyMode(proto.Enum):
104
104
Use pessimistic concurrency control by
105
105
default. This mode is available for Cloud
106
106
Firestore databases.
107
+
107
108
This is the default setting for Cloud Firestore.
108
109
OPTIMISTIC_WITH_ENTITY_GROUPS (3):
109
110
Use optimistic concurrency control with
110
111
entity groups by default.
111
112
This is the only available mode for Cloud
112
113
Datastore.
114
+
113
115
This mode is also available for Cloud Firestore
114
116
with Datastore Mode but is not recommended.
115
117
"""
Original file line number Diff line number Diff line change 32
32
33
33
class Field (proto .Message ):
34
34
r"""Represents a single field in the database.
35
+
35
36
Fields are grouped by their "Collection Group", which represent
36
37
all collections in the database with the same id.
37
38
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ class CreateDatabaseRequest(proto.Message):
80
80
Required. The ID to use for the database,
81
81
which will become the final component of the
82
82
database's resource name.
83
+
83
84
The value must be set to "(default)".
84
85
"""
85
86
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class Index(proto.Message):
44
44
that is the child of a specific document,
45
45
specified at query time, and that has the same
46
46
collection id.
47
+
47
48
Indexes with a collection group query scope
48
49
specified allow queries against all collections
49
50
descended from a specific document, specified at
You can’t perform that action at this time.
0 commit comments