class Google::Apis::DatastoreV1beta2::KeyPathElement
A (kind, ID/name) pair used to construct a key path. At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
Attributes
The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future. Corresponds to the JSON property `id` @return [String]
The kind of the entity. A kind matching regex “__.*__” is reserved/read-only. A kind must not contain more than 500 characters. Cannot be “”. Corresponds to the JSON property `kind` @return [String]
The name of the entity. A name matching regex “__.*__” is reserved/read-only. A name must not be more than 500 characters. Cannot be “”. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File generated/google/apis/datastore_v1beta2/classes.rb, line 415 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/datastore_v1beta2/classes.rb, line 420 def update!(**args) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end