Class: Google::Datastore::V1::Key::PathElement

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb

Overview

A (kind, ID/name) pair used to construct a key path.

If either name or ID is set, the element is complete. If neither is set, the element is incomplete.

Instance Attribute Summary collapse

Instance Attribute Details

#idInteger

Returns The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.

Returns:

  • (Integer)

    The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.



94
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 94

class PathElement; end

#kindString

Returns The kind of the entity. A kind matching regex +.*+ is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be +""+.

Returns:

  • (String)

    The kind of the entity. A kind matching regex +.*+ is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be +""+.



94
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 94

class PathElement; end

#nameString

Returns The name of the entity. A name matching regex +.*+ is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be +""+.

Returns:

  • (String)

    The name of the entity. A name matching regex +.*+ is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be +""+.



94
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 94

class PathElement; end