1717import six
1818
1919from gcloud import connection
20- from gcloud .datastore import datastore_v1_pb2 as datastore_pb
20+ from gcloud .datastore import _datastore_v1_pb2 as datastore_pb
2121from gcloud .datastore import helpers
2222
2323
@@ -148,7 +148,7 @@ def transaction(self, transaction=connection.Connection._EMPTY):
148148 def mutation (self ):
149149 """Getter for mutation usable with current connection.
150150
151- :rtype: :class:`gcloud.datastore.datastore_v1_pb2 .Mutation`.
151+ :rtype: :class:`gcloud.datastore._datastore_v1_pb2 .Mutation`.
152152 :returns: The mutation instance associated with the current transaction
153153 (if one exists) or or a new mutation instance.
154154 """
@@ -164,8 +164,8 @@ def lookup(self, dataset_id, key_pbs,
164164 Maps the ``DatastoreService.Lookup`` protobuf RPC.
165165
166166 This method deals only with protobufs
167- (:class:`gcloud.datastore.datastore_v1_pb2 .Key` and
168- :class:`gcloud.datastore.datastore_v1_pb2 .Entity`) and is used
167+ (:class:`gcloud.datastore._datastore_v1_pb2 .Key` and
168+ :class:`gcloud.datastore._datastore_v1_pb2 .Entity`) and is used
169169 under the hood in :func:`gcloud.datastore.get`:
170170
171171 >>> from gcloud import datastore
@@ -182,7 +182,7 @@ def lookup(self, dataset_id, key_pbs,
182182 :type dataset_id: string
183183 :param dataset_id: The ID of the dataset to look up the keys.
184184
185- :type key_pbs: list of :class:`gcloud.datastore.datastore_v1_pb2 .Key`
185+ :type key_pbs: list of :class:`gcloud.datastore._datastore_v1_pb2 .Key`
186186 (or a single Key)
187187 :param key_pbs: The key (or keys) to retrieve from the datastore.
188188
@@ -202,7 +202,7 @@ def lookup(self, dataset_id, key_pbs,
202202 consistency. If the connection has a current
203203 transaction, this value *must* be false.
204204
205- :rtype: list of :class:`gcloud.datastore.datastore_v1_pb2 .Entity`
205+ :rtype: list of :class:`gcloud.datastore._datastore_v1_pb2 .Entity`
206206 (or a single Entity)
207207 :returns: The entities corresponding to the keys provided.
208208 If a single key was provided and no results matched,
@@ -284,7 +284,7 @@ def run_query(self, dataset_id, query_pb, namespace=None, eventual=False):
284284 :type dataset_id: string
285285 :param dataset_id: The ID of the dataset over which to run the query.
286286
287- :type query_pb: :class:`gcloud.datastore.datastore_v1_pb2 .Query`
287+ :type query_pb: :class:`gcloud.datastore._datastore_v1_pb2 .Query`
288288 :param query_pb: The Protobuf representing the query to run.
289289
290290 :type namespace: string
@@ -325,7 +325,7 @@ def begin_transaction(self, dataset_id, serializable=False):
325325 transaction should be SERIALIZABLE (True) or
326326 SNAPSHOT (False).
327327
328- :rtype: :class:`.datastore_v1_pb2 .BeginTransactionResponse`
328+ :rtype: :class:`._datastore_v1_pb2 .BeginTransactionResponse`
329329 :returns': the result protobuf for the begin transaction request.
330330 """
331331 if self .transaction ():
@@ -354,10 +354,10 @@ def commit(self, dataset_id, mutation_pb):
354354 :type dataset_id: string
355355 :param dataset_id: The ID dataset to which the transaction applies.
356356
357- :type mutation_pb: :class:`gcloud.datastore.datastore_v1_pb2 .Mutation`.
357+ :type mutation_pb: :class:`datastore_pb .Mutation`.
358358 :param mutation_pb: The protobuf for the mutations being saved.
359359
360- :rtype: :class:`gcloud.datastore.datastore_v1_pb2 .MutationResult`.
360+ :rtype: :class:`gcloud.datastore._datastore_v1_pb2 .MutationResult`.
361361 :returns': the result protobuf for the mutation.
362362 """
363363 request = datastore_pb .CommitRequest ()
@@ -403,10 +403,10 @@ def allocate_ids(self, dataset_id, key_pbs):
403403 :param dataset_id: The ID of the dataset to which the transaction
404404 belongs.
405405
406- :type key_pbs: list of :class:`gcloud.datastore.datastore_v1_pb2 .Key`
406+ :type key_pbs: list of :class:`gcloud.datastore._datastore_v1_pb2 .Key`
407407 :param key_pbs: The keys for which the backend should allocate IDs.
408408
409- :rtype: list of :class:`gcloud.datastore.datastore_v1_pb2 .Key`
409+ :rtype: list of :class:`gcloud.datastore._datastore_v1_pb2 .Key`
410410 :returns: An equal number of keys, with IDs filled in by the backend.
411411 """
412412 request = datastore_pb .AllocateIdsRequest ()
@@ -432,7 +432,7 @@ def save_entity(self, dataset_id, key_pb, properties,
432432 :type dataset_id: string
433433 :param dataset_id: The ID of the dataset in which to save the entity.
434434
435- :type key_pb: :class:`gcloud.datastore.datastore_v1_pb2 .Key`
435+ :type key_pb: :class:`gcloud.datastore._datastore_v1_pb2 .Key`
436436 :param key_pb: The complete or partial key for the entity.
437437
438438 :type properties: dict
@@ -441,7 +441,7 @@ def save_entity(self, dataset_id, key_pb, properties,
441441 :type exclude_from_indexes: sequence of string
442442 :param exclude_from_indexes: Names of properties *not* to be indexed.
443443
444- :type mutation: :class:`gcloud.datastore.datastore_v1_pb2 .Mutation`
444+ :type mutation: :class:`gcloud.datastore._datastore_v1_pb2 .Mutation`
445445 or None.
446446 :param mutation: If passed, the mutation protobuf into which the
447447 entity will be saved. If None, use th result
@@ -497,17 +497,17 @@ def delete_entities(self, dataset_id, key_pbs, mutation=None):
497497 """Delete keys from a dataset in the Cloud Datastore.
498498
499499 This method deals only with
500- :class:`gcloud.datastore.datastore_v1_pb2 .Key` protobufs and not
500+ :class:`gcloud.datastore._datastore_v1_pb2 .Key` protobufs and not
501501 with any of the other abstractions. For example, it's used
502502 under the hood in :func:`gcloud.datastore.api.delete`.
503503
504504 :type dataset_id: string
505505 :param dataset_id: The ID of the dataset from which to delete the keys.
506506
507- :type key_pbs: list of :class:`gcloud.datastore.datastore_v1_pb2 .Key`
507+ :type key_pbs: list of :class:`gcloud.datastore._datastore_v1_pb2 .Key`
508508 :param key_pbs: The keys to delete from the datastore.
509509
510- :type mutation: :class:`gcloud.datastore.datastore_v1_pb2 .Mutation`
510+ :type mutation: :class:`gcloud.datastore._datastore_v1_pb2 .Mutation`
511511 or None.
512512 :param mutation: If passed, the mutation protobuf into which the
513513 deletion will be saved. If None, use th result
0 commit comments