Package Methods (2.22.0) Stay organized with collections Save and categorize content based on your preferences.
Summary of entries of Methods for datastore.
google.cloud.datastore.helpers.entity_from_protobuf
entity_from_protobuf(pb)Factory method for creating an entity based on a protobuf.
See more:google.cloud.datastore.helpers.entity_from_protobuf
google.cloud.datastore.helpers.entity_to_protobuf
entity_to_protobuf(entity)Converts an entity into a protobuf.
google.cloud.datastore.helpers.get_read_options
get_read_options(eventual,transaction_id,read_time=None,new_transaction_options=None)Validate rules for read options, and assign to the request.
google.cloud.datastore.helpers.get_transaction_options
get_transaction_options(transaction)Get the transaction_id or new_transaction_options field from an active transaction object,for use in get_read_options.
See more:google.cloud.datastore.helpers.get_transaction_options
google.cloud.datastore.helpers.key_from_protobuf
key_from_protobuf(pb)Factory method for creating a key based on a protobuf.
google.cloud.datastore.helpers.set_database_id_to_request
set_database_id_to_request(request,database_id=None)Set the "database_id" field to the request only if it was provided.
See more:google.cloud.datastore.helpers.set_database_id_to_request
google.cloud.datastore.aggregation.AggregationQuery.add_aggregation
add_aggregation(aggregation)Adds an aggregation operation to the nested query.
See more:google.cloud.datastore.aggregation.AggregationQuery.add_aggregation
google.cloud.datastore.aggregation.AggregationQuery.add_aggregations
add_aggregations(aggregations)Adds a list of aggregations to the nested query.
See more:google.cloud.datastore.aggregation.AggregationQuery.add_aggregations
google.cloud.datastore.aggregation.AggregationQuery.avg
avg(property_ref,alias=None)Adds a avg over the nested query.
See more:google.cloud.datastore.aggregation.AggregationQuery.avg
google.cloud.datastore.aggregation.AggregationQuery.count
count(alias=None)Adds a count over the nested query.
See more:google.cloud.datastore.aggregation.AggregationQuery.count
google.cloud.datastore.aggregation.AggregationQuery.fetch
fetch(client=None,limit=None,eventual=False,retry=None,timeout=None,read_time=None)Execute the Aggregation Query; return an iterator for the aggregation results.
See more:google.cloud.datastore.aggregation.AggregationQuery.fetch
google.cloud.datastore.aggregation.AggregationQuery.sum
sum(property_ref,alias=None)Adds a sum over the nested query.
See more:google.cloud.datastore.aggregation.AggregationQuery.sum
google.cloud.datastore.batch.Batch.begin
begin()Begins a batch.
google.cloud.datastore.batch.Batch.commit
commit(retry=None,timeout=None)Commits the batch.
google.cloud.datastore.batch.Batch.current
current()Return the topmost batch / transaction, or None.
google.cloud.datastore.batch.Batch.delete
delete(key)Remember a key to be deleted duringcommit.
google.cloud.datastore.batch.Batch.put
put(entity)Remember an entity's state to be saved duringcommit.
google.cloud.datastore.batch.Batch.rollback
rollback()Rolls back the current batch.
google.cloud.datastore.client.Client.aggregation_query
aggregation_query(query,**kwargs)Proxy to xref_AggregationQuery.
See more:google.cloud.datastore.client.Client.aggregation_query
google.cloud.datastore.client.Client.allocate_ids
allocate_ids(incomplete_key,num_ids,retry=None,timeout=None)Allocate a list of IDs from a partial key.
google.cloud.datastore.client.Client.batch
batch()Proxy toBatch.
google.cloud.datastore.client.Client.delete
delete(key,retry=None,timeout=None)Delete the key in the Cloud Datastore.
google.cloud.datastore.client.Client.delete_multi
delete_multi(keys,retry=None,timeout=None)Delete keys from the Cloud Datastore.
google.cloud.datastore.client.Client.entity
entity(key=None,exclude_from_indexes=())Proxy toEntity.
google.cloud.datastore.client.Client.get
get(key,missing=None,deferred=None,transaction=None,eventual=False,retry=None,timeout=None,read_time=None,)Retrieve an entity from a single key (if it exists).
google.cloud.datastore.client.Client.get_multi
get_multi(keys,missing=None,deferred=None,transaction=None,eventual=False,retry=None,timeout=None,read_time=None,)Retrieve entities, along with their attributes.
google.cloud.datastore.client.Client.key
key(*path_args,**kwargs)Proxy toKey.
google.cloud.datastore.client.Client.put
put(entity,retry=None,timeout=None)Save an entity in the Cloud Datastore.
google.cloud.datastore.client.Client.put_multi
put_multi(entities,retry=None,timeout=None)Save entities in the Cloud Datastore.
google.cloud.datastore.client.Client.query
query(**kwargs)Proxy to xref_Query.
google.cloud.datastore.client.Client.reserve_ids
reserve_ids(complete_key,num_ids,retry=None,timeout=None)Reserve a list of IDs sequentially from a complete key.
google.cloud.datastore.client.Client.reserve_ids_multi
reserve_ids_multi(complete_keys,retry=None,timeout=None)Reserve IDs from a list of complete keys.
See more:google.cloud.datastore.client.Client.reserve_ids_multi
google.cloud.datastore.client.Client.reserve_ids_sequential
reserve_ids_sequential(complete_key,num_ids,retry=None,timeout=None)Reserve a list of IDs sequentially from a complete key.
See more:google.cloud.datastore.client.Client.reserve_ids_sequential
google.cloud.datastore.client.Client.transaction
transaction(**kwargs)Proxy to xref_Transaction.
google.cloud.datastore.entity.Entity.__eq__
__eq__(other)Compare two entities for equality.
google.cloud.datastore.entity.Entity.__ne__
__ne__(other)Compare two entities for inequality.
google.cloud.datastore.helpers.GeoPoint.__eq__
__eq__(other)Compare two geo points for equality.
google.cloud.datastore.helpers.GeoPoint.__ne__
__ne__(other)Compare two geo points for inequality.
google.cloud.datastore.helpers.GeoPoint.to_protobuf
to_protobuf()Convert the current object to protobuf.
See more:google.cloud.datastore.helpers.GeoPoint.to_protobuf
google.cloud.datastore.key.Key.__eq__
__eq__(other)Compare two keys for equality.
See more:google.cloud.datastore.key.Key.eq
google.cloud.datastore.key.Key.__hash__
__hash__()Hash this key for use in a dictionary lookup.
See more:google.cloud.datastore.key.Key.hash
google.cloud.datastore.key.Key.__ne__
__ne__(other)Compare two keys for inequality.
See more:google.cloud.datastore.key.Key.ne
google.cloud.datastore.key.Key.__repr__
__repr__()String representation of this key.
See more:google.cloud.datastore.key.Key.repr
google.cloud.datastore.key.Key.completed_key
completed_key(id_or_name)Creates new key from existing partial key by adding final ID/name.
google.cloud.datastore.key.Key.from_legacy_urlsafe
from_legacy_urlsafe(urlsafe)Convert urlsafe string to xref_Key.
google.cloud.datastore.key.Key.to_legacy_urlsafe
to_legacy_urlsafe(location_prefix=None)Convert to a base64 encode urlsafe string for App Engine.
google.cloud.datastore.key.Key.to_protobuf
to_protobuf()Return a protobuf corresponding to the key.
google.cloud.datastore.query.BaseCompositeFilter.build_pb
build_pb(container_pb=None)Build the protobuf representation based on values in the Composite Filter.
See more:google.cloud.datastore.query.BaseCompositeFilter.build_pb
google.cloud.datastore.query.BaseFilter.build_pb
build_pb(container_pb=None)Build the protobuf representation based on values in the Filter.
google.cloud.datastore.query.PropertyFilter.build_pb
build_pb(container_pb=None)Build the protobuf representation based on values in the Property Filter.
See more:google.cloud.datastore.query.PropertyFilter.build_pb
google.cloud.datastore.query.Query.add_filter
add_filter(property_name=None,operator=None,value=None,*,filter=None)Filter the query based on a property name, operator and a value.
google.cloud.datastore.query.Query.fetch
fetch(limit=None,offset=0,start_cursor=None,end_cursor=None,client=None,eventual=False,retry=None,timeout=None,read_time=None,)Execute the Query; return an iterator for the matching entities.
google.cloud.datastore.query.Query.key_filter
key_filter(key,operator="=")Filter on a key.
google.cloud.datastore.query.Query.keys_only
keys_only()Set the projection to include only keys.
google.cloud.datastore.transaction.Transaction.begin
begin(retry=None,timeout=None)Begins a transaction.
See more:google.cloud.datastore.transaction.Transaction.begin
google.cloud.datastore.transaction.Transaction.commit
commit(retry=None,timeout=None)Commits the transaction.
See more:google.cloud.datastore.transaction.Transaction.commit
google.cloud.datastore.transaction.Transaction.current
current()Return the topmost transaction.
See more:google.cloud.datastore.transaction.Transaction.current
google.cloud.datastore.transaction.Transaction.delete
delete(key)Remember a key to be deleted duringcommit.
See more:google.cloud.datastore.transaction.Transaction.delete
google.cloud.datastore.transaction.Transaction.put
put(entity)Adds an entity to be committed.
google.cloud.datastore.transaction.Transaction.rollback
rollback(retry=None,timeout=None)Rolls back the current transaction.
See more:google.cloud.datastore.transaction.Transaction.rollback
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient
DatastoreAdminClient(*,credentials:typing.Optional[google.auth.credentials.Credentials]=None,transport:typing.Optional[typing.Union[str,google.cloud.datastore_admin_v1.services.datastore_admin.transports.base.DatastoreAdminTransport,typing.Callable[[...],google.cloud.datastore_admin_v1.services.datastore_admin.transports.base.DatastoreAdminTransport,],]]=None,client_options:typing.Optional[typing.Union[google.api_core.client_options.ClientOptions,dict]]=None,client_info:google.api_core.gapic_v1.client_info.ClientInfo=google.api_core.gapic_v1.client_info.ClientInfo)Instantiates the datastore admin client.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.__exit__
__exit__(type,value,traceback)Releases underlying transport's resources.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.exit
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.cancel_operation
cancel_operation(request:typing.Optional[google.longrunning.operations_pb2.CancelOperationRequest]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->NoneStarts asynchronous cancellation on a long-running operation.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.common_billing_account_path
common_billing_account_path(billing_account:str)->strReturns a fully-qualified billing_account string.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.common_folder_path
common_folder_path(folder:str)->strReturns a fully-qualified folder string.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.common_location_path
common_location_path(project:str,location:str)->strReturns a fully-qualified location string.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.common_organization_path
common_organization_path(organization:str)->strReturns a fully-qualified organization string.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.common_project_path
common_project_path(project:str)->strReturns a fully-qualified project string.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.create_index
create_index(request:typing.Optional[typing.Union[google.cloud.datastore_admin_v1.types.datastore_admin.CreateIndexRequest,dict,]]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.api_core.operation.OperationCreates the specified index.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.create_index
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.delete_index
delete_index(request:typing.Optional[typing.Union[google.cloud.datastore_admin_v1.types.datastore_admin.DeleteIndexRequest,dict,]]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.api_core.operation.OperationDeletes an existing index.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.delete_index
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.delete_operation
delete_operation(request:typing.Optional[google.longrunning.operations_pb2.DeleteOperationRequest]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->NoneDeletes a long-running operation.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.export_entities
export_entities(request:typing.Optional[typing.Union[google.cloud.datastore_admin_v1.types.datastore_admin.ExportEntitiesRequest,dict,]]=None,*,project_id:typing.Optional[str]=None,labels:typing.Optional[typing.MutableMapping[str,str]]=None,entity_filter:typing.Optional[google.cloud.datastore_admin_v1.types.datastore_admin.EntityFilter]=None,output_url_prefix:typing.Optional[str]=None,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.api_core.operation.OperationExports a copy of all or a subset of entities fromGoogle Cloud Datastore to another storage system, suchas Google Cloud Storage.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.export_entities
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.from_service_account_file
from_service_account_file(filename:str,*args,**kwargs)Creates an instance of this client using the provided credentials file.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.from_service_account_info
from_service_account_info(info:dict,*args,**kwargs)Creates an instance of this client using the provided credentials info.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.from_service_account_json
from_service_account_json(filename:str,*args,**kwargs)Creates an instance of this client using the provided credentials file.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.get_index
get_index(request:typing.Optional[typing.Union[google.cloud.datastore_admin_v1.types.datastore_admin.GetIndexRequest,dict]]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.cloud.datastore_admin_v1.types.index.IndexGets an index.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.get_index
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(client_options:typing.Optional[google.api_core.client_options.ClientOptions]=None,)Deprecated.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.get_operation
get_operation(request:typing.Optional[google.longrunning.operations_pb2.GetOperationRequest]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.longrunning.operations_pb2.OperationGets the latest state of a long-running operation.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.get_operation
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.import_entities
import_entities(request:typing.Optional[typing.Union[google.cloud.datastore_admin_v1.types.datastore_admin.ImportEntitiesRequest,dict,]]=None,*,project_id:typing.Optional[str]=None,labels:typing.Optional[typing.MutableMapping[str,str]]=None,input_url:typing.Optional[str]=None,entity_filter:typing.Optional[google.cloud.datastore_admin_v1.types.datastore_admin.EntityFilter]=None,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.api_core.operation.OperationImports entities into Google Cloud Datastore.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.import_entities
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.list_indexes
list_indexes(request:typing.Optional[typing.Union[google.cloud.datastore_admin_v1.types.datastore_admin.ListIndexesRequest,dict,]]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.cloud.datastore_admin_v1.services.datastore_admin.pagers.ListIndexesPagerLists the indexes that match the specified filters.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.list_indexes
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.list_operations
list_operations(request:typing.Optional[google.longrunning.operations_pb2.ListOperationsRequest]=None,*,retry:typing.Optional[typing.Union[google.api_core.retry.retry_unary.Retry,google.api_core.gapic_v1.method._MethodDefault,]]=_MethodDefault._DEFAULT_VALUE,timeout:typing.Union[float,object]=_MethodDefault._DEFAULT_VALUE,metadata:typing.Sequence[typing.Tuple[str,typing.Union[str,bytes]]]=())->google.longrunning.operations_pb2.ListOperationsResponseLists operations that match the specified filter in the request.
See more:google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.list_operations
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.parse_common_billing_account_path
parse_common_billing_account_path(path:str)->typing.Dict[str,str]Parse a billing_account path into its component segments.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.parse_common_folder_path
parse_common_folder_path(path:str)->typing.Dict[str,str]Parse a folder path into its component segments.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.parse_common_location_path
parse_common_location_path(path:str)->typing.Dict[str,str]Parse a location path into its component segments.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.parse_common_organization_path
parse_common_organization_path(path:str)->typing.Dict[str,str]Parse a organization path into its component segments.
google.cloud.datastore_admin_v1.services.datastore_admin.client.DatastoreAdminClient.parse_common_project_path
parse_common_project_path(path:str)->typing.Dict[str,str]Parse a project path into its component segments.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-16 UTC.