Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::PropertyMask.
The set of arbitrarily nested property paths used to restrict an operation to
only a subset of properties in an entity.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#paths
defpaths()->::Array<::String>
Returns
(::Array<::String>) — The paths to the properties covered by this mask.
A path is a list of property names separated by dots (.), for example
foo.bar means the property bar inside the entity property foo inside
the entity associated with this path.
If a property name contains a dot . or a backslash \, then that
name must be escaped.
A path must not be empty, and may not reference a value inside an
array value.
#paths=
defpaths=(value)->::Array<::String>
Parameter
value (::Array<::String>) — The paths to the properties covered by this mask.
A path is a list of property names separated by dots (.), for example
foo.bar means the property bar inside the entity property foo inside
the entity associated with this path.
If a property name contains a dot . or a backslash \, then that
name must be escaped.
A path must not be empty, and may not reference a value inside an
array value.
Returns
(::Array<::String>) — The paths to the properties covered by this mask.
A path is a list of property names separated by dots (.), for example
foo.bar means the property bar inside the entity property foo inside
the entity associated with this path.
If a property name contains a dot . or a backslash \, then that
name must be escaped.
A path must not be empty, and may not reference a value inside an
array value.
[[["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-09-04 UTC."],[],[],null,["# Firestore in Datastore mode V1 API - Class Google::Cloud::Datastore::V1::PropertyMask (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-datastore-v1/latest/Google-Cloud-Datastore-V1-PropertyMask)\n- [1.4.0](/ruby/docs/reference/google-cloud-datastore-v1/1.4.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [1.3.1](/ruby/docs/reference/google-cloud-datastore-v1/1.3.1/Google-Cloud-Datastore-V1-PropertyMask)\n- [1.2.0](/ruby/docs/reference/google-cloud-datastore-v1/1.2.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [1.1.0](/ruby/docs/reference/google-cloud-datastore-v1/1.1.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [1.0.1](/ruby/docs/reference/google-cloud-datastore-v1/1.0.1/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.19.0](/ruby/docs/reference/google-cloud-datastore-v1/0.19.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.18.0](/ruby/docs/reference/google-cloud-datastore-v1/0.18.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.17.0](/ruby/docs/reference/google-cloud-datastore-v1/0.17.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.16.3](/ruby/docs/reference/google-cloud-datastore-v1/0.16.3/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.15.0](/ruby/docs/reference/google-cloud-datastore-v1/0.15.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.14.0](/ruby/docs/reference/google-cloud-datastore-v1/0.14.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.13.1](/ruby/docs/reference/google-cloud-datastore-v1/0.13.1/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.12.0](/ruby/docs/reference/google-cloud-datastore-v1/0.12.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.11.1](/ruby/docs/reference/google-cloud-datastore-v1/0.11.1/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.10.0](/ruby/docs/reference/google-cloud-datastore-v1/0.10.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.9.0](/ruby/docs/reference/google-cloud-datastore-v1/0.9.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.8.0](/ruby/docs/reference/google-cloud-datastore-v1/0.8.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.7.0](/ruby/docs/reference/google-cloud-datastore-v1/0.7.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.6.0](/ruby/docs/reference/google-cloud-datastore-v1/0.6.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.5.0](/ruby/docs/reference/google-cloud-datastore-v1/0.5.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.4.0](/ruby/docs/reference/google-cloud-datastore-v1/0.4.0/Google-Cloud-Datastore-V1-PropertyMask)\n- [0.3.5](/ruby/docs/reference/google-cloud-datastore-v1/0.3.5/Google-Cloud-Datastore-V1-PropertyMask) \nReference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::PropertyMask.\n\nThe set of arbitrarily nested property paths used to restrict an operation to\nonly a subset of properties in an entity. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #paths\n\n def paths() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The paths to the properties covered by this mask.\n\n A path is a list of property names separated by dots (`.`), for example\n `foo.bar` means the property `bar` inside the entity property `foo` inside\n the entity associated with this path.\n\n If a property name contains a dot `.` or a backslash `\\`, then that\n name must be escaped.\n\n A path must not be empty, and may not reference a value inside an\n [array value](/ruby/docs/reference/google-cloud-datastore-v1/latest/Google-Cloud-Datastore-V1-Value#Google__Cloud__Datastore__V1__Value_array_value_instance_ \"Google::Cloud::Datastore::V1::Value#array_value (method)\").\n\n### #paths=\n\n def paths=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- The paths to the properties covered by this mask.\n\n\n A path is a list of property names separated by dots (`.`), for example\n `foo.bar` means the property `bar` inside the entity property `foo` inside\n the entity associated with this path.\n\n If a property name contains a dot `.` or a backslash `\\`, then that\n name must be escaped.\n\n A path must not be empty, and may not reference a value inside an\n[array value](/ruby/docs/reference/google-cloud-datastore-v1/latest/Google-Cloud-Datastore-V1-Value#Google__Cloud__Datastore__V1__Value_array_value_instance_ \"Google::Cloud::Datastore::V1::Value#array_value (method)\"). \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The paths to the properties covered by this mask.\n\n A path is a list of property names separated by dots (`.`), for example\n `foo.bar` means the property `bar` inside the entity property `foo` inside\n the entity associated with this path.\n\n If a property name contains a dot `.` or a backslash `\\`, then that\n name must be escaped.\n\n A path must not be empty, and may not reference a value inside an\n [array value](/ruby/docs/reference/google-cloud-datastore-v1/latest/Google-Cloud-Datastore-V1-Value#Google__Cloud__Datastore__V1__Value_array_value_instance_ \"Google::Cloud::Datastore::V1::Value#array_value (method)\")."]]