Skip to content

Commit b6c0e8a

Browse files
Google APIscopybara-github
authored andcommitted
docs: document explicitly quotes in attribute filter
PiperOrigin-RevId: 474678911
1 parent 1a176ac commit b6c0e8a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

google/maps/fleetengine/delivery/v1/delivery_api.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,12 @@ message ListDeliveryVehiclesRequest {
275275
//
276276
// Note that the only queries supported for `ListDeliveryVehicles` are
277277
// on vehicle attributes (for example, `attributes.<key> = <value>` or
278-
// `attributes.<key1> = <value1> AND attributes.<key2> = <value2>`).
278+
// `attributes.<key1> = <value1> AND attributes.<key2> = <value2>`). Also, all
279+
// attributes are stored as strings, so the only supported comparisons against
280+
// attributes are string comparisons. In order to compare against number or
281+
// boolean values, the values must be explicitly quoted to be treated as
282+
// strings (for example, `attributes.<key> = "10"` or
283+
// `attributes.<key> = "true"`).
279284
string filter = 6 [(google.api.field_behavior) = OPTIONAL];
280285

281286
// Optional. A filter that limits the search area to a rectangle defined by the

0 commit comments

Comments
 (0)