Enum TextFormat.Parser.SingularOverwritePolicy (3.19.4)
public enum TextFormat.Parser.SingularOverwritePolicy extends Enum<TextFormat.Parser.SingularOverwritePolicy>
Determines if repeated values for non-repeated fields and oneofs are permitted. For example,
given required/optional field "foo" and a oneof containing "baz" and "qux":
- "foo: 1 foo: 2"
- "baz: 1 qux: 2"
- merging "foo: 2" into a proto in which foo is already set, or
- merging "qux: 2" into a proto in which baz is already set.
Static Fields
|
| Name |
Description |
ALLOW_SINGULAR_OVERWRITES |
Later values are merged with earlier values. For primitive fields or conflicting oneofs,
the last value is retained.
|
FORBID_SINGULAR_OVERWRITES |
An error is issued.
|
Static Methods
|
| Name |
Description |
valueOf(String name) |
|
values() |
|
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 2025-10-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]