@@ -379,15 +379,9 @@ message Precondition {
379379// the write will be committed. All updates will be applied transactionally,
380380// and if any preconditions fail, the entire transaction will be reverted.
381381message WriteRelationshipsRequest {
382- repeated RelationshipUpdate updates = 1 [
383- (validate.rules ) .repeated.items.message.required = true ,
384- (buf.validate.field ) .repeated.items.required = true
385- ];
382+ repeated RelationshipUpdate updates = 1 [(validate.rules ) .repeated.items.message.required = true ];
386383
387- repeated Precondition optional_preconditions = 2 [
388- (validate.rules ) .repeated.items.message.required = true ,
389- (buf.validate.field ) .repeated.items.required = true
390- ]; // To be bounded by configuration
384+ repeated Precondition optional_preconditions = 2 [(validate.rules ) .repeated.items.message.required = true ]; // To be bounded by configuration
391385
392386 // optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
393387 // If specified, this metadata will be supplied in the WatchResponse for the updates associated with this
@@ -414,10 +408,7 @@ message DeleteRelationshipsRequest {
414408 (buf.validate.field ).required = true
415409 ];
416410
417- repeated Precondition optional_preconditions = 2 [
418- (validate.rules ) .repeated.items.message.required = true ,
419- (buf.validate.field ) .repeated.items.required = true
420- ]; // To be bounded by configuration
411+ repeated Precondition optional_preconditions = 2 [(validate.rules ) .repeated.items.message.required = true ]; // To be bounded by configuration
421412
422413 // optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted.
423414 // If there are more matching relationships found to be deleted than the limit specified here,
@@ -576,10 +567,7 @@ message CheckPermissionResponse {
576567message CheckBulkPermissionsRequest {
577568 Consistency consistency = 1 ;
578569
579- repeated CheckBulkPermissionsRequestItem items = 2 [
580- (validate.rules ) .repeated.items.message.required = true ,
581- (buf.validate.field ) .repeated.items.required = true
582- ];
570+ repeated CheckBulkPermissionsRequestItem items = 2 [(validate.rules ) .repeated.items.message.required = true ];
583571
584572 // with_tracing, if true, indicates that each response should include a debug trace.
585573 // This can be useful for debugging and performance analysis, but adds a small amount
@@ -621,10 +609,7 @@ message CheckBulkPermissionsResponse {
621609 (buf.validate.field ).required = false
622610 ];
623611
624- repeated CheckBulkPermissionsPair pairs = 2 [
625- (validate.rules ) .repeated.items.message.required = true ,
626- (buf.validate.field ) .repeated.items.required = true
627- ];
612+ repeated CheckBulkPermissionsPair pairs = 2 [(validate.rules ) .repeated.items.message.required = true ];
628613}
629614
630615message CheckBulkPermissionsPair {
@@ -751,6 +736,12 @@ message LookupResourcesRequest {
751736 // optional_cursor, if specified, indicates the cursor after which results should resume being returned.
752737 // The cursor can be found on the LookupResourcesResponse object.
753738 Cursor optional_cursor = 7 ;
739+ //
740+ // with_debug, if true, indicates that the response should return debug information
741+ // if present and available. For now, ONLY enables debugging of maximum recursion depth
742+ // errors, with additional context being returned in error details, but this may be
743+ // extended in the future.
744+ bool with_debug = 8 ;
754745}
755746
756747// LookupPermissionship represents whether a Lookup response was partially evaluated or not
@@ -966,10 +957,7 @@ message ResolvedSubject {
966957// invocation are executed under this single transaction. If a relationship already
967958// exists within the datastore, the entire transaction will fail with an error.
968959message ImportBulkRelationshipsRequest {
969- repeated Relationship relationships = 1 [
970- (validate.rules ) .repeated.items.message.required = true ,
971- (buf.validate.field ) .repeated.items.required = true
972- ];
960+ repeated Relationship relationships = 1 [(validate.rules ) .repeated.items.message.required = true ];
973961}
974962
975963// ImportBulkRelationshipsResponse is returned on successful completion of the
0 commit comments