@@ -56,17 +56,23 @@ message EntityResult {
5656 // The version of the entity, a strictly positive number that monotonically
5757 // increases with changes to the entity.
5858 //
59- // This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
60- // results.
59+ // This field is set for
60+ // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
6161 //
62- // For [missing][google.datastore.v1.LookupResponse.missing] entities in `LookupResponse`, this
63- // is the version of the snapshot that was used to look up the entity, and it
64- // is always set except for eventually consistent reads.
62+ // For [missing][google.datastore.v1.LookupResponse.missing] entities in
63+ // `LookupResponse`, this is the version of the snapshot that was used to look
64+ // up the entity, and it is always set except for eventually consistent reads.
6565 int64 version = 4 ;
6666
67+ // The time at which the entity was created.
68+ // This field is set for
69+ // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
70+ // If this entity is missing, this field will not be set.
71+ google.protobuf.Timestamp create_time = 6 ;
72+
6773 // The time at which the entity was last changed.
68- // This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
69- // results.
74+ // This field is set for
75+ // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
7076 // If this entity is missing, this field will not be set.
7177 google.protobuf.Timestamp update_time = 5 ;
7278
@@ -118,7 +124,8 @@ message Query {
118124 google.protobuf.Int32Value limit = 12 ;
119125}
120126
121- // Datastore query for running an aggregation over a [Query][google.datastore.v1.Query].
127+ // Datastore query for running an aggregation over a
128+ // [Query][google.datastore.v1.Query].
122129message AggregationQuery {
123130 // Defines a aggregation that produces a single result.
124131 message Aggregation {
@@ -127,7 +134,8 @@ message AggregationQuery {
127134 // The `COUNT(*)` aggregation function operates on the entire entity
128135 // so it does not require a field reference.
129136 message Count {
130- // Optional. Optional constraint on the maximum number of entities to count.
137+ // Optional. Optional constraint on the maximum number of entities to
138+ // count.
131139 //
132140 // This provides a way to set an upper bound on the number of entities
133141 // to scan, limiting latency and cost.
@@ -146,7 +154,8 @@ message AggregationQuery {
146154 // Requires:
147155 //
148156 // * Must be non-negative when present.
149- google.protobuf.Int64Value up_to = 1 [(google.api.field_behavior ) = OPTIONAL ];
157+ google.protobuf.Int64Value up_to = 1
158+ [(google.api.field_behavior ) = OPTIONAL ];
150159 }
151160
152161 // The type of aggregation to perform, required.
@@ -155,7 +164,8 @@ message AggregationQuery {
155164 Count count = 1 ;
156165 }
157166
158- // Optional. Optional name of the property to store the result of the aggregation.
167+ // Optional. Optional name of the property to store the result of the
168+ // aggregation.
159169 //
160170 // If not provided, Datastore will pick a default name following the format
161171 // `property_<incremental_id++>`. For example:
@@ -187,7 +197,8 @@ message AggregationQuery {
187197 // Requires:
188198 //
189199 // * Must be unique across all aggregation aliases.
190- // * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
200+ // * Conform to [entity property
201+ // name][google.datastore.v1.Entity.properties] limitations.
191202 string alias = 7 [(google.api.field_behavior ) = OPTIONAL ];
192203 }
193204
@@ -197,12 +208,14 @@ message AggregationQuery {
197208 Query nested_query = 1 ;
198209 }
199210
200- // Optional. Series of aggregations to apply over the results of the `nested_query`.
211+ // Optional. Series of aggregations to apply over the results of the
212+ // `nested_query`.
201213 //
202214 // Requires:
203215 //
204216 // * A minimum of one and maximum of five aggregations per query.
205- repeated Aggregation aggregations = 3 [(google.api.field_behavior ) = OPTIONAL ];
217+ repeated Aggregation aggregations = 3
218+ [(google.api.field_behavior ) = OPTIONAL ];
206219}
207220
208221// A representation of a kind.
@@ -266,6 +279,9 @@ message CompositeFilter {
266279
267280 // The results are required to satisfy each of the combined filters.
268281 AND = 1 ;
282+
283+ // Documents are required to satisfy at least one of the combined filters.
284+ OR = 2 ;
269285 }
270286
271287 // The operator for combining multiple filters.
@@ -338,6 +354,7 @@ message PropertyFilter {
338354 // Requires:
339355 //
340356 // * That `value` is an entity key.
357+ // * No other `HAS_ANCESTOR` is in the same query.
341358 HAS_ANCESTOR = 11 ;
342359
343360 // The value of the `property` is not in the given array.
0 commit comments