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

NameDescription
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

NameDescription
valueOf(String name)
values()