Skip to content

Commit aa136fa

Browse files
Google APIscopybara-github
authored andcommitted
feat: add new FieldBehavior NON_EMPTY_DEFAULT
PiperOrigin-RevId: 382337225
1 parent e9b2b61 commit aa136fa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

google/api/field_behavior.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,10 @@ enum FieldBehavior {
8181
// in any arbitrary order, rather than the order the user originally
8282
// provided. Additionally, the list's order may or may not be stable.
8383
UNORDERED_LIST = 6;
84+
85+
// Denotes that this field returns a non-empty default value if not set.
86+
// This indicates that if the user provides the empty value in a request,
87+
// a non-empty value will be returned. The user will not be aware of what
88+
// non-empty value to expect.
89+
NON_EMPTY_DEFAULT = 7;
8490
}

0 commit comments

Comments
 (0)