Skip to content

[Datastore question] How to build AllocateIdRequest? #1428

Description

@GabiAxel

Greetings,

As I understand, a Java AllocateIdsRequest instance can be built using Keys or PathElements, but according to the API it expects the key to contain incomplete paths. I saw no public way to build a Key without an id or name, and I no public way to get the path of an IncompleteKey. Can you please provide and example of building an AllocateIdsRequest from a string representing the kind? Also, wouldn't it make sense to be able to build AllocateIdsRequest from IncompleteKeys?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions