Skip to content

Commit 9dd7678

Browse files
authored
fix(AIP-203): add oneof field behavior exception (#1628)
1 parent 64f4be3 commit 9dd7678

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎aip/general/0203.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ RecognitionAudio audio = 2 [(google.api.field_behavior) = REQUIRED];
2828
on a message or sub-message used in a request.
2929
- An exception to this is the AIP-154 `etag` field on a resource message,
3030
which **should not** have any `google.api.field_behavior` assigned.
31+
- Furthermore, `oneof` fields **may** omit `google.api.field_behavior`, but
32+
**should** document any specific behaviors in the comments in this case.
3133
- The annotation **must** include any [google.api.FieldBehavior][] values that
3234
accurately describe the behavior of the field.
3335
- `FIELD_BEHAVIOR_UNSPECIFIED` **must not** be used.

0 commit comments

Comments
 (0)