FieldError
Enum describing possible field errors.
Enums |
UNSPECIFIED
|
Enum unspecified. |
UNKNOWN
|
The received error code is not known in this version. |
REQUIRED
|
The required field was not present. |
IMMUTABLE_FIELD
|
The field attempted to be mutated is immutable. |
INVALID_VALUE
|
The field's value is invalid. |
VALUE_MUST_BE_UNSET
|
The field cannot be set. |
REQUIRED_NONEMPTY_LIST
|
The required repeated field was empty. |
FIELD_CANNOT_BE_CLEARED
|
The field cannot be cleared. |
BLOCKED_VALUE
|
The field's value is on a deny-list for this field. |
FIELD_CAN_ONLY_BE_CLEARED
|
The field's value cannot be modified, except for clearing. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-29 UTC.
[null,null,["Last updated 2024-05-29 UTC."],[[["This enum outlines potential errors that can occur within fields, such as missing required fields, attempts to change unchangeable values, or the presence of invalid data."],["Each enum value represents a specific error scenario, including unspecified or unknown errors, immutable fields, invalid values, and restrictions on setting or clearing fields."],["The enum includes error codes like `REQUIRED`, `IMMUTABLE_FIELD`, `INVALID_VALUE`, `VALUE_MUST_BE_UNSET`, signifying common data validation issues."],["Further error codes like `REQUIRED_NONEMPTY_LIST`, `FIELD_CANNOT_BE_CLEARED`, `BLOCKED_VALUE`, and `FIELD_CAN_ONLY_BE_CLEARED` highlight more specific data constraints."],["Developers can use these enum values to handle and diagnose field-related errors during data processing or validation."]]],[]]