Firestore in Datastore mode API - Class Google::Cloud::Datastore::Properties (v2.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Firestore in Datastore mode API class Google::Cloud::Datastore::Properties.
Properties
Hash-like data structure for Datastore properties.
See Entity#properties
Methods
.from_grpc
def self.from_grpc(grpc_map)
#[]
#[]=
#delete
#each
#exist?
def exist?(key) -> Boolean
#fetch
#initialize
def initialize(properties = {}) -> Properties
#read
#to_grpc
#to_h
#to_hash
#write
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Firestore in Datastore mode API - Class Google::Cloud::Datastore::Properties (v2.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.13.0 (latest)](/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties)\n- [2.12.0](/ruby/docs/reference/google-cloud-datastore/2.12.0/Google-Cloud-Datastore-Properties)\n- [2.11.0](/ruby/docs/reference/google-cloud-datastore/2.11.0/Google-Cloud-Datastore-Properties)\n- [2.10.0](/ruby/docs/reference/google-cloud-datastore/2.10.0/Google-Cloud-Datastore-Properties)\n- [2.9.0](/ruby/docs/reference/google-cloud-datastore/2.9.0/Google-Cloud-Datastore-Properties)\n- [2.8.0](/ruby/docs/reference/google-cloud-datastore/2.8.0/Google-Cloud-Datastore-Properties)\n- [2.7.1](/ruby/docs/reference/google-cloud-datastore/2.7.1/Google-Cloud-Datastore-Properties)\n- [2.6.0](/ruby/docs/reference/google-cloud-datastore/2.6.0/Google-Cloud-Datastore-Properties)\n- [2.5.0](/ruby/docs/reference/google-cloud-datastore/2.5.0/Google-Cloud-Datastore-Properties)\n- [2.4.0](/ruby/docs/reference/google-cloud-datastore/2.4.0/Google-Cloud-Datastore-Properties)\n- [2.3.1](/ruby/docs/reference/google-cloud-datastore/2.3.1/Google-Cloud-Datastore-Properties)\n- [2.2.4](/ruby/docs/reference/google-cloud-datastore/2.2.4/Google-Cloud-Datastore-Properties) \nReference documentation and code samples for the Firestore in Datastore mode API class Google::Cloud::Datastore::Properties.\n\nProperties\n----------\n\nHash-like data structure for Datastore properties.\n\nSee [Entity#properties](/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Entity#Google__Cloud__Datastore__Entity_properties_instance_ \"Google::Cloud::Datastore::Entity#properties (method)\") \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .from_grpc\n\n def self.from_grpc(grpc_map)\n\n### #\\[\\]\n\n def [](key)\n\n**Aliases**\n\n- [#read](./Google-Cloud-Datastore-Properties#Google__Cloud__Datastore__Properties_read_instance_)\n\n### #\\[\\]=\n\n def []=(key, value)\n\n**Aliases**\n\n- [#write](./Google-Cloud-Datastore-Properties#Google__Cloud__Datastore__Properties_write_instance_)\n\n### #delete\n\n def delete(key, &block)\n\n### #each\n\n def each(&block)\n\n### #exist?\n\n def exist?(key) -\u003e Boolean\n\n**Returns**\n\n- (Boolean)\n\n### #fetch\n\n def fetch(key, &_block)\n\n### #initialize\n\n def initialize(properties = {}) -\u003e Properties\n\n**Returns**\n\n- ([Properties](./Google-Cloud-Datastore-Properties)) --- a new instance of Properties\n\n### #read\n\n def read(key)\n\n**Alias Of** : [#\\[\\]](./Google-Cloud-Datastore-Properties#Google__Cloud__Datastore__Properties_[]_instance_)\n\n### #to_grpc\n\n def to_grpc()\n\n### #to_h\n\n def to_h()\n\n**Aliases**\n\n- [#to_hash](./Google-Cloud-Datastore-Properties#Google__Cloud__Datastore__Properties_to_hash_instance_)\n\n### #to_hash\n\n def to_hash()\n\n**Alias Of** : [#to_h](./Google-Cloud-Datastore-Properties#Google__Cloud__Datastore__Properties_to_h_instance_)\n\n### #write\n\n def write(key, value)\n\n**Alias Of** : [#\\[\\]=](./Google-Cloud-Datastore-Properties#Google__Cloud__Datastore__Properties_[]=_instance_)"]]