Skip to content

Commit

Permalink
feat: Update common protos
Browse files Browse the repository at this point in the history
- List top-level request fields to be auto-populated by
  client library generators
- Explicitly mark field_behavior as non-packed
  • Loading branch information
jskeet committed Feb 7, 2024
1 parent ee38ea1 commit d1c71cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Google.Api.CommonProtos/protos/google/api/client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,19 @@ message MethodSettings {
// total_poll_timeout:
// seconds: 54000 # 90 minutes
LongRunning long_running = 2;

// List of top-level fields of the request message, that should be
// automatically populated by the client libraries based on their
// (google.api.field_info).format. Currently supported format: UUID4.
//
// Example of a YAML configuration:
//
// publishing:
// method_settings:
// - selector: google.example.v1.ExampleService.CreateExample
// auto_populated_fields:
// - request_id
repeated string auto_populated_fields = 3;
}

// The organization for which the client libraries are being published.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extend google.protobuf.FieldOptions {
// google.protobuf.Timestamp expire_time = 1
// [(google.api.field_behavior) = OUTPUT_ONLY,
// (google.api.field_behavior) = IMMUTABLE];
repeated google.api.FieldBehavior field_behavior = 1052;
repeated google.api.FieldBehavior field_behavior = 1052 [packed = false];
}

// An indicator of the behavior of a given field (for example, that a field
Expand Down

0 comments on commit d1c71cc

Please sign in to comment.