/errors/query_error.proto

--- v22/errors/query_error.proto    2026-01-23 15:36:21.000000000 +0000
+++ v23/errors/query_error.proto    2026-01-23 15:36:26.000000000 +0000
@@ -181,6 +181,10 @@
     // SELECT or WHERE clause.
     PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53;

+    // A metric may not be selected with one of the selected resource fields,
+    // or segmented by one of the selected segment fields.
+    PROHIBITED_FIELD_OR_SEGMENT_WITH_METRIC = 65;
+
     // The value passed to the limit clause is too low.
     LIMIT_VALUE_TOO_LOW = 25;

@@ -219,5 +223,8 @@
     // The number of values (right-hand-side operands) in a filter exceeds the
     // limit.
     FILTER_HAS_TOO_MANY_VALUES = 63;
+
+    // Required segment field is missing.
+    REQUIRED_SEGMENT_FIELD_MISSING = 66;
   }
 }